Nixpkgs Stdenv | 228 Members | |
| 74 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 Apr 2025 | ||
| * Hi! Stdenv noob here. Re: #295038, I have been working on understanding the next-gen GCC split-up efforts (John Ericson Philip Taron (UTC-8) ). I wanted to bounce some issues around to see if anyone may have any insight/perspective. I've brought in changes from master (from a few weeks ago) into my working branch here. Per John Ericson's guidance, my focus is on getting cross-compilation functional. For testing, I am using the following build command from an x86 machine: For additional background, the main gccNg top-level package is located here. The surface-level issue that I am currently finding is that building gccNgPackages.libssp fails with the following error:
I have made the assumption that the error is arch-related. Testing this assumption, I found the Does anyone have any thoughts? | 18:49:37 | |
| * Hi! Stdenv noob here. Re: #295038, I have been working on understanding the next-gen GCC split-up efforts (John Ericson Philip Taron (UTC-8) ). I wanted to bounce some issues around to see if anyone may have any insight/perspective. I've brought in changes from master (from a few weeks ago) into my working branch here. Per John Ericson's guidance, my focus is on getting cross-compilation functional. For testing, I am using the following build command from an x86 machine: For additional background, the main gccNg top-level package is located here. The surface-level issue that I am currently finding is that building gccNgPackages.libssp fails with the following error:
I have made one assumption that the error is possibly arch-related. Testing this assumption, I found the Does anyone have any thoughts? | 19:19:51 | |
| @cldrpr lemme give it a try on my aarch64 hardware to see if cross is borked, though that doesn't look like cross for what you're doing. That looks like emulated compiling. | 19:52:55 | |
In reply to @reckenrode:matrix.orgI think it's doable but we'll have to explore our options when we're closer to that stage | 19:53:19 | |
I would expect libssp not to be needed on aarch64. MOst targets should provide __stack_chk_fail and friends from libc. | 19:54:59 | |
| @aleksana:mozilla.org So the coreutils PR got merged, that'll cause a rebuild of stdenv anyway. I think that other stdenv PR should be good. | 19:55:21 | |
In reply to @trofi:matrix.orgYes, I'll check things out on my system. Should be easy for me to try things out. | 19:55:47 | |
| I wonder if the GCC refactoring could fix https://github.com/NixOS/nixpkgs/pull/399656#issuecomment-2814602431 lol | 19:58:58 | |
my bet is on the mix of libgcc.a from non-matching compiler versions. | 20:03:47 | |
| 21 Apr 2025 | ||
| https://github.com/NixOS/nixpkgs/pull/400408 | 10:24:43 | |
In reply to @rosscomputerguy:matrix.orgIs the goal to enable LTO for everything? That seems risky for packages not written with LTO in mind (e.g., ld64 is prone to crashing when built LTO enabled). | 14:33:56 | |
In reply to @rosscomputerguy:matrix.org* | 14:34:13 | |
In reply to @reckenrode:matrix.orgPretty much | 14:34:57 | |
| We'll have to come up with something which can override the platform attributes in the stdenv to change the platform to disable LTO. | 14:35:45 | |
| https://github.com/NixOS/nixpkgs/pull/394610 some preparations for pkg-config -> pkgconf, with discussion about how to add a hook that should probably be default. Feedback would be appreciated. | 14:38:03 | |
| I just realized that I could change the CC wrapper and add an optional thing to enable or disable LTO | 14:42:56 | |
| it looks good in principle but it shouldn't land before 25.11 | 14:46:59 | |
| so haven't put effort into reviewing as I'm focused on 25.05 prep | 14:47:08 | |
| ah fair fair | 14:47:18 | |
| the Darwin bootstrap stuff is awkward | 14:47:32 | |
| arguably this should just be in the bootstrap tools, although having ported it to Python makes that kind of impossible | 14:47:51 | |
| its python-minimal, specifically to not do string manipulation in C. I understand python-minimal is available early enough? | 14:48:44 | |
| Darwin bootstrap gets a fully functional Python in stage 1. | 14:52:34 | |
| Redacted or Malformed Event | 14:54:36 | |
| * Though having Python pulled into the stdenv is going to add it to the stdenv closure size. Darwin is already huge, so what’s another however many tens or hundreds of MiB. I don’t know about Linux. | 14:54:42 | |
| Not sure why this should be in the bootstrap tools. Can’t it be built in stage 1? | 14:57:12 | |
| Any objections to documenting platform tier support? | 21:45:32 | |
| If not, we should discuss what the tiers look like and what each platform fits into. | 21:46:51 | |
| it's already documented | 21:51:46 | |
| Wait, where? | 21:56:08 | |