-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] zlib/1.2.12: failed with clang #12130
Comments
@hsuanguo Please, fill all details from the bug form. You skipped your Conan version, which is really important. Also, share your executed commands and full log if possible. Only this current information does not help much. |
Updated 👍 |
Also, OpenCV failed using zlib as dependencies with every cross building cases, with the following error:
I guess it's the |
@hsuanguo could you please improve your log? Share all the output if possible. |
It's working normally for me:
|
Hi, thanks for the testing, I upgraded to conan 1.51.1, the old issue is gone, and I do have to pass the ndk_path like you did now, however, it still breaks: cmake version 3.22.2
|
@hsuanguo The test package is not prepared for your case, try the folder test_v1_package instead:
|
@uilianries many thanks, after upgrading to conan 1.51.1, most of the issues I had are gone, apart from that the |
@hsuanguo For all versions listed in the current config.yml, as that PR did change anything related to supported versions: https://github.com/conan-io/conan-center-index/blob/master/recipes/android-ndk/config.yml |
Maybe we should avoid |
Hello, Some investigation showed that also running the command on a Linux build machine does not work out completely correct. The command succeeds on Linux; however, only because it finds and uses Linux' own When using the previous revision of the recipe the command works and the line in CMakeCache.txt correctly points to |
With conan 1.50.0 also fails on Windows Visual Studio 2019 tools v142 and Linux gcc crosscompiling for arm but with different errores. |
@SirCosty Could explain better the Windows scenario? Are you trying to cross-compile from Windows to Linux-ARM? |
No @uilianries On Windows I build for Windows and on Linux I build for Linux and Arm But now I make more tests to can submit a more detailed case Mainly my error is not related with this error just that was introduced by latest updates to the conan-center-index for zlib Only was trying to let the peoples know that some else might be broken too |
@SirCosty please, for Windows, open a separated issue (you can mention this issue there), because you are using a different profile and will need a separated scenario to validate. Thanks for sharing more details. |
Package and Environment Details
Conan profile
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=9
os=Android
os.api_level=29
os_build=Linux
[options]
[build_requires]
*: android-ndk/r21d
[env]
Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=7
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
Steps to reproduce
cross building it with clang, the android-armv8-clang9-api29_release.txt:
Logs
zlib/1.2.12@oosto/test: Calling generate()
ERROR: zlib/1.2.12: Error in generate() method, line 67
tc.generate()
ConanException: 'settings.compiler.libcxx' doesn't exist for 'clang'
'settings.compiler' possible configurations are ['runtime', 'version']
The text was updated successfully, but these errors were encountered: