[mpich-discuss] libmpich.a linking error

Jain, Rohit Rohit_Jain at mentor.com
Fri Mar 4 16:52:04 CST 2011


Thanks Pavan. 
It required additional linking to libmpl.a.

Regards,
Rohit


-----Original Message-----
From: Pavan Balaji [mailto:balaji at mcs.anl.gov] 
Sent: Friday, March 04, 2011 1:09 PM
To: mpich-discuss at mcs.anl.gov
Cc: Jain, Rohit
Subject: Re: [mpich-discuss] libmpich.a linking error


Please use mpicc -show to see what all libraries you need to link
against.

On 03/04/2011 02:43 PM, Jain, Rohit wrote:
> 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
>
>
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich-discuss mailing list