Binutils-wrapper: Init by refactoring out of cc-wrapper#28557
Merged
Ericson2314 merged 10 commits intoNixOS:stagingfrom Sep 3, 2017
Merged
Binutils-wrapper: Init by refactoring out of cc-wrapper#28557Ericson2314 merged 10 commits intoNixOS:stagingfrom
Ericson2314 merged 10 commits intoNixOS:stagingfrom
Conversation
13 tasks
97349ab to
c10e6cf
Compare
Member
Author
|
Something really weird is going on where binutils' configure tests for various headers fail despite the underlying |
063cd8c to
a0acff6
Compare
Member
Author
|
Ok the Darwin `allowedRequsites problem is from a self rpath, it seems: time stamp 2 Wed Dec 31 19:00:02 1969
current version 1226.10.1
compatibility version 1.0.0
Load command 11
+ cmd LC_RPATH
+ cmdsize 88
+ path /nix/store/n3s943551i12fvklcxxs023bfy2izk8g-libresolv-osx-10.11.6/lib (offset 12)
+Load command 12
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 162176 |
a0acff6 to
d9a910c
Compare
In preparation for splitting out binutils-wrapper
This avoids any `NIX_FOOBAR=1 1` not triggering conditions.
Factor a binutils wrapper out of cc-wrapper. While only LD is wrapped, the setup hook defines environment variables on behalf of other utilites.
Certain files are now only there instead of $NIX_CC (some are in both)
4e9497b to
b298916
Compare
Member
Author
|
Everything should be fixed now. https://hydra.mayflower.de/jobset/mayflower/hydra-jobs-cross-rewrite#tabs-evaluations failures are spurious due to outage yesterday. |
Shrunk the CC Wrapper documentation so as not to be repetative.
Member
|
Please ping me in IRC when you have time later today :) |
f1cfd7a to
5db86a4
Compare
ad8fdde to
44cc709
Compare
edolstra
added a commit
that referenced
this pull request
Sep 7, 2017
This reverts commit 0a944b3, reversing changes made to 61733ed. I dislike these massive stdenv changes with unclear motivation, especially when they involve gratuitous mass renames like NIX_CC -> NIX_BINUTILS. The previous such rename (NIX_GCC -> NIX_CC) caused months of pain, so let's not do that again.
edolstra
added a commit
that referenced
this pull request
Sep 7, 2017
This reverts commit 0a944b3, reversing changes made to 61733ed. I dislike these massive stdenv changes with unclear motivation, especially when they involve gratuitous mass renames like NIX_CC -> NIX_BINUTILS. The previous such rename (NIX_GCC -> NIX_CC) caused months of pain, so let's not do that again. (cherry picked from commit ec8d41f)
Member
|
I reverted this in ec8d41f because I really don't want yet another mass rename like |
vcunat
added a commit
that referenced
this pull request
Sep 10, 2017
This is probably a fallout from #28557 merge and revert. I can't see why exactly this happened, but it seems a safe fix.
vcunat
added a commit
that referenced
this pull request
Sep 13, 2017
(cherry picked from commit 97ac29c)
vcunat
added a commit
that referenced
this pull request
Sep 13, 2017
Member
Author
|
#29396 new version |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation for this change
I need this so packages that just use binutils (e.g. gcc building its standard library until #26004) get the same setup-hook support. More broadly, having two wrappers will help enforce proper layering between binutils and the C compiler.
This depends on #28556
Things done
Right now cc-wrapper just calls binutils wrapper, but I should add another commit exposing wrapped binutils on it's own and changing the stdenv bootstrapping.
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)