-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdenv/linux/default.nix: add gcc rebuild during bootstrap
Before the change our rebuild chain was the followin: - `bootstrapTools` install - `binutils` built by `bootstrapTools` - `glibc` built by `bootstrapTools` - `gcc` built by `bootstrapTools` As a result `glibc` contained code generated by `bootstrapTools`'s `gcc`. And (what worse) copied `libgcc_s.so.1` as is from `bootstrapTools`'s `gcc`. Such `libgcc_s.so.1` was not compatible with `nixpkgs` `gcc` at least on `aarch64` where newer `libgcc` is expected to have new symbols. As a result linking failed as: ld: /build/test.o: in function `foo(int)': test.cpp:(.text+0x2c): undefined reference to `__aarch64_ldadd4_acq_rel' collect2: error: ld returned 1 exit status The change rejigs rebuild sequence as: - `bootstrapTools` install - `binutils` built by `bootstrapTools` - `gcc` built by `bootstrapTools` - `glibc` built by `gcc` - `gcc` built by `gcc` As a result `glibc` gets built by fresher `gcc` and embeds a copy of `libgcc_s.so.1`. Co-authored-by: Rick van Schijndel <[email protected]>
- Loading branch information
Showing
1 changed file
with
67 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters