Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] link problem on 64bit platform
From: Trent Creekmore (mtcreekmore_at_[hidden])
Date: 2010-11-01 07:05:28


Have you tried using mpicxx, or mpic++ ?

-----Original Message-----
From: users-bounces_at_[hidden] [mailto:users-bounces_at_[hidden]] On
Behalf Of jody
Sent: Monday, November 01, 2010 4:20 AM
To: Open MPI Users
Subject: [OMPI users] link problem on 64bit platform

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/l
d:
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/l
d:
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/x
86_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
_______________________________________________
users mailing list
users_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/users