[MPICH] build failure with 'make -j 8'

Glen W. Mabey Glen.Mabey at swri.org
Mon Feb 19 14:48:25 CST 2007


Hello,

Just building mpich2 for the first time, and I hit one bump:

make[3]: Entering directory `/home/gmabey/src/Diamondback_dev/Diamondback/src/mpich2-1.0.5p3/src/binding/f90'
rm -f mpifnoext.h
f95  -I. -c mpi.f90
f95  -I. -c mpi_constants.f90
sed -e 's/^C/\!/g' -e '/EXTERNAL/d' \
                -e '/DOUBLE PRECISION/d' ../f77/mpif.h > mpifnoext.h
f95  -I. -c mpi_sizeofs.f90
f95 -I. -c ./mpi_constants.f90
 In file mpi.f90:6

       USE MPI_SIZEOFS
                     1
Fatal Error: Can't open module file 'mpi_sizeofs.mod' for reading at (1): No such file or directory


I'm pretty sure this is just because of the -j 8 option I passed to make,
and when I added:

    mpi.$(MOD): $(MPICONSTMOD) $(MPISIZEOFMOD)

to the Makefile in that directory, it seemed to fix that particular 
problem.  I know that the Makefile was generated by the configure 
script, but I don't know anything about the autotools stuff.

However, then I got linker errors:

f95  -I. -c mpi_sizeofs.f90
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/libgfortranbegin.a(fmain.o):
In function `main':
(.text+0xa): undefined reference to `MAIN__'
collect2: ld returned 1 exit status


I don't know whether having the build scripts in such a state that -n
can be used with make is a goal of the mpich project, but it has been
useful to me.

I'm just going to build mpich2 without the -j option, but if you decide
to support it in the future, it would be handy.

Best Regards,
Glen Mabey




More information about the mpich-discuss mailing list