Re: Need help in compiling Gadget

From: Yves Revaz <yves.revaz_at_obs.unige.ch>
Date: Tue, 07 Feb 2006 09:12:13 +0100

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
>------------------------------------------------------------------------------------------
>
>
>
>
>-----------------------------------------------------------
>
>If you wish to unsubscribe from this mailing, send mail to
>minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
>A web-archive of this mailing list is available here:
>http://www.mpa-garching.mpg.de/gadget/gadget-list
>
>


-- 
                                                (o o)
--------------------------------------------oOO--(_)--OOo-------
  Yves Revaz
  Geneva Observatory           Tel : ++ 41 22 379 23 65
  51. Ch. des Maillettes       Fax : ++ 41 22 379 22 05
  1290 Sauverny             e-mail : Yves.Revaz_at_obs.unige.ch
  SWITZERLAND                  Web : http://obswww.unige.ch/~revaz/
----------------------------------------------------------------
Received on 2006-02-07 09:12:20

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:30 CET