Dear all,
does anybody knows why after successful compiling of the example code 
dsetexample.f90 provided from the hdf5-group, I get this error message 
concerning the data type ID?
./dsetexample
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5D.c line 143 in H5Dcreate2(): not a datatype ID
 major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
#000: H5D.c line 391 in H5Dclose(): not a dataset
 major: Invalid arguments to routine
 minor: Inappropriate type

I used
gfortran  -o dsetexample dsetexample.f90  -I/sw/include -L/sw/lib -lhdf5 
-lhdf5_fortran

on MAC OS X, Version 10.7.2. I installed hdf5.7-gfortran using fink and 
installed gfortran 4.2.3.
I also asked the hdf5-help-desk (answer attached), but I am unable to cope with 
the hints given.
Can you help me or tell me  whether the HDF5 version built with fink uses the 
same gfortran version?

Best wishes,
Silke





Anfang der weitergeleiteten E-Mail:

> Von: [email protected]
> Betreff: Re: dsetexample
> Datum: 14. Februar 2012 20:25:09 MEZ
> An: Silke Trömel <[email protected]>
> 
> Hello Silke,
> 
> My first guess is that there is some issue with the fink installation,
> but I really don't know what the problem is.
> 
> I do know that the HDF5 datatypes must be opened by HDF5. The object
> identifier is actually the 'handle' returned from opening the datatype.
> The datatypes get opened when h5open_f is called. I mention this, because
> the error makes me wonder if the datatypes were opened properly.
> 
> Here are some things to do:
> 
> - Check that the HDF5 version built with fink uses the same gfortran
>   version that you are using. If it does not then you should build
>   from source.
> 
> - If it does, use the h5fc compile script that we provide in the bin/
>   directory of the binaries. (You may have to run ./h5redeploy first,
>   to use it.) For example:
>     h5fc -o dsetexample dsetexample.f90
>     ./dsetexample
> 
> - Lastly, I would download HDF5 and build it from source and try that.
>   There is a known problem on Mac OS X 10.7, where the conversion tests fail:
> 
>     Conversion Tests fail on Mac OS X 10.7 (Lion)
>     =============================================
> 
>     Users have reported that when building HDF5, the conversion tests failed
>     (make check) in dt_arith.chk.
> 
>     A workaround is to edit ./< HDF5source >/config/gnu-flags, search for
>     PROD_CFLAGS under "gcc-4.*", and change the value for PROD_CFLAGS to 
> "-O0".
> 
>   Make the above change, and then build HDF5:
> 
>     setenv FC=<path to your gfortran compiler>/gfortran
>     ./configure --enable-fortran
>     make >& make.out
>     make check >& check.out
>     make install
> 
>  It should build okay.
> 
> -Barbara
> 
> 
> ====================
> Barbara Jones
> The HDF Helpdesk
> 
> The HDF Group
> [email protected]
> ====================
> 
>> does anybody knows why after successful compiling of the example code 
>> dsetexample.f90 provided, I get this error message concerning the data type
>> ID?
>> 
>> ./dsetexample
>> HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
>> #000: H5D.c line 143 in H5Dcreate2(): not a datatype ID
>>  major: Invalid arguments to routine
>>  minor: Inappropriate type
>> HDF5-DIAG: Error detected in HDF5 (1.8.8) thread 0:
>> #000: H5D.c line 391 in H5Dclose(): not a dataset
>>  major: Invalid arguments to routine
>>  minor: Inappropriate type
>> 
>> 
>> I used
>> gfortran  -o dsetexample dsetexample.f90  -I/sw/include -L/sw/lib -lhdf5 
>> -lhdf5_fortran
>> 
>> on MAC OS X, Version 10.7.2. I installed hdf5.7-gfortran using fink.
>> 
>> Thanks in advance,
>> Silke
>> 
>> 
>> Dr. Silke Trömel
>> Meteorologisches Institut
>> der Universität Bonn
>> Auf dem Hügel 20
>> 53121 Bonn
>> Tel:  +49 (0)228 735779
>> Fax: +49 (0)228 735188
>> http://www.meteo.uni-bonn.de/mitarbeiter/stroemel
>> http://www.herz-tb1.uni-bonn.de
>> 
>> 
>> 
> 
> --

Dr. Silke Trömel
Meteorologisches Institut
der Universität Bonn
Auf dem Hügel 20
53121 Bonn
Tel:  +49 (0)228 735779
Fax: +49 (0)228 735188
http://www.meteo.uni-bonn.de/mitarbeiter/stroemel
http://www.herz-tb1.uni-bonn.de


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to