Skip to content

fix cross-build CI failures#1

Closed
amaanq wants to merge 33 commits intomainfrom
fix-ci-cross-builds
Closed

fix cross-build CI failures#1
amaanq wants to merge 33 commits intomainfrom
fix-ci-cross-builds

Conversation

@amaanq
Copy link
Copy Markdown
Owner

@amaanq amaanq commented Mar 27, 2026

No description provided.

NotAShelf and others added 30 commits March 25, 2026 17:07
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I572acd49ef687c8049d43a7ba42bd12c6a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie94268934435b70bfbcd81e4676600206a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8bb8f3b2e3966cfa2324c0cf8eb447386a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I162c771dce2714fa73db3e2e5dc8dcb36a6a6964
…ysinfo`

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I63887d9f73e6fed670e497086d30d2a46a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2747d4b065095314a1d454a204a251c96a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1a4110c5b79f7cbb3a7d964e3a5a80c66a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Icbd2ba104c66907208cb37adf0c3915a6a6a6964
…uosqk

various: replace libc invocations with `std::env` and handwritten syscall wrappers
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id6c10efbb185fc44fcf22e6ab5c94a266a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8886d8c13a09231ad45f0a075e1308766a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ifabe7af523ece1354b301b1a321659ee6a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia24cb1647df93034937a8fcd6cad895c6a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6f5fac0de48162e114976da3aa5adf216a6a6964
I don't want to configure cargo-cross tbh

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I749bc02bbdf8922fdf7a5904508b8af66a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iaae187e8320a3642c813ca2095a616056a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iadb9cd4ce33acdd2de585a740ac72da86a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I36756896731a4df6903fcafea68246c76a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I753245e75da3a995c622a2c73f77bcb26a6a6964
…uxwln

treewide: break into multiple crates
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1af24924f436b3f552b67f54bad2c02a6a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia1c001eb099ea8cae9bdf76642b873376a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6df95b1f0a9f117c8e108d8755389a4d6a6a6964
…rely

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I19ecd9801cf6e04adcedd3003d9fc59d6a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib5925097dd366505d01f9448e7e2ee926a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0e3132ab1499684eda715c3cee9b27a16a6a6964
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ibdd7b1deaff9489cedcbbc05ce7956d86a6a6964
NotAShelf and others added 3 commits March 28, 2026 00:11
Switch from cfg(target_os = linux) to per-triple sections so the ld-wrapper
(which needs mold) only applies to x86_64 native builds, not inside cross's
Docker containers. Remove relocation-model=static which cargo applies to all
compilations for a triple including proc-macro .so crates that must be PIC.
Make ld-wrapper fall back to plain cc when mold is unavailable.
aarch64 logical instructions encode register 31 as xzr, not sp, so
`and sp, sp, #-16` is an invalid operand. Use a temp register (x9)
to align the stack instead.

Also add bcmp and memcmp implementations needed for -static linking
without libc (riscv64 codegen emits calls to bcmp for byte comparisons).
@amaanq amaanq force-pushed the fix-ci-cross-builds branch from 95bf85e to 19417e9 Compare March 27, 2026 21:33
@amaanq amaanq closed this Mar 27, 2026
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