[Bug fortran/27314] New: ld can't find libgfortran.so.1 on x86-64
Red Hat Enterprise Linux WS release 3 (Taroon Update 6) on Opteron: bar [10:08:42] /baz > cat foo.f90 program foo end program foo bar [10:10:01] /baz > gfortran foo.f90 -Wl,-rpath,/scr_bar/johan/local/lib -o foo bar [10:10:24] /baz > ./foo ./foo: error while loading shared libraries: libgfortran.so.1: cannot open shared object file: No such file or directory bar [10:10:27] /baz > which gfortran /scr_bar/johan/local/bin/gfortran bar [10:10:35] /baz > gfortran -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/scr_bar/johan/local --with-gmp=/scr_bar/johan/local --with-mpfr=/scr_bar/johan/local --enable-languages=c,c++,fortran Thread model: posix gcc version 4.1.0 bar [10:10:43] /baz > strings foo | grep bar /scr_bar/johan/local/lib bar [10:11:01] /baz > ls -l /scr_bar/johan/local/lib/libgfortran.so.1 lrwxrwxrwx1 johanresearch 20 Apr 25 09:36 /scr_bar/johan/local/lib/libgfortran.so.1 -> libgfortran.so.1.0.0* bar [10:11:16] /baz > which ld /usr/bin/ld bar [10:12:04] /baz > ld -v GNU ld version 2.14.90.0.4 20030523 bar [10:12:06] /baz > -- Summary: ld can't find libgfortran.so.1 on x86-64 Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: critical Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dr dot johan at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27314
[Bug driver/27314] ld can't find libgfortran.so.1 on x86-64
--- Comment #4 from dr dot johan at gmail dot com 2006-04-26 17:20 --- ld was trying to load libgfortran.so from $PREFIX/lib, not from $PREFIX/lib64. When linked with -Wl,-rpath,$PREFIX/lib64, libgfortran.so was found at runtime. So no bug, just inexperience with gfortran on x86-64 on my side. I guess the libraries in $PREFIX/lib are 32 bit? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27314
[Bug fortran/15181] gfc_conv_component_ref: Assertion `c->backend_decl' failed
--- Additional Comments From dr dot johan at gmail dot com 2004-10-15 19:59 --- I second this opinion! I tried the fix suggested below and my code now builds with gfortran "gcc version 4.0.0 20041015 (experimental)". /Johan (In reply to comment #6) > My fix of adding "gfc_typenode_for_spec(&c->ts);" right before the assert() in > trans_expr.c:gfc_conv_component_ref() still works and fixes this bug for me. I > suggest that my fix be commited to cvs to close this bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15181