[mpich-discuss] libmpich.a linking error

Jain, Rohit Rohit_Jain at mentor.com
Fri Mar 4 14:43:27 CST 2011


While linking libmpich.a, I am getting these errors:

 

/install/mpich2-1.3.3rc1/linux/lib/libmpich.a(init.o): In function
`PMPI_Init':

/mpich2-1.3.3rc1/src/mpi/init/init.c:106: undefined reference to
`MPL_env2str'

/mpich2-1.3.3rc1/src/mpi/init/init.c:132: undefined reference to
`MPL_env2bool'

/install/mpich2-1.3.3rc1/linux/lib/libmpich.a(initthread.o): In function
`PMPI_Init_thread':

/mpich2-1.3.3rc1/src/mpi/init/initthread.c:531: undefined reference to
`MPL_env2bool'

/install/mpich2-1.3.3rc1/linux/lib/libmpich.a(trmem.o): In function
`MPIU_trinit':

/mpich2-1.3.3rc1/src/util/mem/trmem.c:15: undefined reference to
`MPL_trinit'

/install/mpich2-1.3.3rc1/linux/lib/libmpich.a(trmem.o): In function
`MPIU_trdump':

/mpich2-1.3.3rc1/src/util/mem/trmem.c:21: undefined reference to
`MPL_trdump'

/install/mpich2-1.3.3rc1/linux/lib/libmpich.a(trmem.o): In function
`MPIU_trmalloc':

/mpich2-1.3.3rc1/src/util/mem/trmem.c:29: undefined reference to
`MPL_trmalloc'

/install/mpich2-1.3.3rc1/linux/lib/libmpich.a(trmem.o): In function
`MPIU_trfree':

/mpich2-1.3.3rc1/src/util/mem/trmem.c:37: undefined reference to
`MPL_trfree'

 

These symbols do look undefined:

nm /install/mpich2-1.3.3rc1/linux/lib/libmpich.a | gp MPL_env2str

12674:         U MPL_env2str

20562:         U MPL_env2str

 

Config options were

configure --prefix /install/mpich2-1.3.3rc1/linux
--enable-shared--enable-sharedlibs=gcc --disable-f77 --disable-fc
--disable-f90modules --disable-cxx --enable-totalview --enable-debuginfo
--enable-error-messages=all --enable-error-checking=all
--enable-g=dbg,mem,meminit CFLAGS=-O3 -fPIC -m32 CXXFLAGS=-O3 -fPIC -m32

 

 

Linking earlier versions used to work.

 

Regards,

Rohit

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110304/5ce17190/attachment.htm>


More information about the mpich-discuss mailing list