[Trilinos-Users] Compilation with hdf5 TPL fails

Michel Kern Michel.Kern at inria.fr
Fri May 21 04:30:44 MDT 2010


This is likely due to a mismatch between the hdf5 version installed on 
your system and the one used by Trilinos.
The hdf5 API changed between version 1.6 and 1.8.
If I'm right (yes, it does happen once in a while:), Trilinos uses 1.6, 
whereas you have 1.8 installed.
A workaround is to add a CPP flag -DH5_USE_16_API, which gets you back 
the 1.6 API.

Hope this helps,
Michel

Le 21/05/2010 12:15, Martin Vymazal a écrit :
> Hello trilinos users&  developers,
>
>    I'd like to compile trilinos with hdf5 support, but the compilation
> fails with this error:
>
> In file included from
> /data/repository/trilinos/trilinos-10.2.1-Source/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:28:0:
> /data/repository/trilinos/trilinos-10.2.1-Source/packages/epetraext/src/inout/EpetraExt_HDF5.h: In member function ?void EpetraExt::HDF5::CreateGroup(const
> std::string&)?:
> /data/repository/trilinos/trilinos-10.2.1-Source/packages/epetraext/src/inout/EpetraExt_HDF5.h:333:64: error: too few arguments to function ?hid_t H5Gcreate2(hid_t, const char*, hid_t, hid_t,
> hid_t)?
> /usr/include/H5Gpublic.h:75:14: note: declared here
> /data/repository/trilinos/trilinos-10.2.1-Source/packages/epetraext/src/inout/EpetraExt_HDF5.cpp: In function ?void WriteParameterListRecursive(const Teuchos::ParameterList&,
> hid_t)?:
>
> I configure trilinos with the following script:
>
> #!/bin/bash
>
> EXTRA_ARGS=$@
>
> cd build
>
> cmake \
>     -D CMAKE_BUILD_TYPE:STRING=RELEASE \
>     -D Trilinos_ENABLE_ML:BOOL=ON \
>     -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
>     -D Trilinos_ENABLE_TESTS:BOOL=ON \
>     -D Trilinos_ENABLE_Anasazi:BOOL=ON \
>     -D Trilinos_Anasazi_ENABLE_TESTS:BOOL=ON \
>     -D Trilinos_Anasazi_ENABLE_EXAMPLES:BOOL=ON \
>     -D Trilinos_Anasazi_ENABLE_Epetra:BOOL=ON \
>     -D Trilinos_ENABLE_Zoltan:BOOL=ON \
>     -D Zoltan_ENABLE_MPI:BOOL=ON \
>     -D EpetraExt_ENABLE_Zoltan:BOOL=ON \
>     -D EpetraExt_BUILD_Zoltan:BOOL=ON \
>     -D EpetraExt_BUILD_PETSC:BOOL=ON \
>     -D EpetraExt_BUILD_UMFPACK:BOOL=ON \
>     -D EpetraExt_ENABLE_AMD:BOOL=ON \
>     -D HDF_INCLUDE_DIRS:PATH=/usr/include \
>     -D HDF_LIBRARY_DIRS:PATH=/usr/lib \
>     -D EpetraExt_ENABLE_HDF5:BOOL=ON \
>     -D ML_ENABLE_Aztec:BOOL=ON \
>     -D ML_ENABLE_MPI:BOOL=ON \
>     -D ML_ENABLE_Zoltan:BOOL=ON \
>     -D DART_TESTING_TIMEOUT:STRING=600 \
>     -D TPL_ENABLE_MPI:BOOL=ON \
>     -D CMAKE_INSTALL_PREFIX:PATH=$HOME/libs/trilinos \
>     $EXTRA_ARGS \
>     ${TRILINOS_HOME}
>
> I'm sorry if this question was answered in the past, but your system
> denies me the access to the mailing list archives (I tried different
> browsers, had password reminder sent to me too).
>
> I'll be grateful for any suggestions conerning the compilation error.
>
> Best regards,
>
>     Martin Vymazal
>
> P.S The error is the same with trilinos 10.2.0 and 10.2.1
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>    

-------------- next part --------------
begin:vcard
fn:Michel Kern
n:Kern;Michel
org:INRIA;Estime
adr:BP 105;;CRI Paris Rocquencourt;Le Chesnay;;78153;France
email;internet:Michel.Kern at inria.fr
title;quoted-printable:Charg=C3=A9 de recherche
tel;work:+33139635841
tel;fax:+33139635884
tel;cell:+33626318808
url:http://www-rocq.inria.fr//who/Michel.Kern/
version:2.1
end:vcard



More information about the Trilinos-Users mailing list