[FLASH-USERS] a problem when compile FLASH code (mpi_wtime undefined"

From: <tangsk@astro.umass.edu>
Date: Thu Feb 12 2004 - 17:30:22 CST

HI,all

   I use intel fortran 8.0 and MPICH-1.2.5.2 and I check mpif90 can work well
(using the pi3f90.f90 in example directory of MPICH). But when I compile the
FLASH code using:
%./setup sedov -auto
% make
I get the error message as following:

mpif90 -o flash2 Cosmology.o .........*.o ....... flash_release.o buildstats.o
flashModules.o -L /usr/local/lib -lhdf5 -L/usr/local/flash/mpich/ch_p4/lib
-lfmpich -lmpich
flash.o(.text+0x23): In function `MAIN__':
: undefined reference to `mpi_wtime_'
flash.o(.text+0x28c): In function `MAIN__':
: undefined reference to `mpi_wtime_'
init_flash.o(.text+0x25f): In function `init_flash_':
: undefined reference to `mpi_wtime_'
output.o(.text+0x5e): In function `output_':
: undefined reference to `mpi_wtime_'
output.o(.text+0x1d7): In function `output_':
: undefined reference to `mpi_wtime_'
output.o(.text+0x56e): more undefined references to `mpi_wtime_' follow
make[1]: *** [flash2] Error 1
make[1]: Leaving directory `/usr/local/flash/FLASH2.3/object'

The function "mpi_wtime" existed in the library
% nm libmpich.a | grep MPI_Wtime
00000000 W MPI_Wtime
00000000 T PMPI_Wtime
         U MPI_Wtime
         U PMPI_Wtime
% nm libfmpich.a | grep MPI_Wtime
         U MPI_Wtime

What causes such problem? Thanks very much!!
Received on Thu Feb 12 17:30:39 2004

This archive was generated by hypermail 2.1.8 : Thu Aug 31 2006 - 21:20:48 CDT