> Can you provide the contents of: H5fort_type_defines.h and > H5fortran_types.f90? > > Thanks, > Scot >
Hello, Thanks for your reply. Here are the files. Pierre H5fort_type_defines.h /*generating header file*/ #define H5_FORTRAN_HAS_NATIVE_4 #define H5_FORTRAN_HAS_REAL_NATIVE_4 #define H5_FORTRAN_HAS_DOUBLE_NATIVE_8 #define H5_FORTRAN_HAS_INTEGER_1 #define H5_FORTRAN_HAS_INTEGER_2 #define H5_FORTRAN_HAS_INTEGER_4 #define H5_FORTRAN_HAS_INTEGER_8 #define H5_FORTRAN_HAS_REAL_4 #define H5_FORTRAN_HAS_REAL_8 #define H5_FORTRAN_HAS_REAL_16 H5fortran_types.f90 ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! Copyright by the Board of Trustees of the University of Illinois. * ! All rights reserved. * ! * ! This file is part of HDF5. The full HDF5 copyright notice, including * ! terms governing use, modification, and redistribution, is contained in * ! the files COPYING and Copyright.html. COPYING can be found at the root * ! of the source code distribution tree; Copyright.html can be found at the * ! root level of an installed copy of the electronic HDF5 document set and * ! is linked from the top-level documents page. It can also be found at * ! http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * ! access to either file, you may request a copy from [email protected]. * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! ! ! This file is automatically generated and contains HDF5 Fortran90 type definitions. ! MODULE H5FORTRAN_TYPES ! ! HDF5 integers ! INTEGER, PARAMETER :: HADDR_T = 8 INTEGER, PARAMETER :: HSIZE_T = 8 INTEGER, PARAMETER :: HSSIZE_T = 8 INTEGER, PARAMETER :: SIZE_T = 8 INTEGER, PARAMETER :: Fortran_INTEGER = 4 INTEGER, PARAMETER :: Fortran_INTEGER_1 = 1 INTEGER, PARAMETER :: Fortran_INTEGER_2 = 2 INTEGER, PARAMETER :: Fortran_INTEGER_4 = 4 INTEGER, PARAMETER :: Fortran_INTEGER_8 = 8 INTEGER, PARAMETER :: Fortran_REAL_4 = 4 INTEGER, PARAMETER :: Fortran_REAL_8 = 8 INTEGER, PARAMETER :: Fortran_REAL_4 = 4 INTEGER, PARAMETER :: Fortran_REAL_16 = 16 INTEGER, PARAMETER :: HID_T = 4 INTEGER, PARAMETER :: Fortran_REAL = 4 INTEGER, PARAMETER :: Fortran_DOUBLE = 8 INTEGER(SIZE_T), PARAMETER :: OBJECT_NAMELEN_DEFAULT_F = -1 END MODULE H5FORTRAN_TYPES Le 27 sept. 2011 à 06:04, [email protected] a écrit : > > On Fri, 23 Sep 2011 15:54:20 +0200, Pierre de Buyl wrote: >> Dear HDF5 users, >> >> I am currently not able to build HDF5. I have the intel compilers >> (full suite: C/C++ and Fortran) on a Core 2 Duo MacBook Pro with Snow >> Leopard. >> I upgraded recently the OS (10.6.8) and the compilers (11.1.080). >> >> I have read the topics >> http://www.mail-archive.com/[email protected]/msg00029.html >> http://www.mail-archive.com/[email protected]/msg01629.html >> >> and still have the duplicate line in H5fortran_types.f90 >> INTEGER, PARAMETER :: Fortran_REAL_4 = 4 >> >> that causes an error. >> If I try do delete the incriminated line, it builds but tests fail). >> >> I have tried 'ifort -fpp -DDEC$=DEC_ -DMS$=MS_' with no different result. >> >> My config line is: >> CC=icc CFLAGS=-m64 CXX=icpc CXXFLAGS=-m64 FC='ifort -fpp -DDEC$=DEC_ >> -DMS$=MS_' FFLAGS=-m64 FCFLAGS=-m64 ./configure >> --prefix=/opt/hdf5-1.8.7-intel-11.1 --enable-fortran --enable-shared >> --with-zlib=/opt/hdf5-1.8.7-intel-11.1 >> --with-szlib=/opt/hdf5-1.8.7-intel-11.1 >> >> The part of "make" that fails is >> >> Making all in fortran >> Making all in src >> FC H5test_kind_SIZEOF.o >> FCLD H5test_kind >> ./H5test_kind > H5fortran_detect.f90 >> FC H5fortran_detect.o >> FCLD H5fortran_detect >> ./H5fortran_detect > H5fort_type_defines.h >> CC H5match_types.o >> CCLD H5match_types >> ./H5match_types >> make all-am >> FC H5fortran_types.lo >> H5fortran_types.f90(33): error #6418: This name has already been >> assigned a data type. [FORTRAN_REAL_4] >> INTEGER, PARAMETER :: Fortran_REAL_4 = 4 >> ------------------------------^ >> compilation aborted for H5fortran_types.f90 (code 1) >> make[3]: *** [H5fortran_types.lo] Error 1 >> make[2]: *** [all] Error 2 >> make[1]: *** [all-recursive] Error 1 >> make: *** [all-recursive] Error 1 >> >> >> Thanks for any help, >> >> Pierre >> >> >> ----------------------------------------------------------- >> Pierre de Buyl >> Chemical Physics Theory Group - University of Toronto >> Physique des Systèmes Complexes et Mécanique Statistique - Université >> Libre de Bruxelles >> web: http://homepages.ulb.ac.be/~pdebuyl/ >> ----------------------------------------------------------- >> >> >> >> >> _______________________________________________ >> Hdf-forum is for HDF software users discussion. >> [email protected] >> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org > > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
