Skip to content

Build failure on x86-linux after #44653 #48496

@AenBleidd

Description

@AenBleidd

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:

  1. sudo apt-get install -y g++-multilib gcc-multilib
  2. 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
  3. 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

Complete test project: https://github.com/BOINC/boinc/tree/master/tests/vcpkg

CC: @stemann, @BillyONeal, @Neumann-A, @Cheney-W

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions