gfortran 4.3 static libs on Mac has Undefined symbols

FX Coudert fxcoudert@gmail.com
Sat Apr 14 07:54:00 GMT 2007


Hi David,

I dont' think it's a gfortran-specific problem. CCing the gcc-help  
list as more people can answer your question there.

> cezanne:/home/dbraun: powerpc-apple-darwin-gfortran test.f
> /usr/people/dbraun/gnu/bin/powerpc-apple-darwin-ld: Undefined symbols:
> ___eprintf
>
> cezanne:/home/dbraun: powerpc-apple-darwin-gfortran test.f -static- 
> libgcc
> /usr/people/dbraun/gnu/bin/powerpc-apple-darwin-ld: can't locate file
> for: -lgcc_eh
> collect2: ld returned 1 exit status

I've found one mailing-list message about this in the archives:  
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg02176.html
But it doesn't really help, as far as I can see...

> libgcc_eh was not created.
>
> libgcc.a has eprintf according to nm.
>
> cezanne:/home/dbraun: powerpc-apple-darwin-gfortran -v
> Using built-in specs.
> Target: powerpc-apple-darwin
> Configured with: ../gcc-4.3/configure --prefix=/usr/people/dbraun/gnu
> --target=powerpc-apple-darwin
> --with-as=/usr/people/dbraun/gnu/bin/powerpc-apple-darwin-as
> --with-ld=/usr/people/dbraun/gnu/bin/powerpc-apple-darwin-ld
> --enable-static target_alias=powerpc-apple-darwin
> --enable-languages=c,c++,fortran --disable-shared --disable-multilib
> Thread model: posix
> gcc version 4.3.0 20070410 (experimental)

FX



More information about the Gcc-help mailing list