-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
clang: fix install on Darwin #39038
Merged
Merged
clang: fix install on Darwin #39038
Conversation
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
Throughout the evolution of the Clang packages, some comments have become misplaced. Put some of Clang's postInstall comments next to the lines they refer to.
As of Nix 2.0, building the `user-environment` package on macOS (Darwin) fails because LLVMgold.so is a broken symlink. Fix the issue by not creating the symlink in the first place, since it wouldn't be used on Darwin anyway.
GrahamcOfBorg
added
6.topic: darwin
Running or building packages on Darwin
10.rebuild-darwin-stdenv
This PR causes stdenv to rebuild
10.rebuild-darwin: 501+
10.rebuild-linux: 101-500
labels
Apr 17, 2018
Looks good! LLVM gold is only provided on Linux I think. LTO on Darwin is still broken anyway (#19098). Note that the base for this should be "staging". I also want to cherry-pick 84088930985e6d8dd805661596690453d4ee3f03 (probably will create a PR) so please ping me after merging this. |
matthewbauer
added a commit
that referenced
this pull request
Apr 17, 2018
buildEnv now errors with broken symlinks. Lots of things like this still exist. Discussion in #39038.
|
@strager The checkboxes are there as information for reviewers, you're not required to complete all of those. |
Janik-Haag
added
the
12. first-time contribution
This PR is the author's first one; please be gentle!
label
Jun 12, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
6.topic: darwin
Running or building packages on Darwin
10.rebuild-darwin: 501+
10.rebuild-darwin-stdenv
This PR causes stdenv to rebuild
10.rebuild-linux: 101-500
12. first-time contribution
This PR is the author's first one; please be gentle!
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
As of Nix 2.0, building the
user-environment
package on macOS (Darwin) fails because LLVMgold.so is a broken symlink. Fix the issue by not creating the symlink in the first place, since it wouldn't be used on Darwin anyway.Requests for comments
It seems that Nix 2.0's new buildenv implementation breaks with broken symlinks. Where can I find the code for the new buildenv implementation? The buildenv source in this repository (NixOS/nixpkgs) looks like a Perl script, not a compiled binary which I have in
/nix/store/xmi4fylvx4qc79ji9v5q3zfy9vfdy4sv-nix-2.0/libexec/nix/buildenv
.I think these changes will cause full rebuilds. Should they go on master or staging?
Should I bother with other versions of Clang (e.g. 4.0.1 in
pkgs/development/compilers/llvm/4/default.nix
)? How can I install those withnix-env -i
?Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-env -i --no-build-output --max-jobs 3 --cores 8 -f . clang
nix-shell -p nox --run "nox-review wip"
./result/bin/
)Things to do