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

[hdf5] build failure when using version 1.10.5-12 with baselines after tag 2024.11.16 #42673

Open
wilyle opened this issue Dec 12, 2024 · 2 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@wilyle
Copy link

wilyle commented Dec 12, 2024

Operating system

Ubuntu 22.04.5 LTS (WSL)

Compiler

GCC

Steps to reproduce the behavior

`vcpkg install` with the following manifest:


{
  "name": "hdf5-1-10-error",
  "homepage": "http://example.com",
  "description": "Minimal example to reproduce HDF5 build error with older versions on newer baselines",
  "dependencies": [
    {
      "name": "hdf5",
      "features": [ "zlib", "cpp" ]
    }
  ],
  "builtin-baseline": "b2cb0da531c2f1f740045bfe7c4dac59f0b2b69c",
  "overrides": [
    {
      "name": "hdf5",
      "version": "1.10.5-12"
    }
  ]
}

Failure logs

$ $VCPKG_ROOT/vcpkg install
error: the baseline does not contain an entry for port szip

Additional context

For technical reasons, we need to use hdf5 with the 1.10 API. Upgrading to the latest version is infeasible at this time. I am aware of the -DH5_USE_110_API CMake flag which is supposed to allow usage of the 1.10 API with later versions of the package, but using this in practice caused multiple test failures and should also be considered infeasible.

Investigating a bit, it appears that hdf5 version 1.10.5-12 relies on szip. However, this was removed with #38107 and VCPKG can't figure out what to do with this older version anymore. How can we use this version of hdf5 with later baselines? This is preventing baseline updates, which prevents us from ensuring packages are up-to-date and integrating new changes and will probably become a security issue before too long. Is there a way to continue using this version of hdf5 with newer baselines, or are we forced to update to later versions of hdf5?

@wilyle wilyle added the category:port-bug The issue is with a library, which is something the port should already support label Dec 12, 2024
@dg0yt
Copy link
Contributor

dg0yt commented Dec 12, 2024

You need to add an overrides entry for szip, too.

@wilyle
Copy link
Author

wilyle commented Dec 12, 2024

Thanks, this appears to have solved the issue. Looking at the build output from the previous baseline we were using I used version 2.1.1#12 of szip.

Is there a particular reason this was completely removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

3 participants