Commit e055c61
committed
build(guix): add aarch64-unknown-linux-gnu cross-compilation
Adds a new supported target triple, cross-compiled from x86_64 Linux
using Guix's old-glibc toolchain machinery (same approach as the
existing x86_64-linux-gnu build):
* manifest.scm: aarch64-linux-gnu-toolchain built via
make-ckb-cross-toolchain (glibc 2.31); openssl-aarch64-glibc-2.31
cross-compiled against that toolchain; the host-dependent branch
now selects x86_64 or aarch64 packages based on the target, and
aarch64 pulls in a Rust sysroot via make-rust-sysroot/implementation
(rustc only ships libstd for the build host).
* guix-build: aarch64-unknown-linux-gnu added to SUPPORTED_HOSTS and
mapped to the aarch64-linux-gnu GNU triple.
* libexec/build.sh: new HOST case with
DYNAMIC_LINKER=/lib/ld-linux-aarch64.so.1 and the right
TARGET_ENV_SUFFIX. Because cross-arch cross-compile differs from
the existing same-arch glibc-downgrade, build scripts (build.rs,
proc-macros) get CC_x86_64_unknown_linux_gnu/HOST_CC pointed at
native gcc, and AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_{INCLUDE,LIB}_DIR
is set directly so openssl-sys doesn't try to use the host
pkg-config for a differing target arch. Hardcoded x86_64
interpreter in the patchelf call replaced with ${DYNAMIC_LINKER}.
* symbol-check.py: recognise AARCH64 for the glibc 2.31 cap, the
expected interpreter, and the ld-linux-aarch64.so.1 allow-list
entry.
Verified reproducible:
x86_64-unknown-linux-gnu: 3c7d003ca216fbb31173e0da5d965f472243ef4f8b6e1288d37e6053eb566d2d
aarch64-unknown-linux-gnu: 37b1b69faa879ab0f00188c51ab156df0f011912550708a5e400677c30443633
x86_64 hash is identical with and without this commit applied.1 parent d51d9b3 commit e055c61
4 files changed
Lines changed: 99 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
338 | 343 | | |
339 | 344 | | |
340 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
341 | 363 | | |
342 | 364 | | |
343 | 365 | | |
| |||
447 | 469 | | |
448 | 470 | | |
449 | 471 | | |
450 | | - | |
451 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
452 | 475 | | |
453 | 476 | | |
454 | 477 | | |
| |||
674 | 697 | | |
675 | 698 | | |
676 | 699 | | |
677 | | - | |
| 700 | + | |
678 | 701 | | |
679 | 702 | | |
680 | 703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
278 | 289 | | |
279 | 290 | | |
280 | 291 | | |
| |||
319 | 330 | | |
320 | 331 | | |
321 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
322 | 371 | | |
323 | 372 | | |
324 | 373 | | |
| |||
357 | 406 | | |
358 | 407 | | |
359 | 408 | | |
360 | | - | |
361 | | - | |
362 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
363 | 426 | | |
364 | 427 | | |
365 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
0 commit comments