[mpich-discuss] undefined symbol: MPIR_Thread

Matthias Demuzere Matthias.demuzere at ees.kuleuven.be
Tue Feb 1 14:07:41 CST 2011


Ok, this is what i did before using the --with-thread-package

Before, I configured as you suggested:
./configure --prefix=/usr/local/mpich2-1.3.1
Then I get configure complete.

afterwards I follow what is written in the installation guide:
make 2>&1 | tee m.txt -->  /  /I get "make completed"
sudo make install |&  tee mi.txt  -->  I get Installed MPE2 in /usr/local/mpich2-1.3.1

I also added the bin directory to my PATH
export PATH=/usr/local/mpich2-1.3.1/bin:$PATH

I can also perform the test as in the installation guide:
mpiexec -n 5 ./examples/cpi

Process 1 of 5 is on MaffieLE6400
Process 3 of 5 is on MaffieLE6400
Process 0 of 5 is on MaffieLE6400
Process 2 of 5 is on MaffieLE6400
Process 4 of 5 is on MaffieLE6400
pi is approximately 3.1415926544231230, Error is 0.0000000008333298
wall clock time = 0.000435

as far as I can see all works fine?

The reason I configured with the --with-thread-package=none the second time was to deal with the MPIR_Thread error...
So I wonder how I can deal with this error?

Thanks for your help!

Matthias





On 02/01/2011 08:24 PM, Anthony Chan wrote:
>
> ----- Original Message -----
>> Dear Anthony,
>>
>> My apologies for posting to the wrong email list. I will register to
>> the
>> other one so that in the future I can put my questions there.
>> For now i'll post this directly to you, hope that is fine??
> Yes.  I cc'ed my reply to mpich-discuss as someone else may have
> things to add.
>
>> I am not sure if I understand what you mean with:
>>
>> Did you use mpif90/mpif77 to link your code or just use above link
>> command which seems incomplete ?
>>
>> I used the following line to check how mpich2 was built, as I first
>> got
>> an error with f90 vs f95.
>> So with
>> /usr/local/mpich2-1.3.1/bin/mpif90 -show
>>
>> I get finally got:
>> gfortran -O2 -I/usr/local/mpich2-1.3.1/include
>> -I/usr/local/mpich2-1.3.1/include -L/usr/local/mpich2-1.3.1/lib
>> -lmpichf90 -lmpichf90 -lmpich -lopa -lmpl -lrt -lpthread
>>
>> Do you mean that there is something missing here? And should I add it
>> than in my definition of INC_MPI and LIB_MPI?
> Let's focus if your mpich2 installation is correct first.
>> One other question. I was thinking that it could be useful to built
>> mpich2 without threading, so I used:
>> ./configure -prefix=/usr/local/mpich2-1.3.1 --with-thread-package=none
> Try "./configure --prefix=/usr/local/mpich2-1.3.1", without --with-thread-package.
>
> A.Chan
>
>> But then I get a whole list of errors, e.g.:
>> /home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getn.o): In
>> function `MPIU_Thread_CS_exit_lockname_recursive_impl_':
>> info_getn.c:(.text+0x124): undefined reference to
>> `MPIU_Thread_mutex_unlock'
>> /home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getnth.o):
>> In
>> function `MPIU_Thread_CS_enter_lockname_recursive_impl_':
>> info_getnth.c:(.text+0x32): undefined reference to
>> `MPIU_Thread_mutex_lock'
>> /home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getnth.o):
>> In
>> function `MPIU_Thread_CS_exit_lockname_recursive_impl_':
>> info_getnth.c:(.text+0xf4): undefined reference to
>> `MPIU_Thread_mutex_unlock'
>> /home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getvallen.o):
>> In function `MPIU_Thread_CS_enter_lockname_recursive_impl_':
>> info_getvallen.c:(.text+0x32): undefined reference to
>> `MPIU_Thread_mutex_lock'
>> /home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getvallen.o):
>> In function `MPIU_Thread_CS_exit_lockname_recursive_impl_':
>>
>>
>> Any ideas here?
>> Matthias
>>
>>
>>
>>
>> -------- Original Message --------
>> Subject: Re: [mpich2-dev] undefined symbol: MPIR_Thread
>> Date: Tue, 1 Feb 2011 19:41:54 +0100
>> From: Anthony Chan<chan at mcs.anl.gov>
>> Reply-To: Anthony Chan<chan at mcs.anl.gov>, "mpich2-dev at mcs.anl.gov"
>> <mpich2-dev at mcs.anl.gov>
>> To: mpich2-dev at mcs.anl.gov<mpich2-dev at mcs.anl.gov>
>>
>>
>>
>> mpich2-dev for mpich2 development not general MPICH usage questions,
>> please send your question to mpich-discuss at mcs.anl.gov.
>>
>> ----- Original Message -----
>>>   All,
>>>
>>>   when running a model with mpirun ./exe
>>>   I get the following error:
>>>   ./exe: symbol lookup error: ./exe: undefined symbol: MPIR_Thread
>>>
>>>   I have no idea how to deal with this. I use mpich2-1.3.1, compiled
>>>   with
>>>   gfortran, with the following libraries:
>>>   gfortran -O2 -I/usr/local/mpich2-1.3.1/include
>>>   -I/usr/local/mpich2-1.3.1/include -L/usr/local/mpich2-1.3.1/lib
>>>   -lmpichf90 -lmpichf90 -lmpich -lopa -lmpl -lrt -lpthread
>> Did you use mpif90/mpif77 to link your code or just use above link
>> command which seems incomplete ?
>>
>> A.Chan
>>
>>>   Could anybody help me with this?
>>>
>>>   Regards,
>>>   Matthias
>>>
>>>   --
>>>
>>>
>>>   -------------------------------------------------------------
>>>   FWO Post-doctoral Research Fellow
>>>   Department of Earth&  Environmental Sciences
>>>   Physical and Regional Geography Research Group
>>>   Regional climate studies
>>>
>>>   Celestijnenlaan 200E
>>>   3001 Heverlee (Leuven)
>>>   BELGIUM
>>>
>>>   Tel: + 32 16 326424
>>>   Fax: + 32 16 322980
>>>
>>>   http://geo.kuleuven.be/aow/
>>>   www.kuleuven.be/geography
>>>   -------------------------------------------------------------

-- 


-------------------------------------------------------------
FWO Post-doctoral Research Fellow
Department of Earth&  Environmental Sciences
Physical and Regional Geography Research Group
Regional climate studies

Celestijnenlaan 200E
3001 Heverlee (Leuven)
BELGIUM

Tel: + 32 16 326424
Fax: + 32 16 322980

http://geo.kuleuven.be/aow/
www.kuleuven.be/geography
-------------------------------------------------------------

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


More information about the mpich-discuss mailing list