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

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 ->

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

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
users mailing list