Comments (4)
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.
from conan-center-index.
The HDF5 recipe runs some executable when cross-building
Looks like that may no longer be true.
According to upstream HDF v1.14.3 release notes:
- Running H5make_libsettings is no longer required for cross-compiling.
- Running H5detect is no longer required for cross-compiling.
[Edit] See also upstream issue 1203, Cross-compilation support, where derobins said on 2023-06-14:
Cross compiling should basically just work now
from conan-center-index.
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:
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_LDOUBLE_TO_LONG_SPECIAL_RUN (advanced)
H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT (advanced)
For details see /Users/luisc/.conan2/p/b/hdf5c8c52f0f185ab/b/build/Release/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_LONG_TO_LDOUBLE_SPECIAL_RUN (advanced)
H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT (advanced)
For details see /Users/luisc/.conan2/p/b/hdf5c8c52f0f185ab/b/build/Release/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_LDOUBLE_TO_LLONG_ACCURATE_RUN (advanced)
H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT (advanced)
For details see /Users/luisc/.conan2/p/b/hdf5c8c52f0f185ab/b/build/Release/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_LLONG_TO_LDOUBLE_CORRECT_RUN (advanced)
H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT (advanced)
For details see /Users/luisc/.conan2/p/b/hdf5c8c52f0f185ab/b/build/Release/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
H5_DISABLE_SOME_LDOUBLE_CONV_RUN (advanced)
H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT (advanced)
For details see /Users/luisc/.conan2/p/b/hdf5c8c52f0f185ab/b/build/Release/TryRunResults.cmake
-- Found Perl: /usr/bin/perl (found version "5.34.1")
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:
conan install --require=hdf5/1.14.3 --settings:host arch=x86_64 --settings:build arch=x86_64
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 hdf5
from conan-center-index.
on the other hand, if you have Rosetta installed, the following works for me:
conan install --require=hdf5/1.14.3 --settings:host arch=x86_64 --settings:build arch=x86_64
[...] However please note that this approach may not work with all recipes [...]
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.
from conan-center-index.
Related Issues (20)
- [package] boost / 1.71.0 : missing package ca891ed5c8e67ebb3e46639c100abdbca6d8b11e HOT 3
- [package] qt/6.7.0: Cross build to android fails
- [package] libwebsockets recipe validation seems like it could be broken
- [package] zstd/1.5.6: unknown warning option HOT 3
- [package] nlohmann_json/3.11.3: Requiring nlohmann_json in a library does not transitively issue required generators. HOT 5
- [package] boost/1.83.0 build failed with gcc==4.8 HOT 2
- [package] openssl/1.1.1s: missing applink target
- [request] modern-cpp-kafka/2023.03.07
- [package] librdkafka/2.4.0: Unable to build in Debug Mode HOT 2
- [package] mpdecimal/2.5.1: CI fail when compiling on MacOS
- [question] How long will a good PR be available on https://conan.io/center? HOT 2
- [package] libsystemd/255.2: sha256 signature failed HOT 3
- [package] qt/6.5.3: Conan fails to configure Qt on macOS Sonoma HOT 4
- openssl: cannot find perl HOT 1
- b2: recipe doesn't respect `tools.build:compiler_executables`
- [request] perl/5.38.2 HOT 2
- [package] imath/3.1.9: Recipe doesn't accept CXX_FLAGS from env HOT 3
- [package] ffmpeg/5.0: report Unknown OS 'gnueabi' while cross compile HOT 1
- [package] ffmpeg/4.4.4: Build failed
- protobuf latest to be available than protobuf/3.21.12 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conan-center-index.