[mpich-discuss] configure: error: unable to find pthreads library

Anthony Chan chan at mcs.anl.gov
Mon Jul 25 10:19:57 CDT 2011


Not sure why intel-10 C compiler can't find pthread library.
Could you try setting LDFLAGS="-L/usr/lib64" to see if the test
passes ?  If not, send us the top-level config.log

BTW, your configure command contains some mistakes but configure
hasn't gotten to those fortran tests yet.  Here is the configure line
you typed:

./configure --prefix=/cluster/mpich2-1.1.1p1 --enable-fc 
CC=/opt/intel/cce/10.1.015/bin/icc 
FC=/opt/intel/fce/10.1.015/bin/ifort 
FCFLAGS=/opt/intel/fce/10.1.015/bin/ifort 
CXX=/opt/intel/cce/10.1.015/bin/icc --enable-timer-type=linux86_cycle

Notice FCFLAGS is pointing to icc! It is wrong. 
Also, you may want to set F77 to ifort as well just for consistence
(or configure may find gfortran as F77 compiler since ifort isn't in your PATH).
Also, CXX should be pointing to icpc (not icc).

A.Chan

----- Original Message -----
> Hello,
> 
> I'm having trouble installing
> mpich2-1.4.
> 
> Getting:
> 
> configure: error: unable to find pthreads library
> 
> error when running ./configure
> 
> However the pthreads library
> appears to be installed on the
> computer:
> 
> jthomas at chanute [443] ls -1 /usr/lib/libpthr*
> /usr/lib/libpthread.a
> /usr/lib/libpthread_nonshared.a
> /usr/lib/libpthread.so
> 
> jthomas at chanute [444] ls -1 /usr/lib64/libpthr*
> /usr/lib64/libpthread.a
> /usr/lib64/libpthread_nonshared.a
> /usr/lib64/libpthread.so
> 
> (Also, I have been able to
> sucessfully install an older
> version of mpich2 (mpich2-1.1.1p1)
> on this same computer).
> 
> attached
> ("mpich2_log_files.tar.gz") are the
> log files:
> 
> mpich2-1.4/config.log
> mpich2-1.4/src/openpa/config.log
> 
> Thank you,
> 
> Jeff
> 
> --------------------------------------------------------------------------
> Jeffrey P. Thomas Phone: (919) 660-5173
> Research Assistant Professor Fax: (919) 660-8963
> Department of Mechanical Engineering jthomas at duke.edu
> and Materials Science - Room 144 http://www.duke.edu/~jthomas
> Duke University / Box 90300
> Durham, NC 27708-0300
> 
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss


More information about the mpich-discuss mailing list