x86_64, libgfortran: unrecognized file format (was: for Daniel)

Daniel Franke franke.daniel@gmail.com
Mon Jan 7 20:57:00 GMT 2008


On Monday 07 January 2008 00:38:45 Granville Sewell wrote:
> Without the -static switch (using gfortran), I get:
>
> /usr/local/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../.
>./lib64/libgfortran.so: file not recognized: File format not recognized
> collect2: ld returned 1 exit status

You build gcc yourself? How did you configure it (gfortran -v)?
Something seems to be horribly messed up on your side?!

I'm CC-ing gcc-help, maybe someone there has encountered this before.


> There is a libgfortran.a file in the same lib directory, by the way.  I
> don't understand the difference between the *.a and *.so libraries.

 *.so - shared objects, used for dynamic linking, loaded at runtime
 *.a  - archives, linked into the binary statically



More information about the Gcc-help mailing list