[mpich-discuss] Error building mpich-3.1.2 on Solaris 10 with gcc-4.9.0

Siegmar Gross Siegmar.Gross at informatik.hs-fulda.de
Tue Sep 2 08:47:45 CDT 2014


Hi,

yesterday I tried to install mpich-3.1.2 on my machines (Solaris
10 Sparc, Solaris 10 x86_64, and openSUSE Linux 12.1 x86_64)
with Sun C 5.12 and gcc-4.9.0 and failed with the following
errors for Solaris 10.


Solaris 10 Sparc:
=================

tyr mpich-3.1.2-SunOS.sparc.64_gcc 209 head -8 config.log | grep mpich
  $ ../mpich-3.1.2/configure --prefix=/usr/local/mpich-3.1.2_64_gcc 
  --libdir=/usr/local/mpich-3.1.2_64_gcc/lib64
  --includedir=/usr/local/mpich-3.1.2_64_gcc/include64
  CC=gcc CXX=g++ F77=gfortran FC=gfortran CFLAGS=-m64 CXXFLAGS=-m64
  FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 -L/usr/lib/sparcv9
  -Wl,-rpath /usr/lib/sparcv9 --enable-f77 --enable-fc --enable-cxx
  --enable-romio --enable-debuginfo --enable-smpcoll
  --enable-threads=runtime --with-thread-package=posix --enable-shared
tyr mpich-3.1.2-SunOS.sparc.64_gcc 210 


tyr mpich-3.1.2-SunOS.sparc.64_gcc 213 tail log.make.SunOS.sparc.64_gcc
  CXX      src/binding/cxx/initcxx.lo
  CXXLD    lib/libmpicxx.la
ld: fatal: file libmpicxx.so.12: open failed: No such file or directory
ld: fatal: file processing errors. No output written to lib/.libs/libmpicxx.so.12.0.2
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmpicxx.la] Error 1
make[2]: Leaving directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.sparc.64_gcc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.sparc.64_gcc'
make: *** [all] Error 2
tyr mpich-3.1.2-SunOS.sparc.64_gcc 214 



Solaris 10 x86_64, gcc-4.9.0:
=============================

tyr mpich-3.1.2-SunOS.x86_64.64_gcc 215 head -8 config.log | grep mpich
  $ ../mpich-3.1.2/configure --prefix=/usr/local/mpich-3.1.2_64_gcc
  --libdir=/usr/local/mpich-3.1.2_64_gcc/lib64
  --includedir=/usr/local/mpich-3.1.2_64_gcc/include64
  CC=gcc CXX=g++ F77=gfortran FC=gfortran CFLAGS=-m64 CXXFLAGS=-m64
  FFLAGS=-m64 FCFLAGS=-m64 LDFLAGS=-m64 -L/usr/lib/amd64
  -Wl,-rpath /usr/lib/amd64 --enable-f77 --enable-fc --enable-cxx
  --enable-romio --enable-debuginfo --enable-smpcoll
  --enable-threads=runtime --with-thread-package=posix --enable-shared
tyr mpich-3.1.2-SunOS.x86_64.64_gcc 216


tyr mpich-3.1.2-SunOS.x86_64.64_gcc 216 tail log.make.SunOS.x86_64.64_gcc 
  CXX      src/binding/cxx/initcxx.lo
  CXXLD    lib/libmpicxx.la
ld: fatal: file libmpicxx.so.12: open failed: No such file or directory
ld: fatal: file processing errors. No output written to lib/.libs/libmpicxx.so.12.0.2
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmpicxx.la] Error 1
make[2]: Leaving directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.x86_64.64_gcc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.x86_64.64_gcc'
make: *** [all] Error 2
tyr mpich-3.1.2-SunOS.x86_64.64_gcc 217




I get the following error, if I use "CFLAGS=-m64 -std=c11" to
configure it on Solaris.


tyr mpich-3.1.2-SunOS.sparc.64_gcc 231 tail -15 log.make.SunOS.sparc.64_gcc
make[2]: Entering directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.sparc.64_gcc/src/mpi/romio'
make[3]: Entering directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.sparc.64_gcc/src/mpi/romio'
  CC       adio/common/ad_read.lo
In file included from /usr/include/unistd.h:18:0,
                 from ../../../../mpich-3.1.2/src/mpi/romio/adio/common/ad_read.c:14:
/export2/prog/SunOS_sparc/gcc-4.9.0/lib/gcc/sparc-sun-solaris2.10/4.9.0/include-fixed/sys/feature_tests.h:346:2: 
error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications     and pre-2001 POSIX applications"
 #error "Compiler or options invalid for pre-UNIX 03 X/Open applications \
  ^
make[3]: *** [adio/common/ad_read.lo] Error 1
make[3]: Leaving directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.sparc.64_gcc/src/mpi/romio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.sparc.64_gcc/src/mpi/romio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export2/src/mpich-3.1.2/mpich-3.1.2-SunOS.sparc.64_gcc'
make: *** [all] Error 2



I would be grateful, if somebody can fix the problem. Thank you
very much for any help in advance.


Kind regards

Siegmar




More information about the discuss mailing list