Skip to content

CI: fix I386_LINUX, which must not export CMAKE_TOOLCHAIN_FILE - #1283

Merged
hosking merged 1 commit into
masterfrom
ci-i386-cmake
Nov 21, 2026
Merged

hosking merged 1 commit into
masterfrom
ci-i386-cmake

Conversation

@hosking

@hosking hosking commented Nov 21, 2026

Copy link
Copy Markdown
Member

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, in try_compile during CMake's compiler checks.

Cause. The "Install bootstrap release" step exported CMAKE_TOOLCHAIN_FILE as an environment variable with a relative path, and passed the absolute path with -D. CMake 4.5 also reads that environment variable, and in try_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 sets CMAKE_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.yml runs the per-target workflows from @master, so this PR's own CI still uses master's i386_linux.yml. The fix shows up on master's run after merging.

🤖 Generated with Claude Code

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>
@hosking
hosking merged commit 4b4568c into master Nov 21, 2026
9 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant