Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] openmpi-1.7.3rc2r29276 doesn't honour --with-wrapper-libs
From: Siegmar Gross (Siegmar.Gross_at_[hidden])
Date: 2013-09-28 04:48:19


Hi,

I installed openmpi-1.7.3rc2r29276 on my platforms (Solaris Sparc,
Solaris x86_64, and Linux x86_64) with Sun C 5.12 and gcc-4.8.0 in
32- and 64-bit versions. On Solaris Sparc I configured with

  LIBS="-lgcc_s" \
  --with-wrapper-cflags="-std=c11 -m64" \
  --with-wrapper-libs="-lgcc_s" \

"-lgcc_s" is neccessary to build Open MPI and later compile MPI programs.

tyr openmpi-1.7.3rc2r29276-SunOS.sparc.64_gcc 19 ../openmpi-1.7.3rc2r29276/configure \
  --help | grep wrapper-libs
  --with-wrapper-libs Extra flags to add to LIBS when using wrapper

tyr openmpi-1.7.3rc2r29276-SunOS.sparc.64_gcc 20 more config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Open MPI configure 1.7.3rc2, which was
generated by GNU Autoconf 2.69. Invocation command line was

  $ ../openmpi-1.7.3rc2r29276/configure --prefix=/usr/local/openmpi-1.7_64_gcc \
  --libdir=/usr/local/openmpi-1.7_64_gcc/lib64 \
  --with-jdk-bindir=/usr/local/jdk1.7.0_07/bin/sparcv9 \
  --with-jdk-headers=/usr/local/jdk1.7.0_07/include \
  JAVA_HOME=/usr/local/jdk1.7.0_07 LDFLAGS=-m64 \
  -L/usr/local/gcc-4.8.0/lib/sparcv9 LIBS=-lgcc_s \
  CC=gcc CXX=g++ FC=gfortran CFLAGS=-m64 CXXFLAGS=-m64 FCFLAGS=-m64 CPP=cpp \
  CXXCPP=cpp CPPFLAGS= CXXCPPFLAGS= --enable-cxx-exceptions --enable-mpi-java \
  --enable-heterogeneous --enable-opal-multi-threads --enable-mpi-thread-multiple \
  --with-threads=posix --with-hwloc=internal --without-verbs --without-udapl \
  --with-wrapper-cflags=-std=c11 -m64 --with-wrapper-libs=-lgcc_s --enable-debug
...

tyr hello_1 114 which mpicc
/usr/local/openmpi-1.7_64_gcc/bin/mpicc

tyr hello_1 115 ls -l /usr/local/openmpi-1.7_64_gcc/bin/mpicc
lrwxrwxrwx 1 root root 12 Sep 28 10:30 /usr/local/openmpi-1.7_64_gcc/bin/mpicc -> opal_wrapper

tyr hello_1 116 mpicc -showme
gcc -I/usr/local/openmpi-1.7_64_gcc/include -fexceptions -pthread -std=c11 -m64 \
  -L/usr/local/openmpi-1.7_64_gcc/lib64 -lmpi

Unfortunately the wrapper compiler doesn't contain "-lgcc_s" so that I cannot compile
programs.

tyr hello_1 117 mpicc hello_1_mpi.c
/usr/local/openmpi-1.7_64_gcc/lib64/libmpi.so: undefined reference to `__muldc3_at_GCC_4.0.0'
/usr/local/openmpi-1.7_64_gcc/lib64/libmpi.so: undefined reference to `__mulsc3_at_GCC_4.0.0'
/usr/local/openmpi-1.7_64_gcc/lib64/libmpi.so: undefined reference to `__multc3_at_GCC_4.0.0'
collect2: error: ld returned 1 exit status

I would be grateful if somebody can fix the problem. Perhaps you can even add
"-lgcc_s" as a default library to the build process and wrapper compiler.
Thank you very much for your help in advance.

Kind regards

Siegmar