Re: Gadget compilations problems with hdf5

From: Andreu Coll i Pla <andreu.fanera_at_gmail.com>
Date: Thu, 10 May 2012 17:05:16 +0200

Hi again Florian!

I tried what you said and it did not work...But finally could compiled it!
There are quite a few warnings but at least it work!

o.c:685:10: warning: variable ‘hdf5_status’ set but not used
[-Wunused-but-set-variable]
io.c:675:24: warning: variable ‘ntask’ set but not used
[-Wunused-but-set-variable]
...
read_ic.c:530:19: warning: ‘hdf5_datatype’ may be used uninitialized in
this function [-Wuninitialized]
read_ic.c:603:12: warning: ‘hdf5_file’ may be used uninitialized in this
function [-Wuninitialized]
....
allocate.c:118:107: warning: format ‘%d’ expects argument of type ‘int’,
but argument 3 has type ‘long unsigned int’ [-Wformat]
allocate.c:127:106: warning: format ‘%d’ expects argument of type ‘int’,
but argument 3 has type ‘long unsigned int’ [-Wformat]

and more of the same type.


I have no idea why, but changing all the "$(HDF5LIBS)" in the makefile for
the "actual path" make it work.

That's how my makefile looks(the part i've changed):

CFLAGS = $(OPTIONS) $(GSL_INCL) $(FFTW_INCL) -L/usr/lib64 -lhdf5 -lz
-Wl,"-R /usr/share"

LIBS = -L/usr/lib64 -lhdf5 -lz -Wl,"-R /usr/share" -g $(MPICHLIB)
$(GSL_LIBS) -lgsl -lgslcblas -lm -L/usr/libold/lib

If I don't change this and just change the HDF5LIB = /usr/lib64/libhdf5.so
it does not work...

Thank you very much,

Andreu
Received on 2012-05-10 17:05:33

This archive was generated by hypermail 2.3.0 : 2022-09-01 14:03:42 CEST