/lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc47/libgfortran.so.3 not found

Gerald Pfeifer gerald at pfeifer.com
Tue Apr 15 05:32:56 UTC 2014


On Wed, 9 Apr 2014, Anton Shterenlikht wrote:
> I haven't tried gfortran on amd64 for a long time,
> so I'm probably doing something wrong:
> 
> On ia64 11-current:
> 
> $ cat z.f90 
> end
> $ gfortran47 z.f90 
> $ ./a.out 
> $ 
> 
> On amd64 11-current:
> 
> $ cat z.f90 
> end
> $ gfortran47 z.f90 
> $ ./a.out 
> /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc47/libgfortran.so.3 not found
> $ 
> $ gfortran48 z.f90
> $ ./a.out
> /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc47/libgfortran.so.3 not found
> $ gfortran49 z.f90
> $ ./a.out
> /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc47/libgfortran.so.3 not found
> $ 
> 
> On both systems gcc ports are installed
> via pkg - the official packages on amd64,
> and my own packages on ia64.

Can you please check out the new pkg-message I added for lang/gcc49
and lang/gcc48 a couple of days ago?

> Am I missing on some compiler/linker options?

Yes.  Setting LD_LIBRARY_PATH or using -Wl,rpath=/usr/local/lib/gcc47/
should fix this for you.

Gerald


More information about the freebsd-toolchain mailing list