Nixpkgs Stdenv | 230 Members | |
| 75 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Nov 2024 | ||
In reply to @emilazy:matrix.org I tried reverting the | 23:27:03 | |
In reply to @reckenrode:matrix.orghonestly, just replacing all of that with NIX_DONT_SET_RPATH_aarch64_apple_darwin/NIX_DONT_SET_RPATH_x86_64_apple_darwin seems cool to me | 23:27:14 | |
In reply to @reckenrode:matrix.orgthere's the nostdlibinc patch | 23:27:24 | |
| try removing it entirely | 23:27:32 | |
In reply to @emilazy:matrix.orgIt’s exposing a cc-wrapper internal detail, which is also different on static Darwin builds. | 23:27:38 | |
In reply to @emilazy:matrix.orgDoesn’t matter either. | 23:28:47 | |
In reply to @emilazy:matrix.org* | 23:28:54 | |
| Does every clang dependency have to be audited for | 23:29:59 | |
| Note that this includes my “Darwin as | 23:30:30 | |
well, ideally targetPlatform would be null so they would have no way of depending on it | 23:30:58 | |
I'm curious what nix-diff says though | 23:31:09 | |
| Output of https://gist.github.com/reckenrode/be122136283d8ed5a05d52f2f57d8809 | 23:41:53 | |
| the bootstrap stuff seems solvable | 23:43:15 | |
if we used the earlier stage compilers to bootstrap pkgsCross | 23:43:26 | |
I think comparing two pkgsCrosses would be more enlightening though | 23:43:39 | |
| since that's still significantly more sharing | 23:43:42 | |
| and would eliminate that difference | 23:43:47 | |
like gnu64 and aarch64-multiplatform instead | 23:43:56 | |
(or I guess aarch64-multiplatform and however x86_64-darwin is spelled, to capture OS differences) | 23:45:44 | |
| 12 Nov 2024 | ||
| I can check in a bit. | 00:55:17 | |
| emily: mainly the LLVM LLVMGold.so thing depending on GNU binutils or not, could be interesting to remove that somehow | 12:18:23 | |
| I think sharing between normal clang and cross clang is a bigger win though | 12:18:43 | |
Ideally you can just pass useLLVM and never need to rebuild anything big | 12:19:06 | |
In reply to @emilazy:matrix.orgthat doesn't make sense, you always have a target platform in a package set and Nix can figure out whether it needs rebuilding or not on its own | 12:19:58 | |
subtle problems are usually introduced elsewhere, so nulling it for some derivations isn't really solving anything | 12:20:45 | |
if you care about it, just add a test somewhere that comparse outPaths i'd say | 12:21:04 | |
In reply to @sternenseemann:systemli.orgi.e. would be nice if this could be outside the LLVM derivation | 12:21:31 | |
In reply to @sternenseemann:systemli.orgthe really nice thing about nulling it is that it allows dependency specification that people can actually make sense of https://github.com/NixOS/nixpkgs/issues/227327 | 13:35:10 | |
In reply to @sternenseemann:systemli.orgI had noticed this one too. AFAIU, the interface it uses is stable, so shouldn’t very much in theory. I don’t know how that holds in practice. If you are building with a useLLVM tool chain with the LLD linker, then it is redundant anyway. Maybe the dependency could be dropped in that case at least? | 15:06:39 | |
| I think it needs to link against libbfd (would need to verify), so it depends on whether it is available for a given target since binutils is not target agnostic | 17:10:51 | |