Re: ncarg on Mac OS X 10.4.8

From: David Blanchard <david_blanchard_at_nyahnyahspammersnyahnyah>
Date: Thu, 14 Dec 2006 03:57:55 -0700

After some additional investigation and tinkering, it appears that the
root of the problem is g77 3.4.3 is not fully compatible with gcc 4.0.1
on Mac OS X 10.4.8 This is because the g77 compiler has hardwired code
to look for the 4.0.0 libraries and is unable to locate the 4.0.1
libraries. I was able to patch this by creating a symbolic link to fool
g77 into using the 4.0.1 libraries.

To summarize, there does not appear to be a problem with the new Xcode
2.4.2 or gcc 4.0.1 with NCAR Graphics. There is a problem between gcc
4.0.1 and g77 3.4.3 on the Mac.

David

>>Current configuration:
>>
>>Mac Dual 2 GHz PowerPC G5
>>Mac OS X 10.4.8
>>gcc version 4.0 (build 5026)
>>Xcode 2.1
>>NCARG 4.4.2
>>
>>Will I encounter any compiler/library issues if I upgrade Xcode to
>>version 2.4.1?
>>
>>Thank you,
>>
>>David Blanchard
>
>
>Did the upgrade...and now cannot compile. Error message below...
>
>dob> ./skewt_make skewt_flg_file.f
>g77 -O -ffixed-line-length-0 -fno-automatic -fno-second-underscore
>skewt_flg_file.f /Us
>ers/dob/sound/lib/cgemlib.a /Users/dob/sound/lib/gemlib.a
>/Users/dob/sound/lib/hodolib.a /Users/dob/sound/lib/skewtlib.a
>/Users/dob/sound/lib/thdiag.a /Users/dob/sound/lib/thermolib.a
>/Users/dob/sound/lib/ulib.a
/Users/gempak/nawips/os/darwin/lib/cgemlib.a
>-L/usr/local/ncarg/lib -L/usr/X11R6/lib -L/sw/lib -lncarg -lncarg_gks
>-lncarg_c -lXpm -lX11 c-lXext
>/usr/bin/ld: can't open:
>/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a (No such file or
>directory, errno = 2)
>collect2: ld returned 1 exit status
>
>...and the new version of gcc...
>
>dob> which gcc
>/usr/bin/gcc
>dob> gcc --version
>powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build
>5367)
>
>
>David

-- 
+------------------------------------------------------------------------+
| David O. Blanchard  Flagstaff, Arizona  david_blanchard_at_earthlink.net  |
+------------------------------------------------------------------------+
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Thu Dec 14 2006 - 03:57:55 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 20 2006 - 09:55:46 MST