Comments (5)
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.
So it looks like support may not be fully there yet [in v1.14.3]. I'll try to troubleshoot and report this unstream.
Upstream HDF5 v1.14.4-3 was released on 2024-05-22. The release notes include the line:
Further improvements to cross-compiling
from conan-center-index.
Related Issues (20)
- [package] libpq/15.4: Error building with option "with_openssl" HOT 1
- [FFMpeg: 4.4 OpenSSL: 1.1.1p OpenH264: 2.1.1 HOT 2
- Building boost with C++20 fails for gcc < 11 and clang < 14 because these don't support necessary features to build cobalt HOT 8
- [request] opencv/4.10.0
- [request] mongo-c-driver/1.27.4 HOT 1
- [bug] Dependency 'intl' not found during build of glib/2.78.3 in conan HOT 5
- [package] ffmpeg/6.1+others: pulls in libva-dev, for which there is no conan recipe, instead of libva HOT 9
- [package] opentelemetry-cpp/1.14.2: Fails to build with option "with_stl"
- [package] qt/6.7.1: running "ninja --version" failed during build of qt HOT 1
- [package] qt/6.7.1: Conan 2.4.0 breaks Qt Conan package
- [question] explanantions about "Developing Recipes Locally" HOT 1
- [bug] Version conflict between dependents of spdlog/1.12.0 and mp-units/2.1.0 HOT 3
- [package] blend2d/0.10.6 sources are broken
- [package] <SDL>/<2.30.3>: Library SDL2main not found in package HOT 2
- [package] zstd/1.5.6: cannot link as in manual HOT 2
- geographiclib geographiclib/2.3: Library 'GeographicLib' not found in package HOT 1
- [package] qt6: qmltestrunner not in package HOT 1
- [sqlpp11] starting from 0.61 the connectors are included in the repo but the dependencies are not managed in conan
- [request] mimalloc/2.1.7
- [request] gsoap/2.8.134
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.