Closed RDCH106 closed 11 months ago
I'm not able to repro this issue.
Vcpkg version: vcpkg package management program version 2023-10-18-27de5b69dac4b6fe8259d283cd4011e6d20a84ce
Compiler: Clang 14.0.7
I'm not able to repro this issue. Vcpkg version:
vcpkg package management program version 2023-10-18-27de5b69dac4b6fe8259d283cd4011e6d20a84ce
Compiler:Clang 14.0.7
Did you compile for arm64-android
?
I try to retrieve the last changes for the build process of the tesseract port.
Using vcpkg-2023.10.19
:
C:\compiler\vcpkg>vcpkg.exe install tesseract --triplet arm64-android
Computing installation plan...
cpu-features is only supported on '!(arm | uwp)', which does not match arm64-android. This usually means that there are known build failures, or runtime problems, when building other platforms. To ignore this and attempt to build cpu-features anyway, rerun vcpkg with `--allow-unsupported`.
If I try adding the suggested flag --allow-unsupported
:
C:\compiler\vcpkg>vcpkg.exe install tesseract --triplet arm64-android --allow-unsupported
Computing installation plan...
warning: cpu-features is only supported on '!(arm | uwp)', which does not match arm64-android. This usually means that there are known build failures, or runtime problems, when building other platforms. Proceeding anyway due to `--allow-unsupported`.
The following packages will be built and installed:
tesseract:arm64-android -> 5.3.2
Detecting compiler hash for triplet arm64-android...
Restored 0 package(s) from C:\Users\rdecelis\AppData\Local\vcpkg\archives in 435 us. Use --debug to see more details.
Installing 1/1 tesseract:arm64-android...
Building tesseract:arm64-android...
warning: -- Using community triplet arm64-android. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\compiler\vcpkg\triplets\community\arm64-android.cmake
-- Using cached tesseract-ocr-tesseract-5.3.2.tar.gz.
-- Cleaning sources at C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.2-8246f0314f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/compiler/vcpkg/downloads/tesseract-ocr-tesseract-5.3.2.tar.gz
-- Applying patch fix-depend-libarchive.patch
-- Applying patch fix_static_link_icu.patch
-- Applying patch fix-aarch64-mfpu-not-available.patch
-- Using source at C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.2-8246f0314f.clean
-- Configuring arm64-android
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: C:/compiler/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
Working Directory: C:/compiler/vcpkg/buildtrees/tesseract/arm64-android-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-dbg-CMakeCache.txt.log
C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-rel-CMakeCache.txt.log
C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
ports/tesseract/portfile.cmake:21 (vcpkg_cmake_configure)
scripts/ports.cmake:147 (include)
error: building tesseract:arm64-android failed with: BUILD_FAILED
Elapsed time to handle tesseract:arm64-android: 3.5 s
config-x64-windows-dbg-CMakeCache.txt.log config-arm64-android-rel-CMakeCache.txt.log config-arm64-android-out.log
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.
Package: tesseract:arm64-android -> 5.3.1
Host Environment
To Reproduce
vcpkg install tesseract --triplet arm64-android
Failure logs
C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-dbg-CMakeCache.txt.log
> _See Additional context section_C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-rel-CMakeCache.txt.log
> _See Additional context section_C:\compiler\vcpkg\buildtrees\tesseract\config-arm64-android-out.log
``` [1/2] "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir "../../arm64-android-dbg" "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.1-a5892682bb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/compiler/vcpkg/packages/tesseract_arm64-android/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DBUILD_TRAINING_TOOLS=OFF" "-DUSE_SYSTEM_ICU=True" "-DCMAKE_REQUIRE_FIND_PACKAGE_LibArchive=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_CURL=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_Leptonica=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=ON" "-DLeptonica_DIR=YES" "-DSW_BUILD=OFF" "-DCMAKE_MAKE_PROGRAM=C:/compiler/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:/compiler/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:/compiler/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:/compiler/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/compiler/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a" FAILED: ../../arm64-android-dbg/CMakeCache.txt "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" -E chdir "../../arm64-android-dbg" "C:/compiler/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe" "C:/compiler/vcpkg/buildtrees/tesseract/src/5.3.1-a5892682bb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/compiler/vcpkg/packages/tesseract_arm64-android/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DBUILD_TRAINING_TOOLS=OFF" "-DUSE_SYSTEM_ICU=True" "-DCMAKE_REQUIRE_FIND_PACKAGE_LibArchive=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_CURL=ON" "-DCMAKE_REQUIRE_FIND_PACKAGE_Leptonica=ON" "-DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=ON" "-DLeptonica_DIR=YES" "-DSW_BUILD=OFF" "-DCMAKE_MAKE_PROGRAM=C:/compiler/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:/compiler/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:/compiler/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:/compiler/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/compiler/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DANDROID_ABI=arm64-v8a" -- Setting policy CMP0091 to NEW -- The C compiler identification is Clang 14.0.7 -- The CXX compiler identification is Clang 14.0.7 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Users/rdecelis/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Users/rdecelis/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring tesseract version 5.3.1... -- IPO / LTO not supported:Additional context
config-x64-windows-dbg-CMakeCache.txt.log config-arm64-android-rel-CMakeCache.txt.log config-arm64-android-out.log