hdf5

hdf5

Notes de compilation pour macosx/yosemite

tara:hdf5-1.8.14 me$ ./configure --prefix=/usr/local/hdf5 --enable-fortran
...
	    SUMMARY OF THE HDF5 CONFIGURATION
	    =================================

General Information:
-------------------
		   HDF5 Version: 1.8.14
		  Configured on: Sat Jan 17 08:52:18 CET 2015
		  Configured by: me@tara.local
		 Configure mode: production
		    Host system: i386-apple-darwin14.0.0
	      Uname information: Darwin tara.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
		       Byte sex: little-endian
		      Libraries: static, shared
	     Installation point: /usr/local/hdf5

Compiling Options:
------------------
               Compilation Mode: production
                     C Compiler: /usr/bin/clang ( Apple LLVM version 6.0 )
                         CFLAGS:
                      H5_CFLAGS:  -O3
                      AM_CFLAGS:
                       CPPFLAGS:
                    H5_CPPFLAGS:   -DNDEBUG -UH5_DEBUG_API
                    AM_CPPFLAGS:
               Shared C Library: yes
               Static C Library: yes
  Statically Linked Executables: no
                        LDFLAGS:
                     H5_LDFLAGS:
                     AM_LDFLAGS:  -L/usr/local/hdf5/lib
 	 	Extra libraries:  -lz -ldl -lm
 		       Archiver: ar
 		 	 Ranlib: ranlib
 	      Debugged Packages:
		    API Tracing: no

Languages:
----------
                        Fortran: yes
               Fortran Compiler: /usr/local/bin/gfortran ( GNU Fortran (GCC) 5.0.0 20141005 )
          Fortran 2003 Compiler: no
                  Fortran Flags:
               H5 Fortran Flags:  -pedantic -Wall -Wconversion -Wunderflow -Wimplicit-interface -W -O2 -s
               AM Fortran Flags:
         Shared Fortran Library: no
         Static Fortran Library: yes

                            C++: no

Features:
---------
                  Parallel HDF5: no
             High Level library: yes
                   Threadsafety: no
            Default API Mapping: v18
 With Deprecated Public Symbols: yes
         I/O filters (external): deflate(zlib)
         I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
                            MPE: no
                     Direct VFD: no
                        dmalloc: no
Clear file buffers before write: yes
           Using memory checker: no
         Function Stack Tracing: no
      Strict File Format Checks: no
   Optimization Instrumentation: no
       Large File Support (LFS): yes

pour linux/sunstudio

./configure --prefix=/local/apps/hdf5/v1.8.14/Linux_3.10/sunstudio12.4 --enable-fortran \
--enable-production FC=f95 \
LDFLAGS="-L/opt/SolarisStudio12.4-linux-x86-bin/solarisstudio12.4/lib/compilers/rtlibs/usr/lib/amd64/ -L/opt/SolarisStudio12.4-linux-x86-bin/solarisstudio12.4/lib/compilers/amd64"
config.status: executing libtool commands
            SUMMARY OF THE HDF5 CONFIGURATION
            =================================

General Information:
-------------------
                   HDF5 Version: 1.8.14
                  Configured on: Mon Feb 23 18:30:10 CET 2015
                  Configured by: devel1@judith.cmi.univ-mrs.fr
                 Configure mode: production
                    Host system: x86_64-unknown-linux-gnu
              Uname information: Linux judith.cmi.univ-mrs.fr 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Sep 22 19:06:58 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
                       Byte sex: little-endian
                      Libraries: static, shared
             Installation point: /local/apps/hdf5/v1.8.14/Linux_3.10/sunstudio12.4

Compiling Options:
------------------
               Compilation Mode: production
                     C Compiler: /bin/gcc ( gcc (GCC) 4.8.2 20140120 )
                         CFLAGS:
                      H5_CFLAGS: -std=c99 -pedantic -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat=2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -Wstrict-overflow -Wlogical-op -Wlarger-than=2048 -Wvla -Wsync-nand -Wframe-larger-than=16384 -Wpacked-bitfield-compat -Wstrict-overflow=5 -Wjump-misses-init -Wunsuffixed-float-constants -Wdouble-promotion -Wsuggest-attribute=const -Wtrampolines -Wstack-usage=8192 -Wvector-operation-performance -Wsuggest-attribute=pure -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -O3 -fomit-frame-pointer -finline-functions
                      AM_CFLAGS:
                       CPPFLAGS:
                    H5_CPPFLAGS: -D_POSIX_C_SOURCE=199506L   -DNDEBUG -UH5_DEBUG_API
                    AM_CPPFLAGS: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_BSD_SOURCE
               Shared C Library: yes
               Static C Library: yes
  Statically Linked Executables: no
                        LDFLAGS: -L/opt/SolarisStudio12.4-linux-x86-bin/solarisstudio12.4/lib/compilers/rtlibs/usr/lib/amd64/ -L/opt/SolarisStudio12.4-linux-x86-bin/solarisstudio12.4/lib/compilers/amd64
                     H5_LDFLAGS:
                     AM_LDFLAGS:  -L/local/apps/hdf5/v1.8.14/Linux_3.10/sunstudio12.4/lib
                Extra libraries:  -lz -ldl -lm
                       Archiver: ar
                         Ranlib: ranlib
              Debugged Packages:
                    API Tracing: no

Languages:
----------
                        Fortran: yes
               Fortran Compiler: /opt/SolarisStudio12.4-linux-x86-bin/solarisstudio12.4/bin/f95
          Fortran 2003 Compiler: no
                  Fortran Flags:
               H5 Fortran Flags:
               AM Fortran Flags:
         Shared Fortran Library: yes
         Static Fortran Library: yes

                            C++: no

Features:
---------
                  Parallel HDF5: no
             High Level library: yes
                   Threadsafety: no
            Default API Mapping: v18
 With Deprecated Public Symbols: yes
         I/O filters (external): deflate(zlib)
         I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
                            MPE: no
                     Direct VFD: no
                        dmalloc: no
Clear file buffers before write: yes
           Using memory checker: no
         Function Stack Tracing: no
      Strict File Format Checks: no
   Optimization Instrumentation: no
       Large File Support (LFS): yes

Tests

avec un des exemples fournis sur le site: dsetexample

tara:hdf5 me$ make -f Makefile.hdf5
gfortran -o dsetexample dsetexample.f90 -I/usr/local/hdf5/include /usr/local/hdf5/lib/libhdf5_fortran.a /usr/local/hdf5/lib/libhdf5.a   /Users/me/amidexpharmato/szip-2.1/szip/lib/libsz.a -lm
Undefined symbols for architecture x86_64:
  "_compress2", referenced from:
      _H5Z_filter_deflate in libhdf5.a(H5Zdeflate.o)
  "_inflate", referenced from:
      _H5Z_filter_deflate in libhdf5.a(H5Zdeflate.o)
  "_inflateEnd", referenced from:
      _H5Z_filter_deflate in libhdf5.a(H5Zdeflate.o)
  "_inflateInit_", referenced from:
      _H5Z_filter_deflate in libhdf5.a(H5Zdeflate.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [dsetexample] Error 1
  • hdf5.txt
  • Dernière modification : 2017/08/25 09:56
  • de 127.0.0.1