Skip to content

Compiler not found error#257

Merged
roxell merged 1 commit intokernelci:masterfrom
bhcopeland:compiler-not-found-error
Mar 27, 2026
Merged

Compiler not found error#257
roxell merged 1 commit intokernelci:masterfrom
bhcopeland:compiler-not-found-error

Conversation

@bhcopeland
Copy link
Copy Markdown
Member

build: raise CompilerNotFoundError for null runtime

When the null runtime detects a missing compiler via is_supported(),
raise a specific CompilerNotFoundError instead of the generic
UnsupportedArchitectureToolchainCombination. This gives the user an
actionable error message naming the missing compiler and suggesting
to install it or use a container-based runtime.

Before:
  E: Unsupported architecture/toolchain combination: sparc64/gcc

After:
  E: Compiler not found: sparc64-linux-gnu-gcc
  Install the compiler or use a container-based runtime (e.g. --runtime=docker/podman).

Copy link
Copy Markdown
Collaborator

@roxell roxell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

E: Compiler not found: sparc64-linux-gnu-gcc
Install the compiler or use a container-based runtime (e.g. --runtime=docker/podman).

@bhcopeland bhcopeland force-pushed the compiler-not-found-error branch 2 times, most recently from 82505d4 to 0b60ac0 Compare March 27, 2026 08:38
When the null runtime detects a missing compiler via is_supported(),
raise a specific CompilerNotFoundError instead of the generic
UnsupportedArchitectureToolchainCombination. This gives the user an
actionable error message naming the missing compiler and suggesting
to install it or use a container-based runtime.

Before:
  E: Unsupported architecture/toolchain combination: sparc64/gcc

After:
  E: Compiler not found: sparc64-linux-gnu-gcc
  Install the compiler or use a container-based runtime (e.g. --runtime=docker/podman)

Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
@bhcopeland bhcopeland force-pushed the compiler-not-found-error branch from 0b60ac0 to caf1108 Compare March 27, 2026 08:53
@roxell roxell merged commit 9f457b8 into kernelci:master Mar 27, 2026
20 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.

2 participants