[mpich-discuss] undefined reference to MPL_env2bool, MPL_env2int, MPL_env2str, MPL_env2range
Jeff Hammond
jhammond at mcs.anl.gov
Sun May 2 14:52:00 CDT 2010
I am an idiot. Because I link MPI manually (i.e. w/o compiler
scripts), I was not getting "-lmpl". This must be a new thing since
previously I didn't have this issue with MPICH.
Jeff
On Sun, May 2, 2010 at 2:28 PM, Jeff Hammond <jhammond at mcs.anl.gov> wrote:
> I did this:
>
> cd /software/mpich/mpich2-trunk
> svn update
> find . -name configure -print | xargs rm
> ./maint/updatefiles
>
> with this:
>
> jeff at megatron:~> svn --version
> svn, version 1.6.9 (r901367)
> compiled Mar 20 2010, 15:19:42
>
>
> On Sun, May 2, 2010 at 2:23 PM, Pavan Balaji <balaji at mcs.anl.gov> wrote:
>>
>> Are you using a nightly tarball or did you checkout from the svn? If you
>> have checked out from the svn, you might have missed MPL -- you need svn
>> version >= 1.5 to checkout MPICH2.
>>
>> -- Pavan
>>
>> On 05/02/2010 02:14 PM, Jeff Hammond wrote:
>>>
>>> I did a fresh build of the MPICH2 trunk with GCC 4.5.0 just now and am
>>> getting these errors when I try to link a C application similarly
>>> built with GCC 4.5.0.
>>>
>>> What am I doing wrong?
>>>
>>> Thanks,
>>>
>>> Jeff
>>>
>>>
>>> /software/mpich/mpich2-trunk-gnu45-build/lib/libmpich.a(errutil.o): In
>>> function `MPIR_Err_init':
>>> errutil.c:(.text+0x385): undefined reference to `MPL_env2bool'
>>> errutil.c:(.text+0x394): undefined reference to `MPL_env2int'
>>> /software/mpich/mpich2-trunk-gnu45-build/lib/libmpich.a(initthread.o):
>>> In function `MPI_Init_thread':
>>> initthread.c:(.text+0x4ff): undefined reference to `MPL_env2bool'
>>> /software/mpich/mpich2-trunk-gnu45-build/lib/libmpich.a(mpid_init.o):
>>> In function `MPID_Init':
>>> mpid_init.c:(.text+0x75): undefined reference to `MPL_env2bool'
>>> /software/mpich/mpich2-trunk-gnu45-build/lib/libmpich.a(mpid_vc.o): In
>>> function `MPIDI_Populate_vc_node_ids':
>>> mpid_vc.c:(.text+0xb7c): undefined reference to `MPL_env2int'
>>> mpid_vc.c:(.text+0xb8e): undefined reference to `MPL_env2int'
>>> mpid_vc.c:(.text+0xbb0): undefined reference to `MPL_env2bool'
>>> mpid_vc.c:(.text+0xbc6): undefined reference to `MPL_env2bool'
>>> /software/mpich/mpich2-trunk-gnu45-build/lib/libmpich.a(init.o): In
>>> function `MPI_Init':
>>> init.c:(.text+0x6e): undefined reference to `MPL_env2str'
>>> init.c:(.text+0xb5): undefined reference to `MPL_env2bool'
>>>
>>> /software/mpich/mpich2-trunk-gnu45-build/lib/libmpich.a(mpid_nem_network.o):
>>> In function `MPID_nem_choose_netmod':
>>> mpid_nem_network.c:(.text+0x15): undefined reference to `MPL_env2str'
>>> /software/mpich/mpich2-trunk-gnu45-build/lib/libmpich.a(tcp_init.o):
>>> In function `MPID_nem_tcp_bind':
>>> tcp_init.c:(.text+0x8bf): undefined reference to `MPL_env2range'
>>> collect2: ld returned 1 exit status
>>>
>>>
>>
>> --
>> Pavan Balaji
>> http://www.mcs.anl.gov/~balaji
>> _______________________________________________
>> mpich-discuss mailing list
>> mpich-discuss at mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>
>
>
>
> --
> Jeff Hammond
> Argonne Leadership Computing Facility
> jhammond at mcs.anl.gov / (630) 252-5381
> http://www.linkedin.com/in/jeffhammond
>
--
Jeff Hammond
Argonne Leadership Computing Facility
jhammond at mcs.anl.gov / (630) 252-5381
http://www.linkedin.com/in/jeffhammond
More information about the mpich-discuss
mailing list