opengisch / QField

A simplified touch optimized interface for QGIS
http://www.qfield.org
GNU General Public License v2.0
841 stars 228 forks source link

[zlib] Build error on arm64-android #4930

Closed ajithandro closed 10 months ago

ajithandro commented 10 months ago

Package: zlib:arm64-android@1.3

Host Environment

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 commented 10 months ago

vcpkg does not yet support ndk 26. It's probably best to stick to the tools that the docker build process uses https://github.com/opengisch/QField/blob/master/.docker/android_dev/Dockerfile#L52 .