Skip to content
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

[zlib] Build error on arm64-android #36126

Closed
ajithandro opened this issue Jan 11, 2024 · 4 comments
Closed

[zlib] Build error on arm64-android #36126

ajithandro opened this issue Jan 11, 2024 · 4 comments
Assignees
Labels
requires:repro The issue is not currently repro-able Stale

Comments

@ajithandro
Copy link

Package: zlib:[email protected]

Host Environment

  • Host: x64-linux
  • Compiler: Clang 17.0.2
  • vcpkg-tool version: 2023-12-12-1c9ec1978a6b0c2b39c9e9554a96e3e275f7556e
    vcpkg-scripts version: f1c6efe 2023-12-24 (3 weeks ago)

To Reproduce

vcpkg install
Failure logs

-- Using cached madler-zlib-v1.3.tar.gz.
-- Cleaning sources at /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/kcube/Projects/QField/build/_deps/vcpkg-src/downloads/madler-zlib-v1.3.tar.gz
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch 0002-skip-building-examples.patch
-- Applying patch 0003-build-static-or-shared-not-both.patch
-- Applying patch 0004-android-and-mingw-fixes.patch
-- Using source at /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean
-- Configuring arm64-android
-- Building arm64-android-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /home/kcube/Projects/QField/build/_deps/vcpkg-src/downloads/tools/cmake-3.27.1-linux/cmake-3.27.1-linux-x86_64/bin/cmake --build . --config Release --target install -- -v -j5
    Working Directory: /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel
    See logs for more information:
      /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/install-arm64-android-rel-out.log

Call Stack (most recent call first):
  /home/kcube/Projects/QField/build/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  /home/kcube/Projects/QField/build/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/zlib/portfile.cmake:26 (vcpkg_cmake_install)
  scripts/ports.cmake:170 (include)



/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/install-arm64-android-rel-out.log
Change Dir: '/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel'

Run Build Command(s): /home/kcube/Projects/QField/build/_deps/vcpkg-src/downloads/tools/ninja/1.10.2-linux/ninja -v -v -j5 install
[1/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/compress.c.o -MF CMakeFiles/zlib.dir/compress.c.o.d -o CMakeFiles/zlib.dir/compress.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/compress.c
[2/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/gzclose.c.o -MF CMakeFiles/zlib.dir/gzclose.c.o.d -o CMakeFiles/zlib.dir/gzclose.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/gzclose.c
[3/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/adler32.c.o -MF CMakeFiles/zlib.dir/adler32.c.o.d -o CMakeFiles/zlib.dir/adler32.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/adler32.c
[4/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/crc32.c.o -MF CMakeFiles/zlib.dir/crc32.c.o.d -o CMakeFiles/zlib.dir/crc32.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/crc32.c
[5/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/gzlib.c.o -MF CMakeFiles/zlib.dir/gzlib.c.o.d -o CMakeFiles/zlib.dir/gzlib.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/gzlib.c
[6/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/gzwrite.c.o -MF CMakeFiles/zlib.dir/gzwrite.c.o.d -o CMakeFiles/zlib.dir/gzwrite.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/gzwrite.c
[7/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/gzread.c.o -MF CMakeFiles/zlib.dir/gzread.c.o.d -o CMakeFiles/zlib.dir/gzread.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/gzread.c
[8/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/inftrees.c.o -MF CMakeFiles/zlib.dir/inftrees.c.o.d -o CMakeFiles/zlib.dir/inftrees.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/inftrees.c
[9/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/inffast.c.o -MF CMakeFiles/zlib.dir/inffast.c.o.d -o CMakeFiles/zlib.dir/inffast.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/inffast.c
[10/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/infback.c.o -MF CMakeFiles/zlib.dir/infback.c.o.d -o CMakeFiles/zlib.dir/infback.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/infback.c
[11/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/uncompr.c.o -MF CMakeFiles/zlib.dir/uncompr.c.o.d -o CMakeFiles/zlib.dir/uncompr.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/uncompr.c
[12/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/zutil.c.o -MF CMakeFiles/zlib.dir/zutil.c.o.d -o CMakeFiles/zlib.dir/zutil.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/zutil.c
[13/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/deflate.c.o -MF CMakeFiles/zlib.dir/deflate.c.o.d -o CMakeFiles/zlib.dir/deflate.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/deflate.c
[14/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/inflate.c.o -MF CMakeFiles/zlib.dir/inflate.c.o.d -o CMakeFiles/zlib.dir/inflate.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/inflate.c
[15/17] /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DZLIB_DLL -D_LARGEFILE64_SOURCE=1 -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel -I/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG    -fPIC -MD -MT CMakeFiles/zlib.dir/trees.c.o -MF CMakeFiles/zlib.dir/trees.c.o.d -o CMakeFiles/zlib.dir/trees.c.o -c /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/trees.c
[16/17] : && /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments    -Wl,--gc-sections    -Wl,--version-script,"/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/zlib.map" -shared -Wl,-soname,libz.so -o libz.so CMakeFiles/zlib.dir/adler32.c.o CMakeFiles/zlib.dir/compress.c.o CMakeFiles/zlib.dir/crc32.c.o CMakeFiles/zlib.dir/deflate.c.o CMakeFiles/zlib.dir/gzclose.c.o CMakeFiles/zlib.dir/gzlib.c.o CMakeFiles/zlib.dir/gzread.c.o CMakeFiles/zlib.dir/gzwrite.c.o CMakeFiles/zlib.dir/inflate.c.o CMakeFiles/zlib.dir/infback.c.o CMakeFiles/zlib.dir/inftrees.c.o CMakeFiles/zlib.dir/inffast.c.o CMakeFiles/zlib.dir/trees.c.o CMakeFiles/zlib.dir/uncompr.c.o CMakeFiles/zlib.dir/zutil.c.o  -latomic -lm && :
FAILED: libz.so 
: && /home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/kcube/Projects/android-ndk-r26b-linux/android-ndk-r26b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -fPIC -fstack-protector-strong  -O3 -DNDEBUG  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments    -Wl,--gc-sections    -Wl,--version-script,"/home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/src/v1.3-8825ee792f.clean/zlib.map" -shared -Wl,-soname,libz.so -o libz.so CMakeFiles/zlib.dir/adler32.c.o CMakeFiles/zlib.dir/compress.c.o CMakeFiles/zlib.dir/crc32.c.o CMakeFiles/zlib.dir/deflate.c.o CMakeFiles/zlib.dir/gzclose.c.o CMakeFiles/zlib.dir/gzlib.c.o CMakeFiles/zlib.dir/gzread.c.o CMakeFiles/zlib.dir/gzwrite.c.o CMakeFiles/zlib.dir/inflate.c.o CMakeFiles/zlib.dir/infback.c.o CMakeFiles/zlib.dir/inftrees.c.o CMakeFiles/zlib.dir/inffast.c.o CMakeFiles/zlib.dir/trees.c.o CMakeFiles/zlib.dir/uncompr.c.o CMakeFiles/zlib.dir/zutil.c.o  -latomic -lm && :
ld.lld: error: version script assignment of 'local' to symbol 'gz_intmax' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Additional context

vcpkg.json
{
  "name": "qfield",
  "version-string": "dev",
  "port-version": 1,
  "homepage": "https://github.com/opengisch/qfield",
  "description": "A simplified and touch optimized frontend for QGIS.",
  "dependencies": [
    {
      "name": "gdal",
      "default-features": false
    },
    "qgis-qt6",
    {
      "name": "qtbase",
      "default-features": false
    },
    {
      "name": "qtsensors",
      "features": [
        "qml"
      ]
    },
    "qtimageformats",
    "qtwebview",
    "qtconnectivity",
    "qtdeclarative",
    "qtlocation",
    {
      "name": "qtcharts",
      "features": [
        "qml"
      ]
    },
    {
      "name": "qtmultimedia",
      "features": [
        "qml",
        {
          "name": "ffmpeg",
          "platform": "linux | android"
        }
      ]
    },
    {
      "name": "qtserialport",
      "platform": "!ios"
    },
    {
      "name": "qca-qt6",
      "default-features": false
    },
    "nu-book-zxing-cpp",
    {
      "name": "sentry-native",
      "platform": "!android & !ios & !osx"
    },
    "spix-qt6",
    "catch2",
    {
      "name": "sentry-cocoa",
      "platform": "ios | osx"
    },
    {
      "name": "qttools",
      "default-features": false,
      "host": true
    }
  ]
}

My Doubts

I can see the log statements like

A suitable version of cmake was not found (required v3.27.1) Downloading portable cmake 3.27.1...
Downloading cmake...

But in My Linux Shows

cmake --version
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
sudo apt-get install cmake=3.27.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package cmake is a virtual package provided by:
  cmake:i386 3.22.1-1ubuntu1.22.04.1 (= 3.22.1-1ubuntu1.22.04.1)
You should explicitly select one to install.

E: Version '3.27.1' for 'cmake' was not found

It's tried to Call files from the version 3.27.1

CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /home/kcube/Projects/QField/build/_deps/vcpkg-src/downloads/tools/cmake-3.27.1-linux/cmake-3.27.1-linux-x86_64/bin/cmake --build . --config Release --target install -- -v -j5
    Working Directory: /home/kcube/Projects/QField/build/_deps/vcpkg-src/buildtrees/zlib/arm64-android-rel

Please Check the Issues Logs and My Doubts
Thanks

@m-kuhn
Copy link
Contributor

m-kuhn commented Jan 12, 2024

ndk-r26b is not yet supported by vcpkg

@dg0yt
Copy link
Contributor

dg0yt commented Jan 12, 2024

Well...
zlib uses CMake and should work with NDK r26, even if not tested in vcpkg CI.
However, dynamic linkage isn't tested for Android.
OTOH #35851 tests dynamic linkage and NDK r26 for arm64-android, and zlib doesn't fail in that test.

@FrankXie05 FrankXie05 added the requires:repro The issue is not currently repro-able label Jan 12, 2024
Copy link

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Mar 17, 2024
@FrankXie05
Copy link
Contributor

This issue hasn’t been updated for a long time; if it is still an issue, please ping me and I will reopen this issue.

@FrankXie05 FrankXie05 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able Stale
Projects
None yet
Development

No branches or pull requests

4 participants