Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] link problem on 64bit platform
From: jody (jody.xha_at_[hidden])
Date: 2010-11-01 05:20:28


Hi
On a newly installed 64bit linux (2.6.32-gentoo-r7) with gcc version 4.4.4
i can't compile even simple Open-MPI applications (OpenMPI 1.4.2).

The message is:
jody_at_aim-squid_0 ~/progs $ mpiCC -g -o HelloMPI HelloMPI.cpp
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /opt/openmpi-1.4.2/lib/libmpi_cxx.so when
searching for -lmpi_cxx
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lmpi_cxx
collect2: ld returned 1 exit status

I am using the 64bit mpiCC:
jody_at_aim-squid_0 ~/progs $ which mpiCC
/opt/openmpi/bin/mpiCC
jody_at_aim-squid_0 ~/progs $ ls -l /opt/openmpi
lrwxrwxrwx 1 root root 22 Nov 1 09:56 /opt/openmpi -> /opt/openmpi-1.4.2-64/

The mpi_cxx should be found in the lib subdirectory:
jody_at_aim-squid_0 ~/progs $ ls -l /opt/openmpi/lib/libmpi_cxx*
-rwxr-xr-x 1 root root 1073 Jun 24 15:50 /opt/openmpi/lib/libmpi_cxx.la
lrwxrwxrwx 1 root root 19 Jun 24 15:50
/opt/openmpi/lib/libmpi_cxx.so -> libmpi_cxx.so.0.0.1
lrwxrwxrwx 1 root root 19 Jun 24 15:50
/opt/openmpi/lib/libmpi_cxx.so.0 -> libmpi_cxx.so.0.0.1
-rwxr-xr-x 1 root root 137442 Jun 24 15:50 /opt/openmpi/lib/libmpi_cxx.so.0.0.1

PATH and LD_LIBRARY_PATH contain the correct paths:
jody_at_aim-squid_0 ~/progs $ echo $PATH
/opt/openmpi/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4
jody_at_aim-squid_0 ~/progs $ echo $LD_LIBRARY_PATH
/opt/openmpi/lib:

AM i missing something?

Thank You
  jody