[mpich-discuss] libmpich.so: undefined reference to ....

Boyington, Thomas Matthew tmboyington at tva.gov
Thu Apr 4 09:44:11 CDT 2013


Dear mpich community,

I'm getting numerous libmpich.so: undefined reference to XXX errors when
building Delft3D (a CFD costal/river model). I've read the log files,
Googled, and rtm'ed to no avail. I hope that the mpich mailing list can
help me out.

I am running Red Hat Enterprise 6.3 64-bit, and I am building mpich
1.4.1. I have been able to build mpich successfully (I think...the
examples described in the README file work) using the commands shown
below. I'm using the Intel 2013 Fortran compiler, and I'm using the
-enabled-shared, CFLAGS="-fPIC" and CXXFLAGS="-fPIC"  switches because
of a previous Delft3D build error saying to build mpich with the -fPIC
switch. 

	configure --prefix=/home/labuser/mpich2-install --enable-shared
CFLAGS="-fPIC" CXXFLAGS="-fPIC" F77=ifort FC=ifort |& tee c.txt 
	make 2>&1 | tee m.txt
	make install 2>&1 | tee mi.txt

When building Delft3D (again with the Intel compiler) I get the
following errors in the make log. I've included my log files as
attachments. Any suggestions on how to address this will be greatly
appreciated?

libNefis.a
../../../../../engines_gpl/waq/packages/waq_utils_f/src/interact/.libs/l
ibinteract.a
../../../../../engines_gpl/waq/packages/waq_utils_c/src/.libs/libwaq_uti
ls_c.a
../../../../../engines_gpl/waq/packages/delwaq2_version_number/src/.libs
/libdelwaq2_version_number.a -lfmpich -lmpich -lpthread -ldl -lrt
-lexpat -lstdc++ -fopenmp -threads
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trid'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trvalid'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_env2int'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trrealloc'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trspace'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trDebugLevel'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_TrSetMaxMem'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trlevel'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trmalloc'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_env2bool'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_env2range'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trcalloc'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trfree'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_env2str'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trstrdup'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trdump'
/home/labuser/mpich2-install/lib/libmpich.so: undefined reference to
`MPL_trinit'
make[5]: *** [delwaq2] Error 1
make[5]: Leaving directory
`/home/labuser/Delft3D/2367/src/engines_gpl/waq/packages/delwaq2/src'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory
`/home/labuser/Delft3D/2367/src/engines_gpl/waq/packages/delwaq2'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory
`/home/labuser/Delft3D/2367/src/engines_gpl/waq/packages'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/home/labuser/Delft3D/2367/src/engines_gpl/waq'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/labuser/Delft3D/2367/src/engines_gpl'
make: *** [install-recursive] Error 1


Thanks,

Matt

-- 
T. Matthew Boyington
Civil Engineer, Water Resources
Hydrothermal Team
River Operations & Renewables
Tennessee Valley Authority
400 West Summit Hill Drive, Knoxville, TN 37902
Office: (865) 632-8365
Cell: (865) 599-8265


 <<mi.zip>>  <<config_openpa.zip>>  <<config.zip>>  <<c.zip>>  <<m.zip>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130404/c8e06344/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mi.zip
Type: application/x-zip-compressed
Size: 8691 bytes
Desc: mi.zip
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130404/c8e06344/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config_openpa.zip
Type: application/x-zip-compressed
Size: 8847 bytes
Desc: config_openpa.zip
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130404/c8e06344/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.zip
Type: application/x-zip-compressed
Size: 30513 bytes
Desc: config.zip
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130404/c8e06344/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c.zip
Type: application/x-zip-compressed
Size: 16785 bytes
Desc: c.zip
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130404/c8e06344/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: m.zip
Type: application/x-zip-compressed
Size: 29711 bytes
Desc: m.zip
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130404/c8e06344/attachment-0004.bin>


More information about the discuss mailing list