[ncl-install] NCARG install problem on Mac OSX (10.6.2) by gfortran4.5.0

Satomura, T. satomura at kugi.kyoto-u.ac.jp
Mon Feb 22 02:54:47 MST 2010


Hi,

Thank you for your suggestion. But it doesn't work.
Now, I moved to use MacPorts. NCARG installed by MacPorts outputs many warnings but makes ncgm files anyway.

Thank you again for your cooperation.

Best regards,

On 2010/02/17, at 2:54, Mary Haley wrote:

> Hi Satomura,
> 
> I'm unable to help with this question at the moment, because I don't have a 10.6 system or gfortran 4.5.
> 
> Sometimes I try compiling this code with as few compiler options as possible to see if this helps.
> 
> To do this:
> 
>  cd $NCARG/common/src/fontcaps
>  Edit the "Makefile" file
>  Remove the "-O", "-fno-range-check" options.
>  Save the file
> 
> Type:
> 
>   make clean all install
> 
> and see what happens.
> 
> --Mary
> 
> On Feb 11, 2010, at 10:22 AM, Satomura, T. wrote:
> 
>> Dear all,
>> 
>> I'm trying to install NCARG from source on my MacBookPro (OS 10.6.2, Core 2 Duo). The compilers are gcc 4.5.0 and gfortran 4.5.0, of which binary code is got from the sourceforge site. But the make command says:
>> 
>> 
>> gfortran -fPIC -fno-range-check  -O    -c -o sfskbk.o sfskbk.f
>> gfortran -fPIC -fno-range-check  -O    -c -o sftbkd.o sftbkd.f
>> gfortran -fPIC -fno-range-check  -O    -o fontc cfaamn.o  cfrdln.o  cfwrit.o  ffgttk.o  ffinfo.o
>> ffphol.o  ffppkt.o  ffprcf.o ffprsa.o  fftbkd.o  fftkin.o  sffndc.o  sfgtin.o  sfgtkw.o  sfprc
>> f.o  sfskbk.o sftbkd.o -L../../.././common/src/libncarg_c -lncarg_c -L/usr/local/lib -lgfortran
>> -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/lib
>>       Processing fontcap font1
>> make[4]: *** [font1] Segmentation fault
>> Making ./common/src/graphcap
>> gfortran -fPIC -fno-range-check  -O   -c capchg.f
>> gfortran -fPIC -fno-range-check  -O    -c -o binput.o binput.f
>> gfortran -fPIC -fno-range-check  -O    -c -o bndcls.o bndcls.f
>> gfortran -fPIC -fno-range-check  -O   -c capast.f
>> capast.f:65.15:
>> 
>>    4 'Z','[','\\',']','^','_','`','a','b','c','d','e','f','g','h',
>>              1
>> Warning: initialization string truncated to match variable at (1)
>> gfortran -fPIC -fno-range-check  -O    -c -o capdat.o capdat.f
>> gfortran -fPIC -fno-range-check  -O    -c -o cappar.o cappar.f
>> 
>> 
>> and, executables compiled by ncargf77 stop by segmentation faults.
>> 
>> Precompiled binary in NCAR site is build by old gcc and does not compatible with my gcc 4.5.0, thus I cannot use it.
>> 
>> Do you have an idea to solve this problem?
>> 
>> Any information is welcome.
>> 
>> Regards,
>> 
>> Satomura
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install


===========================================
Takehiko SATOMURA, Ph.D.
Climate Physics Lab., Div. Earth and Planetary Sci.
Graduate School of Science, Kyoto University
Sakyo, Kyoto   606-8502,  JAPAN

Tel & FAX: +81-75-753-4273
e-mail: satomura at kugi.kyoto-u.ac.jp
===========================================





More information about the ncl-install mailing list