-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[package] hdf5/1.14.3: "Recipe doesn't support cross-building" #23803
Comments
The HDF5 recipe runs some executable when cross-building, which is not using the architecture as same as from the build context: https://github.com/conan-io/conan-center-index/blob/master/recipes/hdf5/all/conanfile.py#L89 It's possible to fix it, but need further investigation. |
Looks like that may no longer be true. According to upstream HDF v1.14.3 release notes:
[Edit] See also upstream issue 1203, Cross-compilation support, where derobins said on 2023-06-14:
|
Hi @li-dl , thank you for reporting this. I've tried cross-compiling the most recent version (by relaxing the condition in the recipe), and still get errors:
So it looks like support may not be fully there yet. I'll try to troubleshoot and report this unstream. on the other hand, if you have Rosetta installed, the following works for me:
This tells Conan that we are running natively on x86_64, which "can" be true if Rosetta is installed. However please note that this approach may not work with all recipes, if build systems perform auto-detections. But I can confirm it works for building |
Yeah, that's what we've been doing, but one of our other dependencies (capnproto) is one of the recipes that doesn't work with that approach, as discussed in #23765. |
Upstream HDF5 v1.14.4-3 was released on 2024-05-22. The release notes include the line:
|
….14.4-3 * (#23803) hdf5: support cross-building if the version is greater than 1.14.4-3 * Apply suggestions from code review Co-authored-by: Luis Caro Campos <[email protected]> * Update recipes/hdf5/all/conanfile.py --------- Co-authored-by: Rubén Rincón Blanco <[email protected]> Co-authored-by: Luis Caro Campos <[email protected]>
Greetings @li-dl, Thank you for your feedback.
It appears that support for cross-compilation has been added in this pull request: #24253 for the version you mentioned and subsequent versions. I will be closing this issue since the problem you described has now been resolved. Happy coding 🐸 |
Description
Using an Apple Silicon Mac to cross-compile
hdf5
to x86_64 gives:Related to #14018.
Package and Environment Details
Conan profile
profile-build
:profile-host
:Steps to reproduce
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: