Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] [Rocks-Discuss] compiling Openmpi on solaris studio express
From: Gus Correa (gus_at_[hidden])
Date: 2010-11-29 16:29:59

Hi Nehemiah

Hard to tell, I never tried Sun/Oracle Studio compilers.
However, the Intel compilers, for instance, require you to setup
environment variables that include PATH and LD_LIBRARY_PATH at least.
Would this be the case with Sun Studio?
Do you have its full environment set?

As for the error message,
indeed, "man ld" doesn't show "-path" as a possible option.
Would this be a "Solaris thing", perhaps an option
to the Solaris linker?

For what it is worth, OpenMPI compiles with gcc,g++ and gfortran,
which may be a workaround for you, if you want to stick to free compilers.
Likewise, it also compiles with Open64 compilers, although later
on I had trouble with the Open64 Fortran compiler (not to compile
OpenMPI, but MPI applications).
Do you have any specific requirement for Sun/Oracle software?

OpenMPI also compiles with Intel and PGI compilers,
but those aren't free.

Finally, make sure you are passing the Sun compilers to the OpenMPI
configure script correctly.
Somehow your warning messages are labeled "f90", not "sunf90" as I
would expect, but this may be just the way Sun decided to spell their
own error messages.

If you are in Rocks, better install the compilers in /share/apps,
not in /opt as it is now.
That will make the Sun compilers and their possible shared libraries
available to all nodes.
/share/apps is the right place to install mostly anything that doesn't
come in the Rocks/CentOS distribution.

Good luck,
Gus Correa

Nehemiah Dacres wrote:
> it may have been that I didn't set ld_library_path
> On Mon, Nov 29, 2010 at 2:36 PM, Nehemiah Dacres <dacresni_at_[hidden]> wrote:
>> thank you, you have been doubly helpful, but I am having linking errors and
>> I do not know what the solaris studio compiler's preferred linker is. The
>> the configure statement was
>> ./configure --prefix=/state/partition1/apps/sunmpi/ --enable-mpi-threads
>> --with-sge --enable-static --enable-sparse-groups
>> CC=/opt/oracle/solstudio12.2/bin/suncc
>> CXX=/opt/oracle/solstudio12.2/bin/sunCC
>> F77=/opt/oracle/solstudio12.2/bin/sunf77
>> FC=/opt/oracle/solstudio12.2/bin/sunf90
>> compile statement was
>> make all install 2>errors
>> error below is
>> f90: Warning: Option -path passed to ld, if ld is invoked, ignored
>> otherwise
>> f90: Warning: Option -path passed to ld, if ld is invoked, ignored
>> otherwise
>> f90: Warning: Option -path passed to ld, if ld is invoked, ignored
>> otherwise
>> f90: Warning: Option -path passed to ld, if ld is invoked, ignored
>> otherwise
>> f90: Warning: Option -soname passed to ld, if ld is invoked, ignored
>> otherwise
>> /usr/bin/ld: unrecognized option '-path'
>> /usr/bin/ld: use the --help option for usage information
>> make[4]: *** [] Error 2
>> make[3]: *** [all-recursive] Error 1
>> make[2]: *** [all] Error 2
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all-recursive] Error 1
>> am I doing this wrong? are any of those configure flags unnecessary or
>> inappropriate
>> On Mon, Nov 29, 2010 at 2:06 PM, Gus Correa <gus_at_[hidden]> wrote:
>>> Nehemiah Dacres wrote:
>>>> I want to compile openmpi to work with the solaris studio express or
>>>> solaris studio. This is a different version than is installed on
>>>> rockscluster 5.2 and would like to know if there any gotchas or
>>>> configure
>>>> flags I should use to get it working or portable to nodes on the cluster.
>>>> Software-wise, it is a fairly homogeneous environment with only slight
>>>> variations on the hardware side which could be isolated (machinefile flag
>>>> and what-not)
>>>> Please advise
>>> Hi Nehemiah
>>> I just answered your email to the OpenMPI list.
>>> I want to add that if you build OpenMPI with Torque support,
>>> the machine file for each is not needed, it is provided by Torque.
>>> I believe the same is true for SGE (but I don't use SGE).
>>> Gus Correa
>> --
>> Nehemiah I. Dacres
>> System Administrator
>> Advanced Technology Group Saint Louis University