[mpich-discuss] mpich1 on OSX 10.6
Reto Stöckli
reto.stockli at gmail.com
Thu Oct 1 15:32:16 CDT 2009
Dear MPICH discussion group
I am trying to compile mpich-1.2.7p1 on OSX 10.6 by using gcc 4.4 and
alternatively gcc 4.2, but I fail with the following link error in the
testing part of the compilation process (libraries have been built
fine as I can see):
Testing that MPI applications can be linked...
make linktest
make overtake
/Users/stockli/src/mpich-1.2.7p1/bin/mpicc -I/sw/include -
DUSE_SOCKLEN_T -DHAVE_MPICHCONF_H -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STRING_H=1 -DUSE_STDARG=1 -DHAVE_LONG_DOUBLE=1 -
DHAVE_LONG_LONG_INT=1 -DHAVE_PROTOTYPES=1 -DHAVE_SIGNAL_H=1 -
DHAVE_SIGACTION=1 -DHAVE_SLEEP=1 -DHAVE_SYSCONF=1 -c overtake.c
/Users/stockli/src/mpich-1.2.7p1/bin/mpicc -I/sw/include -
DUSE_SOCKLEN_T -DHAVE_MPICHCONF_H -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STRING_H=1 -DUSE_STDARG=1 -DHAVE_LONG_DOUBLE=1 -
DHAVE_LONG_LONG_INT=1 -DHAVE_PROTOTYPES=1 -DHAVE_SIGNAL_H=1 -
DHAVE_SIGACTION=1 -DHAVE_SLEEP=1 -DHAVE_SYSCONF=1 -c test.c
/Users/stockli/src/mpich-1.2.7p1/bin/mpicc -o overtake overtake.o
test.o
ld: duplicate symbol _MPIR_Init_dtes in /Users/stockli/src/
mpich-1.2.7p1/lib/libmpich.a(initdte.o) and /Users/stockli/src/
mpich-1.2.7p1/lib/libpmpich.a(initdte.o)
collect2: ld returned 1 exit status
make[4]: *** [overtake] Error 1
make[3]: [linktest1] Error 2 (ignored)
Could not link a C program with MPI libraries
make[3]: *** [linktest1] Error 1
make[2]: *** [linktest] Error 2
make[1]: *** [mpi-lib-test] Error 2
make: *** [mpi] Error 2
This all worked fine in OSX 10.4 with gcc 4.2 using the same
configuration settings. It seems to be that the linker now barks at
symbols being present in both libmpich.a and libpmpich.a. Is it needed
that during testing both libpmpich.a and libmpich.a are linked by
default implicitly by using mpicc, or could we simply use libmpich.a?
Let me know if this error sounds familiar to you and if you have any
suggestions for what to do here. I have successfully compiled and used
mpich2 on 10.6, but I need mpich1 for compatibility testing as well.
Sincerely,
Reto
More information about the mpich-discuss
mailing list