Re: [mpich-discuss] couldn't build mpich-3.1.1 on Solaris 10 with gcc-4.9.0
Before we go digging down this path, did you try simplifying your configure options? ../mpich-3.1.1/configure --prefix=/usr/local/mpich-3.1.1_64_gcc \ --libdir=/usr/local/mpich-3.1.1_64_gcc/lib64 \ --includedir=/usr/local/mpich-3.1.1_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 \ |& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.64_gcc Why is -m64 needed? Are you trying to use a 32-bit compiler on a 64-bit machine? Why do you need the rpath settings? — Pavan On Jun 20, 2014, at 8:37 AM, Siegmar Gross <[email protected]> wrote:
Hi,
today I tried to install mpich-3.1.1 on my platforms (Solaris 10 sparc, Solaris 10 x86_64, and openSUSE Linux 12.1) with gcc-4.9.0 and Sun C 5.12. Unfortunately I couldn't build it with gcc-4.9.0 on my Solaris platforms (everything else succeeded).
tyr mpich-3.1.1 110 grep Error mpich-3.1.1-SunOS.x86_64.64_cc/log.make.* tyr mpich-3.1.1 111 grep Error mpich-3.1.1-SunOS.x86_64.64_gcc/log.make.* make[2]: *** [lib/libmpicxx.la] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 tyr mpich-3.1.1 112 tyr mpich-3.1.1 112 grep Error mpich-3.1.1-SunOS.sparc.64_cc/log.make.* tyr mpich-3.1.1 113 grep Error mpich-3.1.1-SunOS.sparc.64_gcc/log.make.* make[2]: *** [lib/libmpicxx.la] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 tyr mpich-3.1.1 114
tyr mpich-3.1.1 123 tail mpich-3.1.1-SunOS.x86_64.64_gcc/log.make.* 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.x86_64.64_gcc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export2/src/mpich-3.1.1/mpich-3.1.1-SunOS.x86_64.64_gcc' make: *** [all] Error 2 tyr mpich-3.1.1 124
I used the following command to configure the system. "ld" reports an error for "libxml2.so" without "/usr/lib/sparcv9" in LDFLAGS (wrong ELF class). The command is similar for Solaris 10 x86_64. Solaris uses LD_LIBRARY_PATH_64 to find 64-bit libraries and LD_LIBRARY_PATH for 32-bit ones. Perhaps that's the reason why I had to add the directories to LDFLAGS.
../mpich-3.1.1/configure --prefix=/usr/local/mpich-3.1.1_64_gcc \ --libdir=/usr/local/mpich-3.1.1_64_gcc/lib64 \ --includedir=/usr/local/mpich-3.1.1_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 \ |& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.64_gcc
I would be grateful if somebody can provide a solution for my problem. I have attached some config.log files. Do you need anything else?
Kind regards
Siegmar <mpich-3.1.1-SunOS.sparc.64_gcc.tar.gz>_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
participants (1)
-
Balaji, Pavan