Skip to content

Cross-compile LoongArch with LLVM and a sysroot - #1423

Merged
jjhelmus merged 3 commits into
mainfrom
jjh/update_loongarch_image
Oct 29, 2026
Merged

jjhelmus merged 3 commits into
mainfrom
jjh/update_loongarch_image

Conversation

@jjhelmus

Copy link
Copy Markdown
Contributor

Use the bundled llvm and lld with a Debian-provided sysroot and GCC runtime objects. Construct the sysroot using loong64 packages from a debian-ports snapshot, using the pattern that is used for native builds.

Remove the LoongArch-specific downloads of config.guess and config.sub. The pinned libxcb and xorgproto releases already recognize loongarch64-unknown-linux-gnu and cross-compile successfully with their bundled scripts.

Upstream packages support this platform directly.
Use Clang and lld with a Debian-provided sysroot and GCC runtime
objects. Install libcrypt into the sysroot as this was split from glibc.
Use mmdebstrap in a preparation stage to extract target headers
and libraries from the Debian Ports snapshot.
@jjhelmus
jjhelmus merged commit 8d89a2a into main Oct 29, 2026
30 of 41 checks passed
@jjhelmus
jjhelmus deleted the jjh/update_loongarch_image branch October 29, 2026 20:28
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