Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] HDF5 C++ 1.14.0 includes H5FDsubfiling build path #2621

Closed
Mvwivs opened this issue Mar 21, 2023 · 1 comment · Fixed by #2667
Closed

[BUG] HDF5 C++ 1.14.0 includes H5FDsubfiling build path #2621

Mvwivs opened this issue Mar 21, 2023 · 1 comment · Fixed by #2667
Assignees
Labels
Component - Build CMake, Autotools Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub

Comments

@Mvwivs
Copy link

Mvwivs commented Mar 21, 2023

Describe the bug
Using HDF5 C++ library with cmake results in error:

CMake Error in CMakeLists.txt:
  Imported target "hdf5::hdf5_cpp" includes non-existent path

    "/tmp/hdf5-hdf5-1_14_0/src/H5FDsubfiling"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

The path is from HDF5 build directory which is deleted after install

Expected behavior
No build path should be included anywhere, because H5FDsubfiling headers are already installed in the system.

Platform (please complete the following information)

  • HDF5 version 1.14.0
  • OS and version: Linux Debian 11
  • Compiler and version: GCC 12.2.0
  • Build system (e.g. CMake, Autotools) and version: Autotools
  • Any configure options you specified
    ./configure --prefix=/usr/local --enable-cxx

Additional context
Path to H5FDsubfiling is included in 3 places:

/usr/local/bin/h5c++:H5BLD_CPPFLAGS=" -I/tmp/hdf5-hdf5-1_14_0/src/H5FDsubfiling "
/usr/local/bin/h5cc:H5BLD_CPPFLAGS=" -I/tmp/hdf5-hdf5-1_14_0/src/H5FDsubfiling "
/usr/local/lib/libhdf5.settings:                    AM_CPPFLAGS:  -I/tmp/hdf5-hdf5-1_14_0/src/H5FDsubfiling

Removing flags from h5c++ and h5cc fixes the problem.

@jhendersonHDF jhendersonHDF added Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - Build CMake, Autotools Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub labels Mar 21, 2023
@jhendersonHDF jhendersonHDF self-assigned this Mar 21, 2023
@jhendersonHDF
Copy link
Collaborator

This is likely the same as in #2422

@jhendersonHDF jhendersonHDF linked a pull request Apr 5, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Build CMake, Autotools Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants