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

[szip] Build error #32845

Closed
MCSQNXA opened this issue Jul 31, 2023 · 3 comments · Fixed by #32914
Closed

[szip] Build error #32845

MCSQNXA opened this issue Jul 31, 2023 · 3 comments · Fixed by #32914
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@MCSQNXA
Copy link

MCSQNXA commented Jul 31, 2023

vcpkg install opencv4[contrib]:arm64-android

Installing 9/28 szip:arm64-android...
Building szip:arm64-android...
warning: -- Using community triplet arm64-android. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Vcpkg\triplets\community\arm64-android.cmake
-- Downloading https://support.hdfgroup.org/ftp/lib-external/szip/2.1.1/src/szip-2.1.1.tar.gz -> szip-2.1.1.tar.gz...
-- Extracting source C:/Vcpkg/downloads/szip-2.1.1.tar.gz
-- Applying patch fix-linkage-config.patch
-- Applying patch mingw-lib-names.patch
-- Using source at C:/Vcpkg/buildtrees/szip/src/szip-2.1.1-15a12784d5.clean
-- Configuring arm64-android
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
Working Directory: C:/Vcpkg/buildtrees/szip/arm64-android-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\Vcpkg\buildtrees\szip\config-arm64-android-dbg-CMakeCache.txt.log
C:\Vcpkg\buildtrees\szip\config-arm64-android-rel-CMakeCache.txt.log
C:\Vcpkg\buildtrees\szip\config-arm64-android-out.log

This is C:\Vcpkg\buildtrees\szip\config-arm64-android-out.log

[1/2] "C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir ".." "C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/Vcpkg/buildtrees/szip/src/szip-2.1.1-15a12784d5.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/Vcpkg/packages/szip_arm64-android" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DSZIP_INSTALL_DATA_DIR=share/szip/data" "-DSZIP_INSTALL_CMAKE_DIR=share/szip" "-DCMAKE_MAKE_PROGRAM=C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Vcpkg/scripts/toolchains/android.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-android" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=static" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a"
FAILED: ../CMakeCache.txt
"C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir ".." "C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/Vcpkg/buildtrees/szip/src/szip-2.1.1-15a12784d5.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/Vcpkg/packages/szip_arm64-android" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DSZIP_INSTALL_DATA_DIR=share/szip/data" "-DSZIP_INSTALL_CMAKE_DIR=share/szip" "-DCMAKE_MAKE_PROGRAM=C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Vcpkg/scripts/toolchains/android.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-android" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=static" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a"
-- The C compiler identification is Clang 12.0.9
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- VERSION: 2.1.1
-- VERSION: 2.1.1
-- Looking for ceil in m;
-- Looking for ceil in m; - found
-- Looking for WSAStartup in ws2_32;m
-- Looking for WSAStartup in ws2_32;m - not found
-- Looking for gethostbyname in wsock32;m
-- Looking for gethostbyname in wsock32;m - not found
-- Looking for gethostname in ucb;m
-- Looking for gethostname in ucb;m - not found
-- Performing Other Test STDC_HEADERS - Success
CMake Warning (dev) at C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/share/cmake-3.25/Modules/CheckIncludeFiles.cmake:121 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

CMAKE_REQUIRED_LIBRARIES is set to:

m

For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
config/cmake/ConfigureChecks.cmake:180 (CHECK_INCLUDE_FILES)
config/cmake/ConfigureChecks.cmake:189 (CHECK_INCLUDE_FILE_CONCAT)
CMakeLists.txt:133 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include files unistd.h, sys/stat.h
-- Looking for include files unistd.h, sys/stat.h - found
-- Looking for 3 include files unistd.h, ..., sys/types.h
-- Looking for 3 include files unistd.h, ..., sys/types.h - found
-- Looking for 4 include files unistd.h, ..., stddef.h
-- Looking for 4 include files unistd.h, ..., stddef.h - found
-- Looking for 5 include files unistd.h, ..., stdint.h
-- Looking for 5 include files unistd.h, ..., stdint.h - found
-- Looking for 6 include files unistd.h, ..., io.h
-- Looking for 6 include files unistd.h, ..., io.h - not found
-- Looking for 6 include files unistd.h, ..., winsock2.h
-- Looking for 6 include files unistd.h, ..., winsock2.h - not found
-- Looking for 6 include files unistd.h, ..., pthread.h
-- Looking for 6 include files unistd.h, ..., pthread.h - found
-- Looking for 7 include files unistd.h, ..., string.h
-- Looking for 7 include files unistd.h, ..., string.h - found
-- Looking for 8 include files unistd.h, ..., strings.h
-- Looking for 8 include files unistd.h, ..., strings.h - found
-- Looking for 9 include files unistd.h, ..., time.h
-- Looking for 9 include files unistd.h, ..., time.h - found
-- Looking for 10 include files unistd.h, ..., stdlib.h
-- Looking for 10 include files unistd.h, ..., stdlib.h - found
-- Looking for 11 include files unistd.h, ..., memory.h
-- Looking for 11 include files unistd.h, ..., memory.h - found
-- Looking for 12 include files unistd.h, ..., dlfcn.h
-- Looking for 12 include files unistd.h, ..., dlfcn.h - found
-- Looking for 13 include files unistd.h, ..., fcntl.h
-- Looking for 13 include files unistd.h, ..., fcntl.h - found
-- Looking for 14 include files unistd.h, ..., inttypes.h
-- Looking for 14 include files unistd.h, ..., inttypes.h - found
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
HAVE_DEFAULT_SOURCE_RUN (advanced)
HAVE_DEFAULT_SOURCE_RUN__TRYRUN_OUTPUT (advanced)
For details see C:/Vcpkg/buildtrees/szip/arm64-android-rel/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
TEST_LFS_WORKS_RUN (advanced)
TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT (advanced)
For details see C:/Vcpkg/buildtrees/szip/arm64-android-rel/TryRunResults.cmake
-- Performing TEST_LFS_WORKS... no
-- Performing Other Test HAVE_OFF64_T - Success
-- Looking for lseek64
-- Looking for lseek64 - found
-- Looking for fseeko64
-- Looking for fseeko64 - not found
-- Looking for ftello64
-- Looking for ftello64 - not found
-- Looking for ftruncate64
-- Looking for ftruncate64 - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Performing Other Test HAVE_STAT64_STRUCT - Success
-- Looking for fstat64
-- Looking for fstat64 - found
-- Looking for stat64
-- Looking for stat64 - found
-- Performing Other Test DEV_T_IS_SCALAR - Success
-- Performing Other Test HAVE_STAT_ST_BLOCKS - Success
-- Looking for alarm
-- Looking for alarm - found
-- Looking for fork
-- Looking for fork - found
-- Looking for frexpf
-- Looking for frexpf - found
-- Looking for frexpl
-- Looking for frexpl - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for getpwuid
-- Looking for getpwuid - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for lstat
-- Looking for lstat - found
-- Looking for rand_r
-- Looking for rand_r - found
-- Looking for random
-- Looking for random - found
-- Looking for setsysinfo
-- Looking for setsysinfo - not found
-- Looking for signal
-- Looking for signal - found
-- Looking for longjmp
-- Looking for longjmp - found
-- Looking for setjmp
-- Looking for setjmp - found
-- Looking for siglongjmp
-- Looking for siglongjmp - found
-- Looking for sigsetjmp
-- Looking for sigsetjmp - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sigprocmask
-- Looking for sigprocmask - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for srandom
-- Looking for srandom - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for symlink
-- Looking for symlink - found
-- Looking for system
-- Looking for system - found
-- Looking for tmpfile
-- Looking for tmpfile - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Performing Other Test VSNPRINTF_WORKS - Success
-- Performing Other Test HAVE_ATTRIBUTE - Success
-- Performing Other Test HAVE_C99_FUNC - Success
-- Performing Other Test HAVE_FUNCTION - Success
-- Performing Other Test HAVE_C99_DESIGNATED_INITIALIZER - Success
-- Performing Other Test SYSTEM_SCOPE_THREADS - Success
-- Performing Other Test CXX_HAVE_OFFSETOF - Success
-- Configuring incomplete, errors occurred!
See also "C:/Vcpkg/buildtrees/szip/arm64-android-rel/CMakeFiles/CMakeOutput.log".
See also "C:/Vcpkg/buildtrees/szip/arm64-android-rel/CMakeFiles/CMakeError.log".
[2/2] "C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir "../../arm64-android-dbg" "C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/Vcpkg/buildtrees/szip/src/szip-2.1.1-15a12784d5.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/Vcpkg/packages/szip_arm64-android/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DSZIP_INSTALL_DATA_DIR=share/szip/data" "-DSZIP_INSTALL_CMAKE_DIR=share/szip" "-DCMAKE_MAKE_PROGRAM=C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Vcpkg/scripts/toolchains/android.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-android" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=static" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a"
FAILED: ../../arm64-android-dbg/CMakeCache.txt
"C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir "../../arm64-android-dbg" "C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/Vcpkg/buildtrees/szip/src/szip-2.1.1-15a12784d5.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/Vcpkg/packages/szip_arm64-android/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DSZIP_INSTALL_DATA_DIR=share/szip/data" "-DSZIP_INSTALL_CMAKE_DIR=share/szip" "-DCMAKE_MAKE_PROGRAM=C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DCMAKE_SYSTEM_NAME=Android" "-DCMAKE_SYSTEM_VERSION=21" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Vcpkg/scripts/toolchains/android.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-android" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=static" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a"
-- The C compiler identification is Clang 12.0.9
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- VERSION: 2.1.1
-- VERSION: 2.1.1
-- Looking for ceil in m;
-- Looking for ceil in m; - found
-- Looking for WSAStartup in ws2_32;m
-- Looking for WSAStartup in ws2_32;m - not found
-- Looking for gethostbyname in wsock32;m
-- Looking for gethostbyname in wsock32;m - not found
-- Looking for gethostname in ucb;m
-- Looking for gethostname in ucb;m - not found
-- Performing Other Test STDC_HEADERS - Success
CMake Warning (dev) at C:/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/share/cmake-3.25/Modules/CheckIncludeFiles.cmake:121 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

CMAKE_REQUIRED_LIBRARIES is set to:

m

For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
config/cmake/ConfigureChecks.cmake:180 (CHECK_INCLUDE_FILES)
config/cmake/ConfigureChecks.cmake:189 (CHECK_INCLUDE_FILE_CONCAT)
CMakeLists.txt:133 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include files unistd.h, sys/stat.h
-- Looking for include files unistd.h, sys/stat.h - found
-- Looking for 3 include files unistd.h, ..., sys/types.h
-- Looking for 3 include files unistd.h, ..., sys/types.h - found
-- Looking for 4 include files unistd.h, ..., stddef.h
-- Looking for 4 include files unistd.h, ..., stddef.h - found
-- Looking for 5 include files unistd.h, ..., stdint.h
-- Looking for 5 include files unistd.h, ..., stdint.h - found
-- Looking for 6 include files unistd.h, ..., io.h
-- Looking for 6 include files unistd.h, ..., io.h - not found
-- Looking for 6 include files unistd.h, ..., winsock2.h
-- Looking for 6 include files unistd.h, ..., winsock2.h - not found
-- Looking for 6 include files unistd.h, ..., pthread.h
-- Looking for 6 include files unistd.h, ..., pthread.h - found
-- Looking for 7 include files unistd.h, ..., string.h
-- Looking for 7 include files unistd.h, ..., string.h - found
-- Looking for 8 include files unistd.h, ..., strings.h
-- Looking for 8 include files unistd.h, ..., strings.h - found
-- Looking for 9 include files unistd.h, ..., time.h
-- Looking for 9 include files unistd.h, ..., time.h - found
-- Looking for 10 include files unistd.h, ..., stdlib.h
-- Looking for 10 include files unistd.h, ..., stdlib.h - found
-- Looking for 11 include files unistd.h, ..., memory.h
-- Looking for 11 include files unistd.h, ..., memory.h - found
-- Looking for 12 include files unistd.h, ..., dlfcn.h
-- Looking for 12 include files unistd.h, ..., dlfcn.h - found
-- Looking for 13 include files unistd.h, ..., fcntl.h
-- Looking for 13 include files unistd.h, ..., fcntl.h - found
-- Looking for 14 include files unistd.h, ..., inttypes.h
-- Looking for 14 include files unistd.h, ..., inttypes.h - found
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
HAVE_DEFAULT_SOURCE_RUN (advanced)
HAVE_DEFAULT_SOURCE_RUN__TRYRUN_OUTPUT (advanced)
For details see C:/Vcpkg/buildtrees/szip/arm64-android-dbg/TryRunResults.cmake
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
TEST_LFS_WORKS_RUN (advanced)
TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT (advanced)
For details see C:/Vcpkg/buildtrees/szip/arm64-android-dbg/TryRunResults.cmake
-- Performing TEST_LFS_WORKS... no
-- Performing Other Test HAVE_OFF64_T - Success
-- Looking for lseek64
-- Looking for lseek64 - found
-- Looking for fseeko64
-- Looking for fseeko64 - not found
-- Looking for ftello64
-- Looking for ftello64 - not found
-- Looking for ftruncate64
-- Looking for ftruncate64 - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Performing Other Test HAVE_STAT64_STRUCT - Success
-- Looking for fstat64
-- Looking for fstat64 - found
-- Looking for stat64
-- Looking for stat64 - found
-- Performing Other Test DEV_T_IS_SCALAR - Success
-- Performing Other Test HAVE_STAT_ST_BLOCKS - Success
-- Looking for alarm
-- Looking for alarm - found
-- Looking for fork
-- Looking for fork - found
-- Looking for frexpf
-- Looking for frexpf - found
-- Looking for frexpl
-- Looking for frexpl - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for getpwuid
-- Looking for getpwuid - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for lstat
-- Looking for lstat - found
-- Looking for rand_r
-- Looking for rand_r - found
-- Looking for random
-- Looking for random - found
-- Looking for setsysinfo
-- Looking for setsysinfo - not found
-- Looking for signal
-- Looking for signal - found
-- Looking for longjmp
-- Looking for longjmp - found
-- Looking for setjmp
-- Looking for setjmp - found
-- Looking for siglongjmp
-- Looking for siglongjmp - found
-- Looking for sigsetjmp
-- Looking for sigsetjmp - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sigprocmask
-- Looking for sigprocmask - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for srandom
-- Looking for srandom - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for symlink
-- Looking for symlink - found
-- Looking for system
-- Looking for system - found
-- Looking for tmpfile
-- Looking for tmpfile - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Performing Other Test VSNPRINTF_WORKS - Success
-- Performing Other Test HAVE_ATTRIBUTE - Success
-- Performing Other Test HAVE_C99_FUNC - Success
-- Performing Other Test HAVE_FUNCTION - Success
-- Performing Other Test HAVE_C99_DESIGNATED_INITIALIZER - Success
-- Performing Other Test SYSTEM_SCOPE_THREADS - Success
-- Performing Other Test CXX_HAVE_OFFSETOF - Success
-- Configuring incomplete, errors occurred!
See also "C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeOutput.log".
See also "C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeError.log".
ninja: build stopped: subcommand failed.

This is C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeError.log

Determining if the function WSAStartup exists in the ws2_32;m failed with the following output:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-znown7

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_4d3fd && [1/2] Building C object CMakeFiles/cmTC_4d3fd.dir/CheckFunctionExists.c.o

[2/2] Linking C executable cmTC_4d3fd

FAILED: cmTC_4d3fd

cmd.exe /C "cd . && C:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIC -DCHECK_FUNCTION_EXISTS=WSAStartup -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections CMakeFiles/cmTC_4d3fd.dir/CheckFunctionExists.c.o -o cmTC_4d3fd -lws2_32 -lm -latomic -lm && cd ."

ld: error: unable to find library -lws2_32

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.

Determining if the function gethostbyname exists in the wsock32;m failed with the following output:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-reiwds

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_d5bef && [1/2] Building C object CMakeFiles/cmTC_d5bef.dir/CheckFunctionExists.c.o

[2/2] Linking C executable cmTC_d5bef

FAILED: cmTC_d5bef

cmd.exe /C "cd . && C:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIC -DCHECK_FUNCTION_EXISTS=gethostbyname -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections CMakeFiles/cmTC_d5bef.dir/CheckFunctionExists.c.o -o cmTC_d5bef -lwsock32 -lm -latomic -lm && cd ."

ld: error: unable to find library -lwsock32

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.

Determining if the function gethostname exists in the ucb;m failed with the following output:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-cyvvyd

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_dd6ee && [1/2] Building C object CMakeFiles/cmTC_dd6ee.dir/CheckFunctionExists.c.o

[2/2] Linking C executable cmTC_dd6ee

FAILED: cmTC_dd6ee

cmd.exe /C "cd . && C:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIC -DCHECK_FUNCTION_EXISTS=gethostname -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections CMakeFiles/cmTC_dd6ee.dir/CheckFunctionExists.c.o -o cmTC_dd6ee -lucb -lm -latomic -lm && cd ."

ld: error: unable to find library -lucb

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.

Determining if files unistd.h;sys/stat.h;sys/types.h;stddef.h;stdint.h;io.h exist failed with the following output:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-3loy0n

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_279e5 && [1/2] Building C object CMakeFiles/cmTC_279e5.dir/HAVE_IO_H.c.o

FAILED: CMakeFiles/cmTC_279e5.dir/HAVE_IO_H.c.o

C:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIC -fPIE -MD -MT CMakeFiles/cmTC_279e5.dir/HAVE_IO_H.c.o -MF CMakeFiles\cmTC_279e5.dir\HAVE_IO_H.c.o.d -o CMakeFiles/cmTC_279e5.dir/HAVE_IO_H.c.o -c C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-3loy0n/HAVE_IO_H.c

C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-3loy0n/HAVE_IO_H.c:7:10: fatal error: 'io.h' file not found

#include <io.h>

     ^~~~~~

1 error generated.

ninja: build stopped: subcommand failed.

Source:
/* */
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
#include <io.h>

int main(void){return 0;}

Determining if files unistd.h;sys/stat.h;sys/types.h;stddef.h;stdint.h;winsock2.h exist failed with the following output:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-qhmbkr

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_512cc && [1/2] Building C object CMakeFiles/cmTC_512cc.dir/HAVE_WINSOCK_H.c.o

FAILED: CMakeFiles/cmTC_512cc.dir/HAVE_WINSOCK_H.c.o

C:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIC -fPIE -MD -MT CMakeFiles/cmTC_512cc.dir/HAVE_WINSOCK_H.c.o -MF CMakeFiles\cmTC_512cc.dir\HAVE_WINSOCK_H.c.o.d -o CMakeFiles/cmTC_512cc.dir/HAVE_WINSOCK_H.c.o -c C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-qhmbkr/HAVE_WINSOCK_H.c

C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-qhmbkr/HAVE_WINSOCK_H.c:7:10: fatal error: 'winsock2.h' file not found

#include <winsock2.h>

     ^~~~~~~~~~~~

1 error generated.

ninja: build stopped: subcommand failed.

Source:
/* */
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
#include <winsock2.h>

int main(void){return 0;}

Test TEST_LFS_WORKS Run failed with the following output and exit code:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_993f4 && [1/2] Building C object CMakeFiles/cmTC_993f4.dir/SZIPTests.c.o

[2/2] Linking C executable cmTC_993f4

Determining if the function fseeko64 exists failed with the following output:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-snpz30

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_97a26 && [1/2] Building C object CMakeFiles/cmTC_97a26.dir/CheckFunctionExists.c.o

[2/2] Linking C executable cmTC_97a26

FAILED: cmTC_97a26

cmd.exe /C "cd . && C:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIC -DCHECK_FUNCTION_EXISTS=fseeko64 -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections CMakeFiles/cmTC_97a26.dir/CheckFunctionExists.c.o -o cmTC_97a26 -lm -latomic -lm && cd ."

ld: error: undefined symbol: fseeko64

referenced by CheckFunctionExists.c:17 (C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-snpz30\CheckFunctionExists.c:17)

          CMakeFiles/cmTC_97a26.dir/CheckFunctionExists.c.o:(main)

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.

Determining if the function ftello64 exists failed with the following output:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-untmy3

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_4bdaa && [1/2] Building C object CMakeFiles/cmTC_4bdaa.dir/CheckFunctionExists.c.o

[2/2] Linking C executable cmTC_4bdaa

FAILED: cmTC_4bdaa

cmd.exe /C "cd . && C:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIC -DCHECK_FUNCTION_EXISTS=ftello64 -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections CMakeFiles/cmTC_4bdaa.dir/CheckFunctionExists.c.o -o cmTC_4bdaa -lm -latomic -lm && cd ."

ld: error: undefined symbol: ftello64

referenced by CheckFunctionExists.c:17 (C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-untmy3\CheckFunctionExists.c:17)

          CMakeFiles/cmTC_4bdaa.dir/CheckFunctionExists.c.o:(main)

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.

Determining if the function setsysinfo exists failed with the following output:
Change Dir: C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-i1grtc

Run Build Command(s):C:/Vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe cmTC_7a952 && [1/2] Building C object CMakeFiles/cmTC_7a952.dir/CheckFunctionExists.c.o

[2/2] Linking C executable cmTC_7a952

FAILED: cmTC_7a952

cmd.exe /C "cd . && C:\Microsoft\AndroidNDK\android-ndk-r23c\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android21 --gcc-toolchain=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Microsoft/AndroidNDK/android-ndk-r23c/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIC -DCHECK_FUNCTION_EXISTS=setsysinfo -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections CMakeFiles/cmTC_7a952.dir/CheckFunctionExists.c.o -o cmTC_7a952 -lm -latomic -lm && cd ."

ld: error: undefined symbol: setsysinfo

referenced by CheckFunctionExists.c:17 (C:/Vcpkg/buildtrees/szip/arm64-android-dbg/CMakeFiles/CMakeScratch/TryCompile-i1grtc\CheckFunctionExists.c:17)

          CMakeFiles/cmTC_7a952.dir/CheckFunctionExists.c.o:(main)

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ninja: build stopped: subcommand failed.

@Cheney-W Cheney-W added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Jul 31, 2023
@xiaozhuai
Copy link
Contributor

@MCSQNXA

Please try #32914 to see if it works or not.


You can use following commands to get and apply patches and then install it.

curl -Ls https://github.com/microsoft/vcpkg/pull/32914.patch | git apply
vcpkg install szip:arm64-android

After this pr got merged, you may want to drop your local changes via

git checkout .
git clean -fd

@xiaozhuai
Copy link
Contributor

opencv4 depends on hdf5, and hdf5 depends on szip.
hdf5 is also broken on android, that should be fixed after #32914

@dg0yt
Copy link
Contributor

dg0yt commented Aug 3, 2023

hdf5 has the special problem that it relies on running executables for the target (or explicitly providing the desired values) for configuration. This blocked most cross builds (e.g. #24898). Upstram made changes to this long-standing problem recently, but I don't know if it is already part of a release which could be used by vcpkg.

There is an open source alternative to szip: #19125. As I noted, msys2 and brew already did the switch.

(And that's why I didn't fix szip android.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants