[mpich-discuss] mpich2version.c:(.text+0x162): undefined reference to `MPIR_Version_*

Dave Goodell goodell at mcs.anl.gov
Tue Feb 15 21:15:31 CST 2011


Jeff, can you "make clean", "make", and then send us the m.txt again?  These symbols come from "src/mpi/init/initinfo.c", so we need to see the output from building that file as well as its inclusion in libmpich.a.

Also, you're not doing any kind of fancy make, such as "make -j4" or "make SOMEVARS=somevals", are you?  The MPICH2 build system is currently... less than robust in the event of those sorts of actions.

-Dave

On Feb 15, 2011, at 6:59 PM CST, Jeff Hammond wrote:

> I configure MPICH2 trunk svn updated a moment ago like this:
> 
>  $ ./configure
> --prefix=/software/mpich/mpich2-trunk/install-gcc-4.5.0 CC=gcc CXX=g++
> FC=gfortran F77=gfortran --enable-threads --with-pm=hydra --enable-f77
> --enable-fc --enable-cxx --enable-smpcoll
> 
> I do make and I get this:
> 
> make[2]: Entering directory `/software/mpich/mpich2-trunk/src/env'
> gcc -O2   -o mpich2version mpich2version.o  \
>        ../../lib/libmpich.a -lrt -lpthread
> mpich2version.o: In function `main':
> mpich2version.c:(.text+0x162): undefined reference to `MPIR_Version_CC'
> mpich2version.c:(.text+0x173): undefined reference to `MPIR_Version_CXX'
> mpich2version.c:(.text+0x184): undefined reference to `MPIR_Version_F77'
> mpich2version.c:(.text+0x195): undefined reference to `MPIR_Version_FC'
> mpich2version.c:(.text+0x2d1): undefined reference to `MPIR_Version_configure'
> mpich2version.c:(.text+0x2f1): undefined reference to `MPIR_Version_device'
> mpich2version.c:(.text+0x311): undefined reference to `MPIR_Version_date'
> mpich2version.c:(.text+0x34f): undefined reference to `MPIR_Version_string'
> collect2: ld returned 1 exit status
> make[2]: *** [mpich2version] Error 1
> make[2]: Leaving directory `/software/mpich/mpich2-trunk/src/env'
> make[1]: *** [all-redirect] Error 2
> make[1]: Leaving directory `/software/mpich/mpich2-trunk/src'
> make: *** [all-redirect] Error 2
> 
> The only other report of an issue like this I can find on the
> mpich-discuss archives is from 2008 and involved icc, so I think this
> problem is new.  If I have epic-failed in my search for previous
> reports of this error, please point me to the archived solution.
> 
> Thanks,
> 
> Jeff
> 
> 
> -- 
> Jeff Hammond
> Argonne Leadership Computing Facility
> jhammond at alcf.anl.gov / (630) 252-5381
> http://www.linkedin.com/in/jeffhammond
> <config.log><make.log>_______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list