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

[<port name>] build failure #35153

Closed
VictorH028 opened this issue Nov 16, 2023 · 6 comments
Closed

[<port name>] build failure #35153

VictorH028 opened this issue Nov 16, 2023 · 6 comments
Assignees
Labels
category:question This issue is a question

Comments

@VictorH028
Copy link

Operating system

Termux

Compiler

clang++

Steps to reproduce the behavior

./vcpkg install boost-program-options

Failure logs

❯ ./vcpkg install boost-program-options                           Computing installation plan...                                    The following packages will be built and installed:
  * boost-any:arm64-android -> 1.83.0                               * boost-array:arm64-android -> 1.83.0
  * boost-assert:arm64-android -> 1.83.0                            * boost-bind:arm64-android -> 1.83.0
  * boost-build:arm64-android -> 1.83.0
  * boost-concept-check:arm64-android -> 1.83.0
  * boost-config:arm64-android -> 1.83.0                            * boost-container:arm64-android -> 1.83.0                         * boost-container-hash:arm64-android -> 1.83.0
  * boost-conversion:arm64-android -> 1.83.0
  * boost-core:arm64-android -> 1.83.0
  * boost-describe:arm64-android -> 1.83.0
  * boost-detail:arm64-android -> 1.83.0
  * boost-function:arm64-android -> 1.83.0
  * boost-function-types:arm64-android -> 1.83.0
  * boost-functional:arm64-android -> 1.83.0
  * boost-fusion:arm64-android -> 1.83.0
  * boost-integer:arm64-android -> 1.83.0
  * boost-intrusive:arm64-android -> 1.83.0
  * boost-io:arm64-android -> 1.83.0
  * boost-iterator:arm64-android -> 1.83.0
  * boost-lexical-cast:arm64-android -> 1.83.0
  * boost-modular-build-helper:arm64-android -> 1.83.0#1
  * boost-move:arm64-android -> 1.83.0
  * boost-mp11:arm64-android -> 1.83.0
  * boost-mpl:arm64-android -> 1.83.0
  * boost-numeric-conversion:arm64-android -> 1.83.0
  * boost-optional:arm64-android -> 1.83.0
  * boost-predef:arm64-android -> 1.83.0
  * boost-preprocessor:arm64-android -> 1.83.0
    boost-program-options:arm64-android -> 1.83.0
  * boost-range:arm64-android -> 1.83.0
  * boost-regex:arm64-android -> 1.83.0
  * boost-smart-ptr:arm64-android -> 1.83.0
  * boost-static-assert:arm64-android -> 1.83.0
  * boost-throw-exception:arm64-android -> 1.83.0
  * boost-tokenizer:arm64-android -> 1.83.0
  * boost-tuple:arm64-android -> 1.83.0
  * boost-type-index:arm64-android -> 1.83.0
  * boost-type-traits:arm64-android -> 1.83.0
  * boost-typeof:arm64-android -> 1.83.0
  * boost-uninstall:arm64-android -> 1.83.0
  * boost-utility:arm64-android -> 1.83.0
  * boost-vcpkg-helpers:arm64-android -> 1.83.0
  * vcpkg-cmake:arm64-android -> 2023-05-04
  * vcpkg-cmake-get-vars:arm64-android -> 2023-03-02
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet arm64-android...
error: while detecting compiler information:
The log file content at "/data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/stdout-arm64-android.log" is:
-- Configuring arm64-android-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /data/data/com.termux/files/usr/bin/cmake /data/data/com.termux/files/home/.local/share/vcpkg/scripts/detect_compiler -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/data/data/com.termux/files/home/.local/share/vcpkg/packages/detect_compiler_arm64-android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=21 -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/data/data/com.termux/files/home/.local/share/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=/data/data/com.termux/files/home/.local/share/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=/data/data/com.termux/files/home/.local/share/vcpkg -DZ_VCPKG_ROOT_DIR=/data/data/com.termux/files/home/.local/share/vcpkg -D_VCPKG_INSTALLED_DIR=/data/data/com.termux/files/home/.local/share/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -DANDROID_ABI=arm64-v8a
    Working Directory: /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/arm64-android-rel
    Error code: 1
    See logs for more information:
      /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-CMakeCache.txt.log
      /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-out.log
      /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:344 (vcpkg_execute_required_process)
  scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
  scripts/ports.cmake:170 (include)


error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.

    ~/.local/share/vcpkg    master ▓▒░··················─╮
❯                                                              ─╯ 

Additional context

❯ cmake --version
cmake version 3.27.7

CMake suite maintained and supported by Kitware (kitware.com/cmake).
❯ clang++ -v
clang version 16.0.6
Target: aarch64-unknown-linux-android24 Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
❯ uname -a
Linux localhost 4.14.116 #1 SMP PREEMPT Fri Mar 17 01:42:44 CST 2023 aarch64 Android

@VictorH028 VictorH028 added the category:port-bug The issue is with a library, which is something the port should already support label Nov 16, 2023
@LilyWangLL LilyWangLL added requires:more-information This Issue requires more information to solve and removed category:port-bug The issue is with a library, which is something the port should already support labels Nov 17, 2023
@LilyWangLL
Copy link
Contributor

Please provide the error log files:

      /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-out.log
      /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-err.log

@VictorH028
Copy link
Author

VictorH028 commented Nov 17, 2023

Please provide the error log files:

      /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-out.log
      /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-err.log
❯ cat /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-out.log

-- Configuring incomplete, errors occurred!                              

❯ cat /data/data/com.termux/files/home/.local/share/vcpkg/buildtrees/detect_compiler/config-arm64-android-rel-err.log

CMake Error at /data/data/com.termux/files/home/.local/share/vcpkg/scripts/toolchains/android.cmake:29 (message):
  Could not find android ndk.  Searched at /Android/android-sdk/ndk-bundle
Call Stack (most recent call first):
  /data/data/com.termux/files/home/.local/share/vcpkg/scripts/buildsystems/vcpkg.cmake:209 (include)
  /data/data/com.termux/files/usr/share/cmake-3.27/Modules/CMakeDetermineSystem.cmake:148 (include)
  CMakeLists.txt:2 (project)


CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
❯ which ninja                                                              /data/data/com.termux/files/usr/bin/ninja                                 
❯ ninja --version                                                          1.11.1

@LilyWangLL
Copy link
Contributor

CMake Error at /data/data/com.termux/files/home/.local/share/vcpkg/scripts/toolchains/android.cmake:29 (message):
Could not find android ndk. Searched at /Android/android-sdk/ndk-bundle

@LilyWangLL LilyWangLL added category:question This issue is a question and removed requires:more-information This Issue requires more information to solve labels Nov 20, 2023
@VictorH028
Copy link
Author

CMake Error at /data/data/com.termux/files/home/.local/share/vcpkg/scripts/toolchains/android.cmake:29 (message):
Could not find android ndk. Searched at /Android/android-sdk/ndk-bundle

Screenshot_20231120_081706_com.termux.jpg

@LilyWangLL
Copy link
Contributor

Could not find android ndk. Searched at /Android/android-sdk/ndk-bundle

Please install android ndk on your machine.

@LilyWangLL
Copy link
Contributor

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.

@LilyWangLL LilyWangLL closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants