conan-center-index
conan-center-index copied to clipboard
[package] zlib/1.2.12: failed with clang
Package and Environment Details
- Package Name/Version: zlib/1.2.12
- Operating System+version: *Linux Ubuntu 18.04
- Compiler+version: clang 9
- Docker image: None
- Conan version: conan 1.50.0
- Python version: Python 3.6.13
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
conan create . 1.2.12@_/_--profile:build=default --profile:host=../../profiles/android-armv8-clang9-api29_release.txt
cross building it with clang, the android-armv8-clang9-api29_release.txt:
include(default)
[settings]
arch=armv8
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=9
os=Android
os.api_level=29
[build_requires]
android-ndk/r21d
[options]
[env]
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']
@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.
@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:
-- Conan: Using autogenerated FindZLIB.cmake
-- Could NOT find ZLIB: Found unsuitable version "None", but required is at least "1.2.3" (found None)
-- Library z found /home/developer/.conan/data/zlib/1.2.12/_/_/package/4abea69857a62f95f76f0917ecf45464337054db/lib/libz.a
-- Found: /home/developer/.conan/data/zlib/1.2.12/_/_/package/4abea69857a62f95f76f0917ecf45464337054db/lib/libz.a
I guess it's the CMakeToolchain
broke it?
@hsuanguo could you please improve your log? Share all the output if possible.
It's working normally for me:
$ conan --version
Conan version 1.51.1
$ conan install -r conancenter zlib/1.2.12@ -pr:b=default -pr:h=armv8 -c tools.android:ndk_path=/home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/ --build=zlib
Configuration (profile_host):
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=8
os=Android
os.api_level=29
os_build=Linux
[options]
[build_requires]
*: android-ndk/r21d
[env]
[conf]
tools.android:ndk_path=/home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/
Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=8
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
zlib/1.2.12: Forced build from source
Installing package: zlib/1.2.12
Requirements
zlib/1.2.12 from local cache - Cache
Packages
zlib/1.2.12:92804b69da12e4ee8424dd54612aac86973e18eb - Build
Build requirements
android-ndk/r21d from 'conancenter' - Cache
Build requirements packages
android-ndk/r21d:4db1be536558d833e52e862fd84d64d75c2b3656 - Cache
Cross-build from 'Linux:x86_64' to 'Android:armv8'
Installing (downloading, building) binaries...
android-ndk/r21d: Already installed!
android-ndk/r21d: Creating ANDROID_NDK_ROOT environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656
android-ndk/r21d: Creating ANDROID_NDK_HOME environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656
android-ndk/r21d: Creating CONAN_CMAKE_SYSTEM_PROCESSOR environment variable: aarch64
android-ndk/r21d: Creating NDK_ROOT environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64
android-ndk/r21d: Creating CHOST environment variable: aarch64-linux-android
android-ndk/r21d: Creating CONAN_CMAKE_FIND_ROOT_PATH environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating SYSROOT environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating self.cpp_info.sysroot: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating ANDROID_NATIVE_API_LEVEL environment variable: 29
android-ndk/r21d: Creating CONAN_CMAKE_PROGRAM environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/cmake-wrapper
android-ndk/r21d: Creating CONAN_CMAKE_TOOLCHAIN_FILE environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/build/cmake/android.toolchain.cmake
android-ndk/r21d: Creating CC environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang
android-ndk/r21d: Creating CXX environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++
android-ndk/r21d: Creating AR environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar
android-ndk/r21d: Creating AS environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-as
android-ndk/r21d: Creating RANLIB environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ranlib
android-ndk/r21d: Creating STRIP environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip
android-ndk/r21d: Creating ADDR2LINE environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-addr2line
android-ndk/r21d: Creating NM environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm
android-ndk/r21d: Creating OBJCOPY environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-objcopy
android-ndk/r21d: Creating OBJDUMP environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-objdump
android-ndk/r21d: Creating READELF environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-readelf
android-ndk/r21d: Creating ELFEDIT environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-elfedit
android-ndk/r21d: Creating LD environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld
zlib/1.2.12: Applying build-requirement: android-ndk/r21d
zlib/1.2.12: Copying sources to build folder
zlib/1.2.12: Building your package in /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb
zlib/1.2.12: Generator txt created conanbuildinfo.txt
zlib/1.2.12: Calling generate()
zlib/1.2.12: Aggregating env generators
zlib/1.2.12: Calling build()
zlib/1.2.12: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/src"
-- Using Conan toolchain: /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - done
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Renaming
-- /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/src/zconf.h
-- to 'zconf.h.included' because this file is included with zlib
-- but CMake generates it automatically in the build directory.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release
zlib/1.2.12: CMake command: cmake --build "/home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release" '--' '-j5'
Scanning dependencies of target zlib
[ 6%] Building C object CMakeFiles/zlib.dir/adler32.c.o
[ 12%] Building C object CMakeFiles/zlib.dir/crc32.c.o
[ 18%] Building C object CMakeFiles/zlib.dir/deflate.c.o
[ 25%] Building C object CMakeFiles/zlib.dir/compress.c.o
[ 31%] Building C object CMakeFiles/zlib.dir/gzclose.c.o
[ 37%] Building C object CMakeFiles/zlib.dir/gzlib.c.o
[ 43%] Building C object CMakeFiles/zlib.dir/gzread.c.o
[ 50%] Building C object CMakeFiles/zlib.dir/gzwrite.c.o
[ 56%] Building C object CMakeFiles/zlib.dir/inflate.c.o
[ 62%] Building C object CMakeFiles/zlib.dir/infback.c.o
[ 68%] Building C object CMakeFiles/zlib.dir/inftrees.c.o
[ 75%] Building C object CMakeFiles/zlib.dir/inffast.c.o
[ 81%] Building C object CMakeFiles/zlib.dir/trees.c.o
[ 87%] Building C object CMakeFiles/zlib.dir/uncompr.c.o
[ 93%] Building C object CMakeFiles/zlib.dir/zutil.c.o
[100%] Linking C static library libz.a
[100%] Built target zlib
zlib/1.2.12: Package '92804b69da12e4ee8424dd54612aac86973e18eb' built
zlib/1.2.12: Build folder /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release
zlib/1.2.12: Generated conaninfo.txt
zlib/1.2.12: Generated conanbuildinfo.txt
zlib/1.2.12: Generating the package
zlib/1.2.12: Package folder /home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb
zlib/1.2.12: Calling package()
zlib/1.2.12: CMake command: cmake --install "/home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release" --prefix "/home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb"
-- Install configuration: "Release"
-- Installing: /home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/lib/libz.a
-- Installing: /home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/include/zconf.h
-- Installing: /home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/include/zlib.h
zlib/1.2.12 package(): Packaged 1 file: LICENSE
zlib/1.2.12 package(): Packaged 1 '.a' file: libz.a
zlib/1.2.12 package(): Packaged 2 '.h' files: zconf.h, zlib.h
zlib/1.2.12: Package '92804b69da12e4ee8424dd54612aac86973e18eb' created
zlib/1.2.12: Created package revision 984987dfcbc135164c1c2df444bf507d
Aggregating env generators
conan@b4b1abd4c4ec:/tmp$ conan remove -f zlib
conan@b4b1abd4c4ec:/tmp$ conan install -r conancenter zlib/1.2.12@ -pr:b=default -pr:h=armv8 -c tools.android:ndk_path=/home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/ --build=zlib
Configuration (profile_host):
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=8
os=Android
os.api_level=29
os_build=Linux
[options]
[build_requires]
*: android-ndk/r21d
[env]
[conf]
tools.android:ndk_path=/home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/
Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=8
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
zlib/1.2.12: Retrieving from server 'conancenter'
zlib/1.2.12: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.27k]
Downloading conanfile.py completed [4.06k]
Downloading conan_export.tgz completed [0.29k]
Decompressing conan_export.tgz completed [0.00k]
zlib/1.2.12: Downloaded recipe revision 0
zlib/1.2.12: Forced build from source
Installing package: zlib/1.2.12
Requirements
zlib/1.2.12 from 'conancenter' - Downloaded
Packages
zlib/1.2.12:92804b69da12e4ee8424dd54612aac86973e18eb - Build
Build requirements
android-ndk/r21d from 'conancenter' - Cache
Build requirements packages
android-ndk/r21d:4db1be536558d833e52e862fd84d64d75c2b3656 - Cache
Cross-build from 'Linux:x86_64' to 'Android:armv8'
Installing (downloading, building) binaries...
android-ndk/r21d: Already installed!
android-ndk/r21d: Creating ANDROID_NDK_ROOT environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656
android-ndk/r21d: Creating ANDROID_NDK_HOME environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656
android-ndk/r21d: Creating CONAN_CMAKE_SYSTEM_PROCESSOR environment variable: aarch64
android-ndk/r21d: Creating NDK_ROOT environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64
android-ndk/r21d: Creating CHOST environment variable: aarch64-linux-android
android-ndk/r21d: Creating CONAN_CMAKE_FIND_ROOT_PATH environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating SYSROOT environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating self.cpp_info.sysroot: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating ANDROID_NATIVE_API_LEVEL environment variable: 29
android-ndk/r21d: Creating CONAN_CMAKE_PROGRAM environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/cmake-wrapper
android-ndk/r21d: Creating CONAN_CMAKE_TOOLCHAIN_FILE environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/build/cmake/android.toolchain.cmake
android-ndk/r21d: Creating CC environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang
android-ndk/r21d: Creating CXX environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++
android-ndk/r21d: Creating AR environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar
android-ndk/r21d: Creating AS environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-as
android-ndk/r21d: Creating RANLIB environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ranlib
android-ndk/r21d: Creating STRIP environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip
android-ndk/r21d: Creating ADDR2LINE environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-addr2line
android-ndk/r21d: Creating NM environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm
android-ndk/r21d: Creating OBJCOPY environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-objcopy
android-ndk/r21d: Creating OBJDUMP environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-objdump
android-ndk/r21d: Creating READELF environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-readelf
android-ndk/r21d: Creating ELFEDIT environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-elfedit
android-ndk/r21d: Creating LD environment variable: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld
zlib/1.2.12: Applying build-requirement: android-ndk/r21d
Downloading conan_sources.tgz completed [1.94k]
Decompressing conan_sources.tgz completed [0.00k]
zlib/1.2.12: Configuring sources in /home/conan/.conan/data/zlib/1.2.12/_/_/source/src
Downloading zlib-1.2.12.tar.gz completed [1455.15k] zlib/1.2.12: 1.2.12:
zlib/1.2.12:
zlib/1.2.12: Copying sources to build folder
zlib/1.2.12: Building your package in /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb
zlib/1.2.12: Generator txt created conanbuildinfo.txt
zlib/1.2.12: Calling generate()
zlib/1.2.12: Aggregating env generators
zlib/1.2.12: Calling build()
zlib/1.2.12: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/src"
-- Using Conan toolchain: /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/conan/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - done
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Renaming
-- /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/src/zconf.h
-- to 'zconf.h.included' because this file is included with zlib
-- but CMake generates it automatically in the build directory.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release
zlib/1.2.12: CMake command: cmake --build "/home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release" '--' '-j5'
Scanning dependencies of target zlib
[ 6%] Building C object CMakeFiles/zlib.dir/adler32.c.o
[ 12%] Building C object CMakeFiles/zlib.dir/crc32.c.o
[ 25%] Building C object CMakeFiles/zlib.dir/deflate.c.o
[ 25%] Building C object CMakeFiles/zlib.dir/compress.c.o
[ 31%] Building C object CMakeFiles/zlib.dir/gzclose.c.o
[ 37%] Building C object CMakeFiles/zlib.dir/gzlib.c.o
[ 43%] Building C object CMakeFiles/zlib.dir/gzread.c.o
[ 50%] Building C object CMakeFiles/zlib.dir/gzwrite.c.o
[ 56%] Building C object CMakeFiles/zlib.dir/inflate.c.o
[ 62%] Building C object CMakeFiles/zlib.dir/infback.c.o
[ 68%] Building C object CMakeFiles/zlib.dir/inftrees.c.o
[ 75%] Building C object CMakeFiles/zlib.dir/inffast.c.o
[ 81%] Building C object CMakeFiles/zlib.dir/trees.c.o
[ 87%] Building C object CMakeFiles/zlib.dir/uncompr.c.o
[ 93%] Building C object CMakeFiles/zlib.dir/zutil.c.o
[100%] Linking C static library libz.a
[100%] Built target zlib
zlib/1.2.12: Package '92804b69da12e4ee8424dd54612aac86973e18eb' built
zlib/1.2.12: Build folder /home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release
zlib/1.2.12: Generated conaninfo.txt
zlib/1.2.12: Generated conanbuildinfo.txt
zlib/1.2.12: Generating the package
zlib/1.2.12: Package folder /home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb
zlib/1.2.12: Calling package()
zlib/1.2.12: CMake command: cmake --install "/home/conan/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release" --prefix "/home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb"
-- Install configuration: "Release"
-- Installing: /home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/lib/libz.a
-- Installing: /home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/include/zconf.h
-- Installing: /home/conan/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/include/zlib.h
zlib/1.2.12 package(): Packaged 1 file: LICENSE
zlib/1.2.12 package(): Packaged 1 '.a' file: libz.a
zlib/1.2.12 package(): Packaged 2 '.h' files: zconf.h, zlib.h
zlib/1.2.12: Package '92804b69da12e4ee8424dd54612aac86973e18eb' created
zlib/1.2.12: Created package revision f515b7bee51798c7176cf5c72fb09466
Aggregating env generators
- Try removing your cached package and build it again
- Verify if you are running the latest Conan version and there is no virtualenv running another version
- Make the configuration tools.android:ndk_path is properly configured (There is a PR make it automatic: https://github.com/conan-io/conan-center-index/pull/12076)
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
conan create . 1.2.12@_/_ --profile:build=default --profile:host=../../profiles/android-armv8-clang9-api29_release.txt -c tools.android:ndk_path=/home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/
Exporting package recipe
zlib/1.2.12 exports: File 'conandata.yml' found. Exporting it...
zlib/1.2.12 exports: Copied 1 '.yml' file: conandata.yml
zlib/1.2.12: Calling export_sources()
zlib/1.2.12: Copied 1 '.patch' file: 0001-fix-cmake.patch
zlib/1.2.12: Copied 1 '.patch' file: 0002-gzguts-xcode12-compile-fix.patch
zlib/1.2.12: The stored package has not changed
zlib/1.2.12: Using the exported files summary hash as the recipe revision: b76db676bd992afa93dd18a675323942
zlib/1.2.12: Exported revision: b76db676bd992afa93dd18a675323942
Configuration (profile_host):
[settings]
arch=armv8
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=8
os=Android
os.api_level=29
os_build=Linux
[options]
[build_requires]
*: android-ndk/r21d
[env]
[conf]
tools.android:ndk_path=/home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/
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]
zlib/1.2.12: Forced build from source
zlib/1.2.12 (test package): Installing package
Requirements
zlib/1.2.12 from 'conan-center' - Cache
Packages
zlib/1.2.12:92804b69da12e4ee8424dd54612aac86973e18eb - Build
Build requirements
android-ndk/r21d from 'conan-center' - Cache
Build requirements packages
android-ndk/r21d:4db1be536558d833e52e862fd84d64d75c2b3656 - Cache
Cross-build from 'Linux:x86_64' to 'Android:armv8'
Installing (downloading, building) binaries...
android-ndk/r21d: Already installed!
android-ndk/r21d: Creating ANDROID_NDK_ROOT environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656
android-ndk/r21d: Creating ANDROID_NDK_HOME environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656
android-ndk/r21d: Creating CONAN_CMAKE_SYSTEM_PROCESSOR environment variable: aarch64
android-ndk/r21d: Creating NDK_ROOT environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64
android-ndk/r21d: Creating CHOST environment variable: aarch64-linux-android
android-ndk/r21d: Creating CONAN_CMAKE_FIND_ROOT_PATH environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating SYSROOT environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating self.cpp_info.sysroot: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating ANDROID_NATIVE_API_LEVEL environment variable: 29
android-ndk/r21d: Creating CONAN_CMAKE_PROGRAM environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/cmake-wrapper
android-ndk/r21d: Creating CONAN_CMAKE_TOOLCHAIN_FILE environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/build/cmake/android.toolchain.cmake
android-ndk/r21d: Creating CC environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang
android-ndk/r21d: Creating CXX environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++
android-ndk/r21d: Creating AR environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar
android-ndk/r21d: Creating AS environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-as
android-ndk/r21d: Creating RANLIB environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ranlib
android-ndk/r21d: Creating STRIP environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip
android-ndk/r21d: Creating ADDR2LINE environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-addr2line
android-ndk/r21d: Creating NM environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm
android-ndk/r21d: Creating OBJCOPY environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-objcopy
android-ndk/r21d: Creating OBJDUMP environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-objdump
android-ndk/r21d: Creating READELF environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-readelf
android-ndk/r21d: Creating ELFEDIT environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-elfedit
android-ndk/r21d: Creating LD environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld
android-ndk/r21d: Creating ANDROID_NDK_ROOT environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656
android-ndk/r21d: Creating ANDROID_NDK_HOME environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656
android-ndk/r21d: Creating CONAN_CMAKE_SYSTEM_PROCESSOR environment variable: aarch64
android-ndk/r21d: Creating NDK_ROOT environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64
android-ndk/r21d: Creating CHOST environment variable: aarch64-linux-android
android-ndk/r21d: Creating CONAN_CMAKE_FIND_ROOT_PATH environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating SYSROOT environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating self.cpp_info.sysroot: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/sysroot
android-ndk/r21d: Creating ANDROID_NATIVE_API_LEVEL environment variable: 29
android-ndk/r21d: Creating CONAN_CMAKE_PROGRAM environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/cmake-wrapper
android-ndk/r21d: Creating CONAN_CMAKE_TOOLCHAIN_FILE environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/build/cmake/android.toolchain.cmake
android-ndk/r21d: Creating CC environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang
android-ndk/r21d: Creating CXX environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++
android-ndk/r21d: Creating AR environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar
android-ndk/r21d: Creating AS environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-as
android-ndk/r21d: Creating RANLIB environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ranlib
android-ndk/r21d: Creating STRIP environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip
android-ndk/r21d: Creating ADDR2LINE environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-addr2line
android-ndk/r21d: Creating NM environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm
android-ndk/r21d: Creating OBJCOPY environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-objcopy
android-ndk/r21d: Creating OBJDUMP environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-objdump
android-ndk/r21d: Creating READELF environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-readelf
android-ndk/r21d: Creating ELFEDIT environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-elfedit
android-ndk/r21d: Creating LD environment variable: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld
zlib/1.2.12: Applying build-requirement: android-ndk/r21d
zlib/1.2.12: Copying sources to build folder
zlib/1.2.12: Building your package in /home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb
zlib/1.2.12: Generator txt created conanbuildinfo.txt
zlib/1.2.12: Calling generate()
zlib/1.2.12: Aggregating env generators
zlib/1.2.12: Calling build()
zlib/1.2.12: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/xuang/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/src"
-- Using Conan toolchain: /home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - done
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Renaming
-- /home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/src/zconf.h
-- to 'zconf.h.included' because this file is included with zlib
-- but CMake generates it automatically in the build directory.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release
zlib/1.2.12: CMake command: cmake --build "/home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release" '--' '-j36'
[ 6%] Building C object CMakeFiles/zlib.dir/deflate.c.o
[ 18%] Building C object CMakeFiles/zlib.dir/adler32.c.o
[ 18%] Building C object CMakeFiles/zlib.dir/gzclose.c.o
[ 25%] Building C object CMakeFiles/zlib.dir/gzlib.c.o
[ 31%] Building C object CMakeFiles/zlib.dir/crc32.c.o
[ 43%] Building C object CMakeFiles/zlib.dir/gzread.c.o
[ 43%] Building C object CMakeFiles/zlib.dir/compress.c.o
[ 50%] Building C object CMakeFiles/zlib.dir/gzwrite.c.o
[ 56%] Building C object CMakeFiles/zlib.dir/inflate.c.o
[ 62%] Building C object CMakeFiles/zlib.dir/infback.c.o
[ 68%] Building C object CMakeFiles/zlib.dir/inftrees.c.o
[ 75%] Building C object CMakeFiles/zlib.dir/trees.c.o
[ 81%] Building C object CMakeFiles/zlib.dir/inffast.c.o
[ 87%] Building C object CMakeFiles/zlib.dir/uncompr.c.o
[ 93%] Building C object CMakeFiles/zlib.dir/zutil.c.o
[100%] Linking C static library libz.a
[100%] Built target zlib
zlib/1.2.12: Package '92804b69da12e4ee8424dd54612aac86973e18eb' built
zlib/1.2.12: Build folder /home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release
zlib/1.2.12: Generated conaninfo.txt
zlib/1.2.12: Generated conanbuildinfo.txt
zlib/1.2.12: Generating the package
zlib/1.2.12: Package folder /home/xuang/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb
zlib/1.2.12: Calling package()
zlib/1.2.12: CMake command: cmake --install "/home/xuang/.conan/data/zlib/1.2.12/_/_/build/92804b69da12e4ee8424dd54612aac86973e18eb/build/Release" --prefix "/home/xuang/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb"
-- Install configuration: "Release"
-- Installing: /home/xuang/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/lib/libz.a
-- Installing: /home/xuang/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/include/zconf.h
-- Installing: /home/xuang/.conan/data/zlib/1.2.12/_/_/package/92804b69da12e4ee8424dd54612aac86973e18eb/include/zlib.h
zlib/1.2.12 package(): Packaged 1 '.a' file: libz.a
zlib/1.2.12 package(): Packaged 2 '.h' files: zconf.h, zlib.h
zlib/1.2.12 package(): Packaged 1 file: LICENSE
zlib/1.2.12: Package '92804b69da12e4ee8424dd54612aac86973e18eb' created
zlib/1.2.12: Created package revision 8403194d1cc3abd5b3cf285af22de6d2
zlib/1.2.12 (test package): Applying build-requirement: android-ndk/r21d
zlib/1.2.12 (test package): Generator 'CMakeDeps' calling 'generate()'
zlib/1.2.12 (test package): Generator 'CMakeToolchain' calling 'generate()'
zlib/1.2.12 (test package): Generator txt created conanbuildinfo.txt
zlib/1.2.12 (test package): Generator 'VirtualRunEnv' calling 'generate()'
zlib/1.2.12 (test package): Aggregating env generators
zlib/1.2.12 (test package): Generated conaninfo.txt
zlib/1.2.12 (test package): Generated graphinfo
Using lockfile: '/home/xuang/Workspace/anv-conan-recipes/zlib/all/test_package/conan.lock'
Using cached profile from lockfile
zlib/1.2.12 (test package): Calling build()
zlib/1.2.12 (test package): CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/xuang/Workspace/anv-conan-recipes/zlib/all/test_package/build/generators/conan_toolchain.cmake" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/xuang/Workspace/anv-conan-recipes/zlib/all/test_package/."
-- Using Conan toolchain: /home/xuang/Workspace/anv-conan-recipes/zlib/all/test_package/build/generators/conan_toolchain.cmake
CMake Error at /home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/build/cmake/android.toolchain.cmake:377 (message):
Invalid Android STL: libc++.
Call Stack (most recent call first):
build/generators/conan_toolchain.cmake:27 (include)
/usr/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:124 (include)
CMakeLists.txt:2 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
ERROR: zlib/1.2.12 (test package): Error in build() method, line 19
cmake.configure()
ConanException: Error 1 while executing cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/xuang/Workspace/anv-conan-recipes/zlib/all/test_package/build/generators/conan_toolchain.cmake" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/xuang/Workspace/anv-conan-recipes/zlib/all/test_package/."
@hsuanguo The test package is not prepared for your case, try the folder test_v1_package instead:
conan create . 1.2.12@_/_ --profile:build=default --profile:host=../../profiles/android-armv8-clang9-api29_release.txt -c tools.android:ndk_path=/home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/ -tf test_v1_package
@hsuanguo The test package is not prepared for your case, try the folder test_v1_package instead:
conan create . 1.2.12@_/_ --profile:build=default --profile:host=../../profiles/android-armv8-clang9-api29_release.txt -c tools.android:ndk_path=/home/xuang/.conan/data/android-ndk/r21d/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/ -tf test_v1_package
@uilianries many thanks, after upgrading to conan 1.51.1, most of the issues I had are gone, apart from that the tools.android:ndk_path
has to be set manually, do you know which version will the #12076 be included?
@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 layout
in cci recipes until we can bump conan min version to 1.51.1 in those recipes, since it can break so many consumers relying on legacy (and still widely used) generators like cmake, cmake_find_package etc (see https://github.com/conan-io/conan/pull/11790).
Hello,
We are currently running into the pretty much same issue when cross-compiling zlib for an Android host under a Windows build machine:
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
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 make
.
This can be seen in the generated CMakeCache.txt in the following line:
on Linux build machine: CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
on Windows build machine: CMAKE_MAKE_PROGRAM:FILEPATH=CMAKE_MAKE_PROGRAM-NOTFOUND
When using the previous revision of the recipe the command works and the line in CMakeCache.txt correctly points to make
inside the NDK.
With conan 1.50.0 also fails on Windows Visual Studio 2019 tools v142 and Linux gcc crosscompiling for arm but with different errores. Will try with the latest conan to see but then might run into the folowing issue https://github.com/conan-io/conan-center-index/issues/12159
@SirCosty Could explain better the Windows scenario? Are you trying to cross-compile from Windows to Linux-ARM?
@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.