On Wed, 2008-01-30 at 01:09 +0530, Kumar Appaiah wrote: > Hi! > > Based on Tobias Burnus advice on: > > http://thread.gmane.org/gmane.linux.debian.devel.toolchain/733/focus=22611 > > I have been able to make a patch for mpich which sort of proceeds with > the build using gfortran (I have fixed it to gfortran-4.3).
Excellent, thanks very much for the patch and for your help! > However, > the build fails at a later stage. > > Attached is my patch, and the build log. The relevant parts are here: You missed a very relevant part: <log> checking whether C compiler accepts option -fPIC... yes checking whether routines compiled with -fPIC can be linked with ones compiled without -fPIC... yes checking whether Fortran compiler accepts option -PIC... no checking whether Fortran compiler accepts option -fPIC... yes checking whether routines compiled with -fPIC can be linked with ones compiled without -fPIC... yes checking for argument used to indicate shared lib search dir... -Wl,-rpath -Wl, checking whether shared libraries can be built... no Running device-specific setup program [snip] ranlib libpmpi++.a Making all in balky make[5]: Nothing to be done for `all'. make[5]: Nothing to be done for `all-am'. make --no-print-directory mpi-lib-test make --no-print-directory profileliblink Testing that MPI applications can be linked... make --no-print-directory linktest make overtake /tmp/buildd/mpich-1.2.7/image_mpich/bin/mpicc -DUSE_SOCKLEN_T -DUSE_U_INT_FOR_XDR -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 /tmp/buildd/mpich-1.2.7/examples/test/pt2pt/overtake.c /tmp/buildd/mpich-1.2.7/image_mpich/bin/mpicc -DUSE_SOCKLEN_T -DUSE_U_INT_FOR_XDR -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 /tmp/buildd/mpich-1.2.7/examples/test/pt2pt/test.c /tmp/buildd/mpich-1.2.7/image_mpich/bin/mpicc -o overtake overtake.o test.o make clean make --no-print-directory mpi-addons make --no-print-directory mpelib Making MPE Profiling Libraries </log> Compare with the -5 i386 build log: <log> checking whether C compiler accepts option -fPIC... yes checking whether routines compiled with -fPIC can be linked with ones compiled without -fPIC... yes checking whether Fortran compiler accepts option -PIC... no checking whether Fortran compiler accepts option -fPIC... yes checking whether routines compiled with -fPIC can be linked with ones compiled without -fPIC... yes checking for argument used to indicate shared lib search dir... -Wl,-rpath -Wl, checking whether shared libraries can be built... yes checking whether programs remember where the shared lib is... yes Running device-specific setup program [snip] ranlib libpmpi++.a Making all in balky make[5]: Nothing to be done for `all'. make[5]: Nothing to be done for `all-am'. make --no-print-directory mpi-lib-test make --no-print-directory profileliblink Testing that MPI applications can be linked... make --no-print-directory linktest make overtake /build/buildd/mpich-1.2.7/image_mpich/bin/mpicc -fPIC -DUSE_SOCKLEN_T -DUSE_U_INT_FOR_XDR -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 /build/buildd/mpich-1.2.7/examples/test/pt2pt/overtake.c /build/buildd/mpich-1.2.7/image_mpich/bin/mpicc -fPIC -DUSE_SOCKLEN_T -DUSE_U_INT_FOR_XDR -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 /build/buildd/mpich-1.2.7/examples/test/pt2pt/test.c /build/buildd/mpich-1.2.7/image_mpich/bin/mpicc -o overtake overtake.o test.o make clean make --no-print-directory mpi-addons Making a shared library of libmpich.a Successfully linked libmpich.a Making a shared library of libpmpich.a Successfully linked libpmpich.a Making a shared library of libfmpich.a Successfully linked libfmpich.a Making a shared library of libpmpich++.a Successfully linked libpmpich++.a Testing that MPI applications can be linked with shared libs... make overtake /build/buildd/mpich-1.2.7/image_mpich/bin/mpicc -fPIC -DUSE_SOCKLEN_T -DUSE_U_INT_FOR_XDR -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 /build/buildd/mpich-1.2.7/examples/test/pt2pt/overtake.c /build/buildd/mpich-1.2.7/image_mpich/bin/mpicc -fPIC -DUSE_SOCKLEN_T -DUSE_U_INT_FOR_XDR -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 /build/buildd/mpich-1.2.7/examples/test/pt2pt/test.c /build/buildd/mpich-1.2.7/image_mpich/bin/mpicc -o overtake overtake.o test.o make clean make --no-print-directory mpelib Making MPE Profiling Libraries </log> It's not even trying to make the mpich shared lib. It's a bug that it's trying to make the shared MPE lib even so. But that's not our concern. Can you see what is going on in config.log which makes configure believe that it can't make shared libraries? Thanks, -Adam -- GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6 Engineering consulting with open source tools http://www.opennovation.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]