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

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
skipping incompatible /opt/openmpi-1.4.2/lib/ when
searching for -lmpi_cxx
cannot find -lmpi_cxx
collect2: ld returned 1 exit status

I am using the 64bit mpiCC:
jody_at_aim-squid_0 ~/progs $ which 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/
lrwxrwxrwx 1 root root 19 Jun 24 15:50
/opt/openmpi/lib/ ->
lrwxrwxrwx 1 root root 19 Jun 24 15:50
/opt/openmpi/lib/ ->
-rwxr-xr-x 1 root root 137442 Jun 24 15:50 /opt/openmpi/lib/

PATH and LD_LIBRARY_PATH contain the correct paths:
jody_at_aim-squid_0 ~/progs $ echo $PATH
jody_at_aim-squid_0 ~/progs $ echo $LD_LIBRARY_PATH

AM i missing something?

Thank You