This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

version `GFORTRAN_1.4' not found


Hi all,

I am currently seeing a curious problem when running any trivial
hello-world program compiled with gfortran trunk:

jweil@manzanita:~> cat hello.f90

print *,"hello world!"
end

jweil@manzanita:~> gfortran-4.6 hello.f90
jweil@manzanita:~> ./a.out
./a.out: /usr/lib64/libgfortran.so.3: version `GFORTRAN_1.4' not found
(required by ./a.out)



My machine runs openSUSE 11.3 (x86_64) with the default system compiler:

jweil@manzanita:~> gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.5/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.5
--enable-ssp --disable-libssp --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib64
--with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.5
--enable-linux-futex --without-system-libunwind --enable-gold
--with-plugin-ld=/usr/bin/gold --with-arch-32=i586 --with-tune=generic
--build=x86_64-suse-linux
Thread model: posix
gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux)


and a homegrown GCC trunk:

jweil@manzanita:~> gfortran-4.6 -v
Using built-in specs.
COLLECT_GCC=gfortran-4.6
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/jweil/gcc46/trunk/configure
--program-suffix=-4.6 --prefix=/usr --libdir=/usr/lib64
--libexecdir=/usr/lib64 --enable-languages=c,fortran --enable-checking
--enable-lto --disable-bootstrap --disable-multilib
--enable-version-specific-runtime-libs
Thread model: posix
gcc version 4.6.0 20110228 (experimental) [trunk revision 170558] (GCC)


I have been running in this configuration for quite some time without
any problems. Can anyone give me a clue what's wrong? I was asuming
'--enable-version-specific-runtime-libs' would take care of handling
several GCC versions on one system?!?

Cheers,
Janus



PS: My binary contains the following symbols:

jweil@manzanita:~> nm a.out
0000000000400754 t MAIN__
0000000000600e00 d _DYNAMIC
0000000000600fe8 d _GLOBAL_OFFSET_TABLE_
0000000000400900 R _IO_stdin_used
                 w _Jv_RegisterClasses
0000000000600de0 d __CTOR_END__
0000000000600dd8 d __CTOR_LIST__
0000000000600df0 D __DTOR_END__
0000000000600de8 d __DTOR_LIST__
0000000000400a28 r __FRAME_END__
0000000000600df8 d __JCR_END__
0000000000600df8 d __JCR_LIST__
0000000000601040 A __bss_start
0000000000601030 D __data_start
00000000004008a0 t __do_global_ctors_aux
00000000004006c0 t __do_global_dtors_aux
0000000000601038 D __dso_handle
                 w __gmon_start__
0000000000600dd4 d __init_array_end
0000000000600dd4 d __init_array_start
0000000000400890 T __libc_csu_fini
0000000000400800 T __libc_csu_init
                 U __libc_start_main@@GLIBC_2.2.5
0000000000601040 A _edata
0000000000601050 A _end
00000000004008dc T _fini
                 U _gfortran_set_args@@GFORTRAN_1.0
                 U _gfortran_set_options@@GFORTRAN_1.0
                 U _gfortran_st_write@@GFORTRAN_1.0
                 U _gfortran_st_write_done@@GFORTRAN_1.0
                 U _gfortran_transfer_character_write@@GFORTRAN_1.4
00000000004005e8 T _init
0000000000400670 T _start
000000000040069c t call_gmon_start
0000000000601040 b completed.5837
0000000000601030 W data_start
0000000000601048 b dtor_idx.5839
0000000000400730 t frame_dummy
00000000004007c1 T main
0000000000400940 r options.1.1534


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]