-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[arrow] 14.0.2 unable to detect the active compiler's information #36094
Comments
I'm observing a similar issue on a different project:
As you can see, the compiler detection fails on arm64/aarch64, even when
I suspect that the regression was introduced in #35084. |
If you install Ninja, the error will probably go away |
Ok, I take this back. The problem with ninja is system-specific. Compiler detection is still an issue, however. |
So you have an aarch64 host, but no aarch64-linux-gnu-gcc executable in the PATH? |
Yes, that’s an alpine container image. |
This was the ninja error. Did you retry? |
Ok, now it makes sense. detect_compiler failed because I didn't have aarch64-linux-gnu-gcc, but it shouldn't matter because I specify |
The real question seems to be: "Why does this fail?" if(NOT DEFINED CMAKE_C_COMPILER)
set(CMAKE_C_COMPILER "aarch64-linux-gnu-gcc")
endif() It is supposed to only change the compiler if it is not already set. Does this run before CMake checks for the compiler? |
Which failure do you refer to? The variable is set successfully. However, configuration must fail if ninja or that compiler are missing.
Yes. On first run. This is how CMake toolchain file processing works. The real question is why not just use gcc? The default guess is not a good guess when the image needs |
I think just fixing aarch64 is good already. Just for reference, relatively weird systems like Alpine aren't the only ones with the problem. Fedora also doesn't have |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
I think this has been fixed by #38113 in the meantime (in any case, with a recent vcpkg checkout, the issue I mentioned above about installing GDAL is resolved) |
Operating system
Linux
Compiler
glibc 2.28
Steps to reproduce the behavior
14.0.1 SHA 2d8202f06d45f4220fa8aa0fc222d1d8221fd144, builds correctly on Linux-ARM64 armv8a-glibc2.28 ( Linux, version 6.1.8-v8.1.el8.altarch.1) 14.0.2 SHA d6341bc4de5c5f71ffcd129b952a42e823b21bb4 has error: error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.
Failure logs
-- Configuring arm64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: /bin/cmake /Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/scripts/detect_compiler -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/packages/detect_compiler_arm64-linux -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=arm64-linux -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=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON "-DVCPKG_CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=1" -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= "-DVCPKG_C_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=1" -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -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=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg -DZ_VCPKG_ROOT_DIR=/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg -D_VCPKG_INSTALLED_DIR=/Developer/teamcity/work/e7a9578bd49a8fa6/Components/Library/Version/Linux-ARM64 -DVCPKG_MANIFEST_INSTALL=OFF
Working Directory: /Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/buildtrees/detect_compiler/arm64-linux-rel
Error code: 1
See logs for more information:
/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-CMakeCache.txt.log
/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/buildtrees/detect_compiler/config-arm64-linux-rel-out.log
/Dev/Linux-ARM64/armv8a-glibc2.28/vcpkg/buildtrees/detect_compiler/config-arm64-linux-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)
Additional context
config-arm64-linux-rel-err.log:
The text was updated successfully, but these errors were encountered: