Static libgfortran on OS X
Ray Nachlinger
ray@ultramarine.com
Wed Dec 17 15:11:00 GMT 2008
Hi there, I seem to be having a problem with the static libgfortran on
OS X Leapord. uname -a gives:
Darwin wasp 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
Also, I downloaded gfortran from the WIKI and gfortran -v gives:
Using built-in specs.
Target: i386-apple-darwin8.10.1
Configured with: /tmp/gfortran-20081006/ibin/../gcc/configure --prefix=/usr/local/gfortran --enable-languages=c,fortran --with-gmp=/tmp/gfortran-20081006/gfortran_libs --enable-bootstrap
Thread model: posix
gcc version 4.4.0 20081006 (experimental) [trunk revision 140904] (GCC)
I have a large program which links fine with the following libraries:
-L/usr/local/lib
-L/add/mac_32/gcc4.1.1/lib
-Bstatic
-static-libgcc
-lgfortran
-lwx_mac_gl-2.8
-lwx_mac-2.8
-lwxtiff-2.8
-lwxjpeg-2.8
-lwxpng-2.8
-lz
-liconv
-lpthread
-framework QuickTime
-framework IOKit
-framework Carbon
-framework Cocoa
-framework System
-framework OpenGL
-framework AGL
-framework WebKit
Unfortunately, this dynamically links libgfortran. In the past, I
changed the line
-lgfortran
to
/usr/local/gfortran/lib/libgfortran.a
Which worked with older versions, but now
I get the following error messageR:
can't find atom for N_GSYM stabs options:G(0,22)=(0,23)=s56stdin_unit:(0,8),0,32;stdout_unit:(0,8),32,32;stderr_unit:(0,8),64,32;optional_plus:(0,8),96,32;locus:(0,8),128,32;separator_len:(0,8),160,32;separator:(0,5),192,32;use_stderr:(0,8),224,32;all_unbuffered:(0,8),256,32;unbuffered_preconnected:(0,8),288,32;default_recl:(0,8),320,32;fpe:(0,8),352,32;dump_core:(0,8),384,32;backtrace:(0,8),416,32;; in /usr/local/gfortran/lib/libgfortran.a(environ.o)
can't find atom for N_GSYM stabs max_offset:G(0,43) in /usr/local/gfortran/lib/libgfortran.a(unit.o)
can't find atom for N_GSYM stabs unit_root:G(0,1) in /usr/local/gfortran/lib/libgfortran.a(unit.o)
can't find atom for N_GSYM stabs unit_lock:G(0,48) in /usr/local/gfortran/lib/libgfortran.a(unit.o)
can't find atom for N_GSYM stabs big_endian:G(0,2) in /usr/local/gfortran/lib/libgfortran.a(main.o)
can't find atom for N_GSYM stabs compile_options:G(0,7)=(0,8)=s44warn_std:(0,2),0,32;allow_std:(0,2),32,32;pedantic:(0,2),64,32;convert:(0,2),96,32;dump_core:(0,2),128,32;backtrace:(0,2),160,32;sign_zero:(0,2),192,32;record_marker:(0,9)=(0,10)=(0,11)=r(0,11);0;037777777777;,224,32;max_subrecord_length:(0,2),256,32;bounds_check:(0,2),288,32;range_check:(0,2),320,32;; in /usr/local/gfortran/lib/libgfortran.a(compile_options.o)
Any advice?
Thanks,
Ray
More information about the Fortran
mailing list