Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] Sun cc problem compiling openmpi-1.6.1 on Solaris 10 sparc
From: Siegmar Gross (Siegmar.Gross_at_[hidden])
Date: 2012-08-27 07:03:07


Hi,

we have installed the latest patches on our Solaris machines and I have
a problem compiling openmpi-1.6.1 with Sun C 5.12. I used the following
commands.

mkdir openmpi-1.6.1-${SYSTEM_ENV}.${MACHINE_ENV}.64_cc
cd openmpi-1.6.1-${SYSTEM_ENV}.${MACHINE_ENV}.64_cc

../openmpi-1.6.1/configure --prefix=/usr/local/openmpi-1.6.1_64_cc \
  --libdir=/usr/local/openmpi-1.6.1_64_cc/lib64 \
  LDFLAGS="-m64" \
  CC="cc" CXX="CC" F77="f77" FC="f95" \
  CFLAGS="-m64" CXXFLAGS="-m64 -library=stlport4" FFLAGS="-m64" \
  FCFLAGS="-m64" \
  CPP="cpp" CXXCPP="cpp" \
  CPPFLAGS="" CXXCPPFLAGS="" \
  C_INCL_PATH="" C_INCLUDE_PATH="" CPLUS_INCLUDE_PATH="" \
  OBJC_INCLUDE_PATH="" MPIHOME="" \
  --without-udapl --without-openib \
  --enable-mpi-f90 --with-mpi-f90-size=small \
  --enable-heterogeneous --enable-cxx-exceptions \
  --enable-orterun-prefix-by-default \
  --with-threads=posix --enable-mpi-thread-multiple \
  --enable-opal-multi-threads \
  --with-hwloc=internal --with-ft=LAM --enable-sparse-groups \
  |& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.64_cc

make |& tee log.make.$SYSTEM_ENV.$MACHINE_ENV.64_cc

"log.configure.SunOS.sparc.64_cc" shows no errors but the following
unexpected WARNING.

configure: WARNING: stdbool.h: present but cannot be compiled
configure: WARNING: stdbool.h: check for missing prerequisite headers?
configure: WARNING: stdbool.h: see the Autoconf documentation
configure: WARNING: stdbool.h: section "Present But Cannot Be Compiled"
configure: WARNING: stdbool.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------- ##
configure: WARNING: ## Report to http://www.open-mpi.org/community/help/ ##
configure: WARNING: ## ------------------------------------------------- ##

"log.make.SunOS.sparc.64_cc" breaks with the following error.

...

make[9]: Entering directory
`.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt/vt/extlib/otf/tools/otfaux'
  CXX otfaux.o
"../../../../../../../../../openmpi-1.6.1/ompi/contrib/vt/vt/extlib/otf/tools/ot
faux/otfaux.cpp",
  line 834: Error: The function "rint" must have a prototype.
1 Error(s) detected.
make[9]: *** [otfaux.o] Error 2
make[9]: Leaving directory
`.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt/vt/extlib/otf/tools/otfaux'
make[8]: *** [all-recursive] Error 1
make[8]: Leaving directory
`.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt/vt/extlib/otf/tools'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
`.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt/vt/extlib/otf'
make[6]: *** [all] Error 2
make[6]: Leaving directory
`.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt/vt/extlib/otf'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt/vt/extlib'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt/vt'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt/vt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi/contrib/vt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `.../openmpi-1.6.1-SunOS.sparc.64_cc/ompi'
make: *** [all-recursive] Error 1
tyr openmpi-1.6.1-SunOS.sparc.64_cc 134

In which file must I add which prototype? Thank you very much for
any help in advance.

Kind regards

Siegmar