Re: Need help in compiling Gadget
Hi,
fftw and gsl are ok. I have checked both using "make check".
I am using fftw-2.1.5 and gsl-1.7. I am using poe instead of mpich.
The part of Gadget Makefile is as follows-
ifeq ($(SYSTYPE),"Regatta")
CC = mpcc_r -qipa -q64
OPTIMIZE = -O5 -qstrict
GSL_INCL = -I/home/phd/03/astskant/soft_inst/GSL/include
GSL_LIBS = -L/home/phd/03/astskant/soft_inst/GSL/lib
FFTW_INCL= -I/home/phd/03/astskant/soft_inst/FFTW/include
FFTW_LIBS= -L/home/phd/03/astskant/soft_inst/FFTW/lib
MPICHLIB = -L/usr/bin/poe -lpoe
#HDF5INCL = -I/afs/rzg/u/vrs/hdf5_psi64/include
#HDF5LIB = -L/afs/rzg/u/vrs/hdf5_psi64/lib -lhdf5 -lz
endif
Why it is happening ?
Regards
Shashikant
On Tue, 7 Feb 2006, Yves Revaz wrote:
> Dear Shashikant,
> It seems that gsl and fftw libraries are missing or
> badly installed.
> I just re-installed Gadget on a new computer yesterday and used the
> following libraries :
> fftw-2.1.5.tar.gz
> and
> gsl-1.7.tar.gz
> I installed those libraries with the commands :
> [for fftw]
> ./configure --prefix=/home/revaz/local --enable-type-prefix --enable-mpi --enable-float
> make
> make install
>
> [for gsl]
> ./configure --prefix=/home/revaz/local
> make
> make install
>
> and my gadget makefile looks like :
>
> ifeq ($(SYSTYPE),"revaz/local")
> CC = mpicc
> OPTIMIZE = -O3 -Wall -g
> GSL_INCL = -I/home/revaz/local/include
> GSL_LIBS = -L/home/revaz/local/lib
> FFTW_INCL= -I/home/revaz/local/include
> FFTW_LIBS= -L/home/revaz/local/lib
> MPICHLIB = -L/home/revaz/local/mpich-1.2.5/ch_p4/lib -lmpich
> HDF5INCL =
> HDF5LIB =
> endif
>
> (of course, you also need mpi to be installed, I use mpich in this example)
>
> I never get compilation errors with this configuration.
> Hope it will help...
>
> Cheers.
>
> Shashikant wrote:
>
> >Hi,
> > I have just started with Gadget2 on a supercomputer(regatta)at
> >Indian Institute of Science, Bangalore. I am having some problems in
> >compiling the code. Can someone help me ?
> >
> >I am getting the following error-
> >
> >mpcc_r -qipa -q64 main.o run.o predict.o begrun.o endrun.o global.o
> >timestep.o init.o restart.o io.o accel.o read_ic.o ngb.o system.o
> >allocate.o density.o gravtree.o hydra.o driftfac.o domain.o allvars.o
> >potential.o forcetree.o peano.o gravtree_forcetest.o pm_periodic.o
> >pm_nonperiodic.o longrange.o -g -lmpi
> >-L/home/phd/03/astskant/soft_inst/GSL/lib -lgsl -lgslcblas -lm
> >-L/home/phd/03/astskant/soft_inst/FFTW/lib -lsrfftw_mpi -lsfftw_mpi
> >-lsrfftw -lsfftw -o Gadget2
> >"system.o" 1586-233 (I) Duplicate definition of symbol
> >"MPI_F_STATUS_IGNORE" ignored.
> >"system.o" 1586-233 (I) Duplicate definition of symbol
> >"MPI_F_STATUSES_IGNORE" ignored.
> >1586-206 (S) Unresolved reference to symbol "gsl_rng_uniform".
> >1586-206 (S) Unresolved reference to symbol "gsl_rng_alloc".
> >1586-206 (S) Unresolved reference to symbol "gsl_rng_ranlxd1".
> >1586-206 (S) Unresolved reference to symbol "gsl_rng_set".
> >1586-206 (S) Unresolved reference to symbol
> >"gsl_integration_workspace_alloc".
> >1586-206 (S) Unresolved reference to symbol
> >"gsl_integration_workspace_free".
> >1586-206 (S) Unresolved reference to symbol "gsl_integration_qag".
> >1586-206 (S) Unresolved reference to symbol "gsl_rng_state".
> >1586-206 (S) Unresolved reference to symbol "gsl_rng_size".
> >1586-206 (S) Unresolved reference to symbol "rfftw3d_mpi_create_plan".
> >1586-206 (S) Unresolved reference to symbol "rfftwnd_mpi_local_sizes".
> >1586-206 (S) Unresolved reference to symbol "rfftwnd_mpi".
> >1586-204 (S) Unresolved references to objects are detected.
> >1586-341 (U) Code generation was not performed due to previously detected
> >errors. Object file not created.
> >make: *** [Gadget2] Error 1
> >
> >Thanks in advance
> >Regards
> >shashikant
-----------------------------------------------------------------------------------------
Shashikant Gupta
Joint Astrophysics Program
Dept. of Physics
Indian Institute of Science
Bangalore 560012
Ph : +91 080 2293 3277
------------------------------------------------------------------------------------------
Received on 2006-02-08 11:00:29
This archive was generated by hypermail 2.3.0
: 2023-01-10 10:01:30 CET