-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Open
Description
Describe the bug
PR #44653 introduces an issue resulting in build failure on x86-linux
Environment
- OS: [Ubuntu 24.04]
- Compiler: gcc
- Crosscompilation for x86
To Reproduce
Steps to reproduce the behavior:
- sudo apt-get install -y g++-multilib gcc-multilib
- cmake -E env CC="gcc -m32" CXX="g++ -m32" CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" cmake -B tests/vcpkg/build -S tests/vcpkg/ -DVCPKG_TARGET_TRIPLET=x86-linux
- See error
CMake Error at CMakeLists.txt:11 (enable_language):
The CMAKE_C_COMPILER:
i686-linux-gnu-gcc
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
Expected behavior
Build successful
Failure logs
- Example of the successful build before Define CMAKE_Fortran_COMPILER etc. when cross-compiling #44653: https://github.com/BOINC/boinc/actions/runs/19731804790/job/56534370175
- Example of the failed build after Define CMAKE_Fortran_COMPILER etc. when cross-compiling #44653: https://github.com/BOINC/boinc/actions/runs/19731290033/job/56532818827
Complete test project: https://github.com/BOINC/boinc/tree/master/tests/vcpkg
CC: @stemann, @BillyONeal, @Neumann-A, @Cheney-W
Metadata
Metadata
Assignees
Labels
No labels