[ncl-install] Status of NCL under MacOS 10.6 (64-bit)

guangshan chen gchen9 at gmail.com
Thu Nov 12 08:49:20 MST 2009


Hi Mary,

Yes, gcc-4.2 is the default 64-bit compiler on Snow Leopard. But It does not include gfortran. So If one wants to use gfortran compiler, he/she have to install
gfortran by himself/herself. 

As I posted early, some versions gcc (version >= 4.2) have problems. I tried gcc-4.4 installed by fink and gcc-4.3 installed by macports. Both of them are fine.

I have removed the cflags wiht "-arch".

Now It seems some parameters relation to JPEG are needed change. I will try to see.

Guangshan

On Nov 12, 2009, at 9:03 AM, Mary Haley wrote:

> Guangshan,
> 
> Ted sent me a personal email and said that the HDF4 code was actually compiled under 10.5 and not 10.6, so he's not sure it will work under 10.6.
> 
> I see that Sourish posted a response. The question I have about using gcc 4.2 is whether you get a 64-bit compile by default. I think this is the heart of the issue: HDF4 is not expecting the MacOS build to be on a 64-bit system, so it tries to treat the configuration as if it's a 32-bit one. This causes conflicting information during the "configure" phase.
> 
> I believe that you could do a build from source if you went into 32-bit mode, by forcing the "-m32" option. However this defeats the purpose of getting a 64-bit system.
> 
> If anybody else has successfully built HDF4 under MacOS 10.6 in 64-bit mode, we'd love to hear from you.
> 
> --Mary
> 
> On Nov 11, 2009, at 4:27 PM, guangshan chen wrote:
> 
>> Hi Ted,
>> 
>> I just tried to build HDF4 on 10.6 as the instruction. I am failed. Could you forward my email to your colleague? I would like to discuss with him.
>> 
>> I came to the "configure" step. But I could not use "CFLAGS="-Os -arch i386 -arch ppc -arch x86_64 -arch ppc64"
>> It gave me the following error:
>> checking whether make sets $(MAKE)... (cached) yes
>> checking for gcc... gcc
>> checking for C compiler default output file name... 
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details.
>> 
>> I got rid of this option, it could be configured. I finished the left steps and type "make check".
>> 
>> It would pop out this error:
>> make[3]: *** No rule to make target `../../mfhdf/libsrc/libmfhdf.la', needed by `fortestF'.  Stop.
>> 
>> I cd to mfhdf/libsrc directory and typed "make" to make libmfhdf.la.
>> 
>> The building progress continued, but it stopped again at reading 24-bit JPEG compressed image.
>> 
>> Testing  -- 24BIT RASTER IMAGE INTERFACE (24bit) 
>> 24-bit JPEG quality 80 image was incorrect
>> ret=-9, sizeof(jpeg_24bit_orig)=3174
>> 24-bit JPEG quality 30 image was incorrect
>> ret=-5, sizeof(jpeg_24bit_orig)=3174
>> 24-bit JPEG quality 75 image was incorrect
>> ret=-4, sizeof(jpeg_24bit_orig)=3174
>> 
>> Guangshan
>> 
>> 
>> On Nov 11, 2009, at 3:08 PM, Ted Mansell wrote:
>> 
>>> Mary, et al:
>>> 
>>> A colleague found instructions for building HDF4 on OS 10.6 in 64-bit  
>>> here:
>>> 
>>> http://www.kyngchaos.com/macosx:build:hdf
>>> 
>>> He followed the instructions exactly, and was able to compile a 64-bit  
>>> HDF library just fine.
>>> 
>>> Best,
>>> 
>>> -- Ted
>>> 
>>> On Nov 11, 2009, at 1:55 PM, Mary Haley wrote:
>>> 
>>>> 
>>>> Hi folks,
>>>> 
>>>> I've been working offline with Guangshan Chen who attempted to build  
>>>> NCL V5.1.1 on a 64-bit Mac OS 10.6 (snow leopard) system.
>>>> 
>>>> Unfortunately, there was a problem building the HDF4 library, and  
>>>> the HDF folks do not have a fix yet.  Guangshan contacted them and  
>>>> they responded that they will be getting such a system soon and hope  
>>>> to get it working.
>>>> 
>>>> Until this happens, building NCL from source code will not be  
>>>> possible, because HDF4 is not an optional package.
>>> 
>>> _______________________________________________
>>> ncl-install mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20091112/398e2a72/attachment.html 


More information about the ncl-install mailing list