Repository navigation
CI: fix I386_LINUX, which must not export CMAKE_TOOLCHAIN_FILE - #1283
Merged
Merged
Conversation
The bootstrap step exported CMAKE_TOOLCHAIN_FILE as a relative path and passed the absolute one with -D. CMake 4.5 (runner image 20261116) also reads the environment variable, and in try_compile's nested project the relative path finds no file, so configuring failed with "CMAKE_C_COMPILER not set, after EnableLanguage". Reproduced with CMake 4.5.1; without the variable it configures. Rename it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since the ubuntu-26.04 runner image 20261116 (CMake 4.5), I386_LINUX fails while configuring the bootstrap:
CMAKE_C_COMPILER not set, after EnableLanguage, intry_compileduring CMake's compiler checks.Cause. The "Install bootstrap release" step exported
CMAKE_TOOLCHAIN_FILEas an environment variable with a relative path, and passed the absolute path with-D. CMake 4.5 also reads that environment variable, and intry_compile's nested project the relative path finds no file, so that project has no compiler. I reproduced it with CMake 4.5.1: with the variable set this way, a minimal project fails with exactly this error; without it, it configures.Fix. The step's variable is renamed to
M3_TOOLCHAIN_FILE, with a comment saying why. No other workflow setsCMAKE_TOOLCHAIN_FILE.#1275's change to the toolchain file (naming the cross compilers instead of
*_COMPILER_ARG1) was based on a wrong diagnosis. It's harmless, so I've left it.integration.ymlruns the per-target workflows from@master, so this PR's own CI still uses master'si386_linux.yml. The fix shows up on master's run after merging.🤖 Generated with Claude Code