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

[libpcap] build failure #41532

Open
KangLin opened this issue Oct 12, 2024 · 6 comments
Open

[libpcap] build failure #41532

KangLin opened this issue Oct 12, 2024 · 6 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@KangLin
Copy link
Contributor

KangLin commented Oct 12, 2024

Operating system

windows

Compiler

ndk: 27.1.12297006

Steps to reproduce the behavior

vcpkg install pcapplusplus:arm-android

Failure logs

D:\Source\vcpkg>vcpkg install pcapplusplus:arm-android
Computing installation plan...
The following packages will be built and installed:
  * libpcap:[email protected]
    pcapplusplus:[email protected]
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet arm-android...
error: while detecting compiler information:
The log file content at "D:\Source\vcpkg\buildtrees\detect_compiler\stdout-arm-android.log" is:
-- Configuring arm-android
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: D:/Source/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
    Working Directory: D:/Source/vcpkg/buildtrees/detect_compiler/arm-android-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      D:\Source\vcpkg\buildtrees\detect_compiler\config-arm-android-rel-CMakeCache.txt.log
      D:\Source\vcpkg\buildtrees\detect_compiler\config-arm-android-out.log

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


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

Additional context

CMake Error at D:/android-sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:171 (message):
  Disabling Neon is no longer supported
Call Stack (most recent call first):
  D:/android-sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
  D:/Source/vcpkg/scripts/toolchains/android.cmake:32 (include)
  D:/Source/vcpkg/scripts/buildsystems/vcpkg.cmake:209 (include)
  D:/Source/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/share/cmake-3.30/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:2 (project)

Log file

stdout-arm-android.log
config-arm-android-err.log
config-arm-android-out.log
config-arm-android-rel-CMakeCache.txt.log

@KangLin KangLin added the category:port-bug The issue is with a library, which is something the port should already support label Oct 12, 2024
@dg0yt
Copy link
Contributor

dg0yt commented Oct 12, 2024

CMake Error at D:/android-sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:171 (message):
  Disabling Neon is no longer supported

To target arm-android, you must stay at NDK r26 or earlier.
If you didn't mean to disable NEON, use arm-neon-android.

@KangLin KangLin changed the title [pcapplusplus] build failure [libpcap] build failure Oct 12, 2024
@dg0yt
Copy link
Contributor

dg0yt commented Oct 12, 2024

(Not a vcpkg issue.)

@KangLin
Copy link
Contributor Author

KangLin commented Oct 12, 2024

Use arm-neon-android is fail too.

D:\Source\vcpkg>vcpkg install libpcap:arm-neon-android
Computing installation plan...
The following packages will be built and installed:
    libpcap:[email protected]
Detecting compiler hash for triplet arm-neon-android...
Compiler found: D:/android-sdk/ndk/27.1.12297006/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
Restored 0 package(s) from C:\Users\k\AppData\Local\vcpkg\archives in 326 us. Use --debug to see more details.
Installing 1/1 libpcap:[email protected]...
Building libpcap:[email protected]...
-- Using cached the-tcpdump-group-libpcap-libpcap-1.10.5.tar.gz.
-- Cleaning sources at D:/Source/vcpkg/buildtrees/libpcap/src/cap-1.10.5-ac375f8103.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/Source/vcpkg/downloads/the-tcpdump-group-libpcap-libpcap-1.10.5.tar.gz
-- Applying patch install.diff
-- Applying patch mingw-dynamic-libname.diff
-- Using source at D:/Source/vcpkg/buildtrees/libpcap/src/cap-1.10.5-ac375f8103.clean
-- Configuring arm-neon-android-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: D:/Source/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe D:/Source/vcpkg/buildtrees/libpcap/src/cap-1.10.5-ac375f8103.clean -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=D:/Source/vcpkg/packages/libpcap_arm-neon-android/debug -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DBUILD_WITH_LIBNL=OFF -DDISABLE_AIRPCAP=ON -DDISABLE_BLUETOOTH=ON -DDISABLE_DAG=ON -DDISABLE_DBUS=ON -DDISABLE_DPDK=ON -DDISABLE_NETMAP=ON -DDISABLE_RDMA=ON -DDISABLE_SEPTEL=ON -DDISABLE_SNF=ON -DDISABLE_TC=ON -DENABLE_REMOTE=OFF -DLEX_EXECUTABLE=D:/Source/vcpkg/downloads/tools/win_flex/2.5.25/win_flex.exe -DYACC_EXECUTABLE=D:/Source/vcpkg/downloads/tools/win_flex/2.5.25/win_bison.exe -DUSE_STATIC_RT=1 -DCMAKE_MAKE_PROGRAM=D:/Source/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=D:/Source/vcpkg/scripts/toolchains/android.cmake -DVCPKG_TARGET_TRIPLET=arm-neon-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=D:/Source/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=arm -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=D:/Source/vcpkg -D_VCPKG_INSTALLED_DIR=D:/Source/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -DANDROID_ABI=armeabi-v7a -DANDROID_ARM_NEON=ON
    Working Directory: D:/Source/vcpkg/buildtrees/libpcap/arm-neon-android-dbg
    Error code: 1
    See logs for more information:
      D:\Source\vcpkg\buildtrees\libpcap\config-arm-neon-android-dbg-CMakeCache.txt.log
      D:\Source\vcpkg\buildtrees\libpcap\config-arm-neon-android-dbg-CMakeConfigureLog.yaml.log
      D:\Source\vcpkg\buildtrees\libpcap\config-arm-neon-android-dbg-out.log
      D:\Source\vcpkg\buildtrees\libpcap\config-arm-neon-android-dbg-err.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:287 (vcpkg_execute_required_process)
  ports/libpcap/portfile.cmake:33 (vcpkg_cmake_configure)
  scripts/ports.cmake:192 (include)


error: building libpcap:arm-neon-android failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle libpcap:arm-neon-android: 19 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https:/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libpcap
You can submit a new issue at:
  https:/microsoft/vcpkg/issues/new?title=[libpcap]+Build+error+on+arm-neon-android&body=Copy+issue+body+from+D%3A%2FSource%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

log file:
stdout-arm-neon-android.log
config-arm-neon-android-dbg-CMakeCache.txt.log
config-arm-neon-android-dbg-CMakeConfigureLog.yaml.log
config-arm-neon-android-dbg-err.log
config-arm-neon-android-dbg-out.log

@KangLin
Copy link
Contributor Author

KangLin commented Oct 12, 2024

D:\Source\vcpkg>vcpkg install libpcap:x64-android
Computing installation plan...
The following packages will be built and installed:
    libpcap:[email protected]
Detecting compiler hash for triplet x64-android...
Compiler found: D:/android-sdk/ndk/27.1.12297006/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
Restored 0 package(s) from C:\Users\k\AppData\Local\vcpkg\archives in 162 us. Use --debug to see more details.
Installing 1/1 libpcap:[email protected]...
Building libpcap:[email protected]...
-- Using cached the-tcpdump-group-libpcap-libpcap-1.10.5.tar.gz.
-- Cleaning sources at D:/Source/vcpkg/buildtrees/libpcap/src/cap-1.10.5-ac375f8103.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/Source/vcpkg/downloads/the-tcpdump-group-libpcap-libpcap-1.10.5.tar.gz
-- Applying patch install.diff
-- Applying patch mingw-dynamic-libname.diff
-- Using source at D:/Source/vcpkg/buildtrees/libpcap/src/cap-1.10.5-ac375f8103.clean
-- Configuring x64-android-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: D:/Source/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe D:/Source/vcpkg/buildtrees/libpcap/src/cap-1.10.5-ac375f8103.clean -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=D:/Source/vcpkg/packages/libpcap_x64-android/debug -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DBUILD_WITH_LIBNL=OFF -DDISABLE_AIRPCAP=ON -DDISABLE_BLUETOOTH=ON -DDISABLE_DAG=ON -DDISABLE_DBUS=ON -DDISABLE_DPDK=ON -DDISABLE_NETMAP=ON -DDISABLE_RDMA=ON -DDISABLE_SEPTEL=ON -DDISABLE_SNF=ON -DDISABLE_TC=ON -DENABLE_REMOTE=OFF -DLEX_EXECUTABLE=D:/Source/vcpkg/downloads/tools/win_flex/2.5.25/win_flex.exe -DYACC_EXECUTABLE=D:/Source/vcpkg/downloads/tools/win_flex/2.5.25/win_bison.exe -DUSE_STATIC_RT=1 -DCMAKE_MAKE_PROGRAM=D:/Source/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=D:/Source/vcpkg/scripts/toolchains/android.cmake -DVCPKG_TARGET_TRIPLET=x64-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=D:/Source/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=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=D:/Source/vcpkg -D_VCPKG_INSTALLED_DIR=D:/Source/vcpkg/installed -DVCPKG_MANIFEST_INSTALL=OFF -DANDROID_ABI=x86_64
    Working Directory: D:/Source/vcpkg/buildtrees/libpcap/x64-android-dbg
    Error code: 1
    See logs for more information:
      D:\Source\vcpkg\buildtrees\libpcap\config-x64-android-dbg-CMakeCache.txt.log
      D:\Source\vcpkg\buildtrees\libpcap\config-x64-android-dbg-CMakeConfigureLog.yaml.log
      D:\Source\vcpkg\buildtrees\libpcap\config-x64-android-dbg-out.log
      D:\Source\vcpkg\buildtrees\libpcap\config-x64-android-dbg-err.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:287 (vcpkg_execute_required_process)
  ports/libpcap/portfile.cmake:33 (vcpkg_cmake_configure)
  scripts/ports.cmake:192 (include)


error: building libpcap:x64-android failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle libpcap:x64-android: 18 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https:/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libpcap
You can submit a new issue at:
  https:/microsoft/vcpkg/issues/new?title=[libpcap]+Build+error+on+x64-android&body=Copy+issue+body+from+D%3A%2FSource%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Log files:
stdout-x64-android.log
config-x64-android-dbg-CMakeCache.txt.log
config-x64-android-dbg-err.log
config-x64-android-dbg-out.log

@KangLin
Copy link
Contributor Author

KangLin commented Oct 12, 2024

Use ndk 25.1.8938393 is fail too.

CMake Error at D:/android-sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:168 (message):
  Disabling Neon is no longer supported
Call Stack (most recent call first):
  D:/android-sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
  D:/Source/vcpkg/scripts/toolchains/android.cmake:32 (include)
  D:/Source/vcpkg/scripts/buildsystems/vcpkg.cmake:209 (include)
  D:/Source/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/share/cmake-3.30/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:2 (project)

@dg0yt
Copy link
Contributor

dg0yt commented Oct 12, 2024

libpcap:[email protected] builds with NDK r26, locally and vcpkg CI.

I don't remember when the NDK kicked NEON support.

r27 is known to have issues, including miscompiles.
#40339
Waiting for r27c

r28beta is known to have issues.
#41293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

3 participants