-
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
[pkgconf] Test requires package in both contexts #7645
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -42,8 +43,12 @@ def configure(self): | |||
del self.settings.compiler.libcxx | |||
del self.settings.compiler.cppstd | |||
|
|||
def validate(self): | |||
if hasattr(self, "settings_build") and tools.cross_building(self): | |||
raise ConanInvalidConfiguration("Cross-building is not implemented in the recipe") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably because of some missing feature on Meson side. It looks like it is not handling cross-building properly, the log output was:
----Running------
> meson "/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/source_subfolder" "/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/build_subfolder" --backend=ninja -Dprefix="/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/package/30acef53c04f36d5f9412c84a1b3a7434a1f10fb" -Dlibdir="lib" -Dbindir="bin" -Dsbindir="bin" -Dlibexecdir="bin" -Dincludedir="include" -Ddefault_library="shared" -Dtests="False" -Dsharedstatedir="/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/package/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/bin/share" --buildtype=release
-----------------
The Meson build system
Version: 0.59.2
Source dir: /Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/source_subfolder
Build dir: /Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/build_subfolder
Build type: native build
Project name: pkgconf
Project version: 1.7.4
source_subfolder/meson.build:1:0: ERROR: Could not invoke sanity test executable: [Errno 86] Bad CPU type in executable: '/Users/jenkins/w/BuildSingleReference@2/.conan/data/pkgconf/1.7.4/_/_/build/30acef53c04f36d5f9412c84a1b3a7434a1f10fb/build_subfolder/meson-private/sanitycheckc.exe'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, meson build helper does not handle cross compilation at all. conan.tools.meson
need to be used, but it currently does not work either, it'll be fixed/improved with conan-io/conan#9710
Specify library name and version: ** pkgconf**
It works in Macos for: