Skip to content

fix: install cross toolchain for the other arch in the linux image - #45

Merged
ghaith merged 1 commit into
mainfrom
fix/arm-cross-toolchain
Oct 19, 2026
Merged

ghaith merged 1 commit into
mainfrom
fix/arm-cross-toolchain

Conversation

@ghaith

@ghaith ghaith commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

On arm64, clang --target=x86_64-linux-gnu could not link because the image only shipped native libc, crt files and ld. Linker probes then fell back to plain ld, which failed to find the target libraries.

Install the cross gcc (which brings -ld and the cross libgcc) plus the cross libc for the other supported arch: x86_64 on arm64 and aarch64 on amd64. libc6-dev-*-cross is only a Recommends of the cross gcc, so it is listed explicitly.

On arm64, clang --target=x86_64-linux-gnu could not link because the
image only shipped native libc, crt files and ld. Linker probes then
fell back to plain ld, which failed to find the target libraries.

Install the cross gcc (which brings <triple>-ld and the cross libgcc)
plus the cross libc for the other supported arch: x86_64 on arm64 and
aarch64 on amd64. libc6-dev-*-cross is only a Recommends of the cross
gcc, so it is listed explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ghaith
ghaith merged commit 342f8d5 into main Oct 19, 2026
6 checks passed
@ghaith
ghaith deleted the fix/arm-cross-toolchain branch October 19, 2026 08:26
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