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


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

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" \
  --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 ##
configure: WARNING: ## ------------------------------------------------- ##

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


make[9]: Entering directory
  CXX otfaux.o
  line 834: Error: The function "rint" must have a prototype.
1 Error(s) detected.
make[9]: *** [otfaux.o] Error 2
make[9]: Leaving directory
make[8]: *** [all-recursive] Error 1
make[8]: Leaving directory
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
make[6]: *** [all] Error 2
make[6]: Leaving directory
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
make[3]: *** [all] Error 2
make[3]: Leaving directory
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