Opened 9 years ago

Last modified 9 years ago

#3945 new defect

OMC doesn't build with hdf5 1.10

Reported by: Per Östlund Owned by: Martin Sjölund
Priority: high Milestone: Future
Component: Build Environment Version: v1.10.0-dev-nightly
Keywords: Cc: Adrian Pop

Description

ModelicaExternalC is incompatible with the newest release of the hdf5 library, which I have already reported here: #2001. This also causes the build of OMC to fail, since it depends on ModelicaExternalC.

Until this is fixed upstream, are there any workarounds for this issue? I tried calling configure with --enable-hdf5=no, but it's not propagated to the ModelicaExternalC configure, and directly calling the ModelicaExternalC configure seems to mess up various paths.

Change History (1)

comment:1 by anonymous, 9 years ago

The HDF5 library 1.10 contains compatibility macros to use older API versions in applications (https://www.hdfgroup.org/HDF5/doc/RM/APICompatMacros.html).

As a workaround you can force OpenModelica to use the old API by adding the following option to your CPPFLAGS:

> export CPPFLAGS="$CPPFLAGS -DH5_USE_18_API"
> ./configure
> make

This works fine for me on archlinux with hdf5-1.10.0 installed.

Note: See TracTickets for help on using tickets.