-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: GCC with separated runtime libraries #132343
Draft
alexfmpe
wants to merge
19
commits into
NixOS:master
Choose a base branch
from
alexfmpe:gcc-ng
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 3 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
199c8b3
MAX WIP: gccNgPackages_11: init
Ericson2314 16d8e38
gccNgPackages_11: make evaluate to a certain extent, flesh out
sternenseemann 7ac987c
gccNgPackages_11.libstdcxx: fix path
sternenseemann b0757eb
gccNgPackages_11.libstdcxx: move patches from old location
sternenseemann c2b3b06
WIP
Ericson2314 dcd2a6b
WIP, Can build gcc but not libgcc
Ericson2314 3381374
WIP improve compiler, get farther with libgcc
Ericson2314 2e052f4
Merge branch 'gcc-ng' of github.com:alexfmpe/nixpkgs into gcc-ng
Ericson2314 bfbfd8e
gccNgPackages_11.libgcc: Fix build
Ericson2314 acee86d
Merge remote-tracking branch 'upstream/master' into gcc-ng
Ericson2314 f9904a8
Merge remote-tracking branch 'upstream/master' into gcc-ng
Ericson2314 08aae70
gccNgPackages.libatomic: Init
Ericson2314 08c8320
Merge remote-tracking branch 'upstream/master' into gcc-ng
Ericson2314 e411c82
gccPackagesNg.libgcc: Fix Musl build
Ericson2314 85dcd96
glibc: Fix evaluation when using gccNg
Ericson2314 7e5d649
libatomic: Fix build
Ericson2314 b949157
gccNgPackages.{libatomic, libstdcxx}: Simplify and improve
Ericson2314 eafee3f
libssp: Init
Ericson2314 6c23699
gccNgPackages.lib{atomic,ssp}: Add Meta
Ericson2314 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
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
54 changes: 54 additions & 0 deletions
54
pkgs/development/compilers/gcc-ng/11/libatomic/default.nix
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ lib, stdenv, buildPackages | ||
, gcc_src, version | ||
, glibc | ||
, autoreconfHook269, libiberty | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "libatomic"; | ||
inherit version; | ||
|
||
src = gcc_src; | ||
|
||
patches = [ | ||
../custom-threading-model.patch | ||
]; | ||
|
||
outputs = [ "out" "dev" ]; | ||
|
||
strictDeps = true; | ||
|
||
depsBuildBuild = [ buildPackages.stdenv.cc ]; | ||
nativeBuildInputs = [ autoreconfHook269 libiberty ]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
#postUnpack = '' | ||
# mkdir -p ./build | ||
# buildRoot=$(readlink -e "./build") | ||
#''; | ||
|
||
postPatch = '' | ||
sourceRoot=$(readlink -e "./libatomic") | ||
''; | ||
|
||
configurePlatforms = [ "build" "host" ]; | ||
configureFlags = [ | ||
"--disable-dependency-tracking" | ||
"--with-threads=single" | ||
# $CC cannot link binaries, let alone run then | ||
"cross_compiling=true" | ||
# Do not have dynamic linker without libc | ||
"--enable-static" | ||
"--disable-shared" | ||
]; | ||
|
||
makeFlags = [ "MULTIBUILDTOP:=../" ]; | ||
|
||
postInstall = '' | ||
moveToOutput "lib/gcc/${stdenv.hostPlatform.config}/${version}/include" "$dev" | ||
mkdir -p "$out/lib" "$dev/include" | ||
ln -s "$out/lib/gcc/${stdenv.hostPlatform.config}/${version}"/* "$out/lib" | ||
ln -s "$dev/lib/gcc/${stdenv.hostPlatform.config}/${version}/include"/* "$dev/include/" | ||
''; | ||
} |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meta is missing.