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]

error while loading shared libraries: libgfortran.so.0


I am trying to run an mpi program with mpich2. The program is a
helloworld2.f90 program (attached in the end) compiles fine but when
it is run, gives the following errors.

$mpif90 hello_world2.f90

$ldd a.out
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x41173000)
        librt.so.1 => /lib/tls/librt.so.1 (0xb7fe0000)
        libgfortran.so.0 => /usr/lib/gcc-snapshot/lib/libgfortran.so.0
(0xb7f93000)
        libm.so.6 => /lib/tls/libm.so.6 (0x4114f000)
        libgcc_s.so.1 => /usr/lib/gcc-snapshot/lib/libgcc_s.so.1 (0xb7f88000)
        libc.so.6 => /lib/tls/libc.so.6 (0x41019000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x41000000)


$mpiexec -n 2 ./a.out
./a.out: error while loading shared libraries: libgfortran.so.0:
cannot open shared object file: No such file or directory
./a.out: error while loading shared libraries: libgfortran.so.0:
cannot open shared object file: No such file or directory


MPICH2 is compiled with gfortran, gcc.

$mpich2version
Version:           1.0.1
Device:            ch3:sock
Configure Options: --enable-f90
--prefix=/home/software/compiledLibs/mpich2_1.0.1_gcc_4.1.0_gfortran4.1.0_20050227

$echo $PATH
/home/software/compiledLibs/mpich2_1.0.1_gcc_4.1.0_gfortran4.1.0_20050227/bin:/usr/lib/gcc-snapshot/bin:/opt/intel_idb_80/bin:/opt/intel_fc_80/bin:/opt/intel_cc_80/bin:/opt/intel_idb_80/bin:/opt/intel_fc_80/bin:/opt/intel_cc_80/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/sbin:~/bin:/opt/absoft/bin:/opt/g95_11_20_2004/g95-install/bin:/sbin:~/bin:/opt/absoft/bin:/opt/g95_11_20_2004/g95-install/bin

$echo $LD_LIBRARY_PATH
/home/software/compiledLibs/mpich2_1.0.1_gcc_4.1.0_gfortran4.1.0_20050227/lib:/usr/lib/gcc-snapshot/lib:/opt/intel_fc_80/lib:/opt/intel_cc_80/lib:/home/software/compiledLibs/lib/fortranposix:/home/software/compiledLibs/lib/gnuplotfortran/

$uname -a
Linux kusumanchi 2.6.9-1-686 #1 Thu Nov 25 03:48:29 EST 2004 i686 GNU/Linux

$gfortran -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada
--prefix=/usr/lib/gcc-snapshot --enable-shared --with-system-zlib
--enable-nls --enable-threads=posix --without-included-gettext
--disable-werror --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
--enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.0 20050227 (experimental)



I am using gcc-snapshot package available in Debian (sid). I can
provide any other additional info if necessary.

I know that MPICH2 is installed properly because when I execute the
cpi program in the examples directory, it runs fine.

I must be doing some trivial mistake here and would be greatful if
someone can point me in the right direction. I have read the user's
guide and installer's guide etc on

http://www-unix.mcs.anl.gov/mpi/mpich2/

but could not see any such problem before. However I saw a similar
problem reported on Intel C++ compiler at

http://support.intel.com/support/performancetools/c/linux/sb/CS-010097.htm



Any ideas are welcome.

thanks
raju

-- 
friends don't  let friends use windows.

Kamaraju S Kusumanchi
Cornell University
http://people.cornell.edu/pages/kk288/
http://groups.yahoo.com/group/flumech

Attachment: hello_world2.f90
Description: Binary data


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