[mpich-discuss] couldn't build mpich-3.1.1 on Solaris 10withgcc-4.9.0

Siegmar Gross Siegmar.Gross at informatik.hs-fulda.de
Thu Jun 26 03:01:54 CDT 2014


Hi,

> I would suggest build a 64-bit libxml2 instead of using ‘-m64’ for MPICH.

The library is available.

tyr mpich-3.1.1 431 file /usr/lib/sparcv9/libxml2.so
/usr/lib/sparcv9/libxml2.so:    ELF 64-bit MSB dynamic lib SPARCV9 Version 1,
  dynamically linked, not stripped, no debugging information available


I get also an error if I try to build a 32-bit version with gcc-4.9.0.

../mpich-3.1.1/configure --prefix=/usr/local/mpich-3.1.1_32_gcc \
  CC="gcc" CXX="g++" F77="gfortran" FC="gfortran" \
  CFLAGS="" CXXFLAGS="" FFLAGS="" FCFLAGS="" \
  LDFLAGS="-L/usr/lib -Wl,-rpath /usr/lib -lxml2" \
  --enable-f77 --enable-fc --enable-cxx --enable-romio \
  --enable-debuginfo --enable-smpcoll \
  --enable-threads=runtime --with-thread-package=posix \
  --enable-shared \
  |& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.32_gcc


tyr mpich-3.1.1-SunOS.sparc.32_gcc 419 tail -25 log.make.SunOS.sparc.32_gcc
  CC       src/binding/fortran/mpif_h/lib_libmpifort_la-statusc2f.lo
  CC       src/binding/fortran/use_mpi/lib_libmpifort_la-typef90cmplxf.lo
  CC       src/binding/fortran/use_mpi/lib_libmpifort_la-typef90realf.lo
  CC       src/binding/fortran/use_mpi/lib_libmpifort_la-typef90intf.lo
rm -f src/binding/fortran/use_mpi/mpifnoext.h
sed -e 's/^C/\!/g' -e '/EXTERNAL/d' \
-e '/REAL\*8/d' \
-e '/DOUBLE PRECISION/d' \
-e '/MPI_WTICK/d' src/binding/fortran/mpif_h/mpif.h > src/binding/fortran/use_mpi/mpifnoext.h
  MOD      src/binding/fortran/use_mpi/mpi_constants.mod-stamp
  MOD      src/binding/fortran/use_mpi/mpi_sizeofs.mod-stamp
  MOD      src/binding/fortran/use_mpi/mpi_base.mod-stamp
  MOD      src/binding/fortran/use_mpi/mpi.mod-stamp
  GEN      lib/libmpifort.la
ld: warning: file /export2/prog/SunOS_sparc/gcc-4.9.0/bin/../lib/gcc/sparc-sun-solaris2.10/4.9.0/../../../libgfortran.so: linked to 
/usr/local/gcc-4.9.0/lib/libgfortran.so: attempted multiple inclusion of file
  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.1
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmpicxx.la] Error 1
make[2]: Leaving directory `/export2/src/mpich-3.1.1/mpich-3.1.1-SunOS.sparc.32_gcc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export2/src/mpich-3.1.1/mpich-3.1.1-SunOS.sparc.32_gcc'
make: *** [all] Error 2
tyr mpich-3.1.1-SunOS.sparc.32_gcc 420 


I've had no problems building mpich with "Sun C 5.12" as I already
mentioned in a previous email.

tyr fd1026 102 mpiexec -info
HYDRA build details:
    Version:                                 3.1.1
    Release Date:                            Wed Jun  4 15:02:25 CDT 2014
    CC:                              cc -DSunOS -Dsparc -m64 -m64 -L/usr/lib/sparcv9 -R/usr/lib/sparcv9 
    CXX:                             CC -DSunOS -Dsparc -m64 -m64 -L/usr/lib/sparcv9 -R/usr/lib/sparcv9 
    F77:                             f77 -m64 -m64 -L/usr/lib/sparcv9 -R/usr/lib/sparcv9 
    F90:                             f95 -m64 -m64 -L/usr/lib/sparcv9 -R/usr/lib/sparcv9 
    Configure options:                       '--disable-option-checking' '--prefix=/usr/local/mpich-3.1.1_64_cc' 
'--libdir=/usr/local/mpich-3.1.1_64_cc/lib64' '--includedir=/usr/local/mpich-3.1.1_64_cc/include64' 'CC=cc' 'CXX=CC' 'F77=f77' 'FC=f95' 
'CFLAGS=-m64 -O2' 'CXXFLAGS=-m64 -O2' 'FFLAGS=-m64 ' 'FCFLAGS=-m64 -O2' 'LDFLAGS=-m64 -L/usr/lib/sparcv9 -R/usr/lib/sparcv9 ' '--enable-f77' 
'--enable-fc' '--enable-cxx' '--enable-romio' '--enable-debuginfo' '--enable-smpcoll' '--enable-threads=runtime' '--with-thread-package=posix' 
'--enable-shared' 'CPPFLAGS=-DSunOS -Dsparc -I/export2/src/mpich-3.1.1/mpich-3.1.1-SunOS.sparc.64_cc/src/mpl/include 
-I/export2/src/mpich-3.1.1/mpich-3.1.1/src/mpl/include -I/export2/src/mpich-3.1.1/mpich-3.1.1/src/openpa/src 
-I/export2/src/mpich-3.1.1/mpich-3.1.1-SunOS.sparc.64_cc/src/openpa/src 
-I/export2/src/mpich-3.1.1/mpich-3.1.1-SunOS.sparc.64_cc/src/mpi/romio/include' '--cache-file=/dev/null' 
'--srcdir=../../../../mpich-3.1.1/src/pm/hydra' 'LIBS=-lrt -lnsl -lsocket -lpthread '
    Process Manager:                         pmi
    Launchers available:                     ssh rsh fork slurm ll lsf sge manual persist
    Topology libraries available:            hwloc
    Resource management kernels available:   user slurm ll lsf sge pbs cobalt
    Checkpointing libraries available:       
    Demux engines available:                 poll select
tyr fd1026 103 


Kind regards

Siegmar




> On Jun 25, 2014, at 1:26 AM, Siegmar Gross <Siegmar.Gross at informatik.hs-fulda.de> wrote:
> 
> > Solaris uses LD_LIBRARY_PATH for 32-bit libraries/executables and
> > LD_LIBRARY_PATH_64 for 64-bit ones. When I build "mpich" as 64-bit
> > version, the 32-bit library for "libxml2.so" will be used without
> > rpath. I don't know if that is a problem of our gcc-installation
> > or your Makefile, but I could solve the problem with rpath.




More information about the discuss mailing list