[MPICH] problems with MPICH2 on a 64 bit platform

Anthony Chan chan at mcs.anl.gov
Mon Jul 30 17:35:28 CDT 2007



On Mon, 30 Jul 2007, [ISO-8859-1] Paula González wrote:

> Hello!
> My name is Paula González and I'm working on a 64 bit platform, under Ubuntu
> Feisty Fawn. I compiled MPICH2 using 64-bit  Intel ifort but I believe I got
> it wrong, since I'm getting different error messages.
>
> 1 case:
>
> ifort time_manager.o spherical_fourier.o mpp_data.o shallow_diagnostics.o
> atmos_model.o mpp_io.o atmosphere.o fms_io.o tracer_manager.o diag_util.o
> spectral_damping.o fft.o shallow_physics.o memuse.o memutils.o
> threadloc.odiag_data.o diag_axis.o get_cal_time.o diag_manager.o
> transforms.o spherical.o constants.o fms.o mpp_pset.o spec_mpp.o
> grid_fourier.o field_manager.o diag_output.o gauss_and_legendre.o nsclock.o
> leapfrog.o mpp_parameter.o platform.o fv_advection.o mpp.o
> fft99.ompp_domains.o shallow_dynamics.o -o
> fms.x -L/usr/local/lib -lnetcdf -lmpi -lsma
> ld: cannot find -lmpi

Try using <mpich2-install-dir>/bin/mpif90 to compile your app, i.e.

<mpich2-install-dir>/bin/mpif90 *.0 -o fms.x -L/usr/local/lib -lnetcdf -lsma

>
> another case:
>
> /usr/local/lib/libmpich.a(allreduce.o): In function `MPIR_Allreduce_inter':
> allreduce.c:(.text+0x1ce): undefined reference to `pthread_getspecific'
> allreduce.c:(.text+0x1fe): undefined reference to `pthread_setspecific'
> /usr/local/lib/libmpich.a(allreduce.o): In function `MPIR_Allreduce':
> allreduce.c:(.text+0x54c): undefined reference to `pthread_getspecific'
> allreduce.c:(.text+0x57c): undefined reference to `pthread_setspecific'
>
> and so on.
>
>
> Could these be related to the fact that I did not onfigure my MPICH2
> correctly? Can you Help me ?

If you think your configure of MPICH2 has problem, send us your
configure and make outputs as seen on your screen.

A.Chan




More information about the mpich-discuss mailing list