On 04/07/2011 06:16 AM, Paul Kapinos wrote:
Dear OpenMPI developers,
We tried to build OpenMPI 1.5.3 including Support for Platform LSF
using the Sun Studio (=Oracle Solaris Studio now) /12.2 and the
configure stage failed.
1. Used flags:
./configure --with-lsf --with-openib --with-devel-headers
--enable-contrib-no-build=vt --enable-mpi-threads CFLAGS="-fast
-xtarget=nehalem -m64" CXXFLAGS="-fast -xtarget=nehalem -m64"
FFLAGS="-fast -xtarget=nehalem" -m64 FCFLAGS="-fast -xtarget=nehalem
-m64" F77=f95 LDFLAGS="-fast -xtarget=nehalem -m64"
--prefix=/..../openmpi-1.5.3mt/linux64/studio
(note the Support for LSF enabled by --with-lsf). The compiler envvars
are set as following:
$ echo $CC $FC $CXX
cc f95 CC
The compiler info: (cc -V, CC -V)
cc: Sun C 5.11 Linux_i386 2010/08/13
CC: Sun C++ 5.11 Linux_i386 2010/08/13
2. The configure error was:
##############################################
checking for lsb_launch in -lbat... no
configure: WARNING: LSF support requested (via --with-lsf) but not found.
configure: error: Aborting.
##############################################
3. In the config.log (see the config.log.error) there is more info
about the problem. crucial info is:
##############################################
/opt/lsf/8.0/linux2.6-glibc2.3-x86_64/lib/libbat.so: undefined
reference to `ceil'
##############################################
4. Googling vor `ceil' results e.g. in
http://www.cplusplus.com/reference/clibrary/cmath/ceil/
so, the attached ceil.c example file *can* be compiled by "CC" (the
Studio C++ compiler), but *cannot* be compiled using "cc" (the Studio
C compiler).
$ CC ceil.c
$ cc ceil.c
Did you try to link in the math library -lm? When I did this your test
program worked for me and that actually is the first test that the
configure does.
5. Looking into configure.log and searching on `ceil' results: there
was a check for the availability of `ceil' for the C compiler (see
config.log.ceil). This check says `ceil' is *available* for the "cc"
Compiler, which is *wrong*, cf. (4).
See above, it actually is right when you link in the math lib.
So, is there an error in the configure stage? Or either the checks in
config.log.ceil does not rely on the avilability of the `ceil' funcion
in the C compiler?
It looks to me like the lbat configure test is not linking in the math lib.
Best wishes,
Paul Kapinos
P.S. Note in in the past we build many older versions of OpenMPI with
no support for LSF and no such problems
_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users
--
Oracle
Terry D. Dontje | Principal Software Engineer
Developer Tools Engineering | +1.781.442.2631
Oracle *- Performance Technologies*
95 Network Drive, Burlington, MA 01803
Email terry.don...@oracle.com <mailto:terry.don...@oracle.com>