!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

221 Members
72 Servers

Load older messages


SenderMessageTime
1 Oct 2025
@rosssmyth:matrix.orgrosssmythNIX_CFLAGS_COMPILE doesn't do that everything automatically. It's mainly for stdlib stuff. You still need to provide the -I and -L flags for your build inputs, possibly using pkg-config if they supply it. 03:46:41
@frontear:matrix.orgfrontearhm I see, I guess what also confused me was seeing that both NIX_CFLAGS_COMPILE and NIX_LDFLAGS were populated with the correct flags to include all the headers and libs respectively, for all of my declared build inputs. That, and the explanation in the Nixpkgs manual suggested that these flags were populated by the stdenv and were used by the CC wrapper and LD wrapper respectively.03:58:01
@frontear:matrix.orgfrontear I’m able to reuse the CFLAGS that are created, I just went ahead and threw pkg-config —libs package1 package2 … and this seems to work 03:58:47
@frontear:matrix.orgfrontear Found it: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/cc-wrapper/default.nix#L37 05:29:38
@frontear:matrix.orgfrontearby default link flags aren’t given to NIX_CFLAGS_COMPILE, which matches what I was seeing05:29:55
@frontear:matrix.orgfrontearnow the weird thing is that since the CC wrapper should be using the LD wrapper, I’d have expected NIX_LDFLAGS to be relevant for it05:30:24
@frontear:matrix.orgfrontear back to investigating 05:30:32
@frontear:matrix.orgfrontear * 05:30:53
2 Oct 2025
@Ericson2314:matrix.orgJohn Ericsonoh wow, this is being worked on again?!04:19:47
@Ericson2314:matrix.orgJohn Ericsonexcellent news!04:19:54
@pyrox:pyrox.devdish [Fox/It/She] worked on is a strong word, i'm trying to give it some sort of time but i have a million other things I'm also working on at the same time lol 04:20:27
@pyrox:pyrox.devdish [Fox/It/She]but yes, trying to make progress on having this work04:20:35
3 Oct 2025
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/44819610:38:43
4 Oct 2025
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC) changed their profile picture.08:41:28
@dramforever:matrix.orgdramforever joined the room.11:32:03
@dramforever:matrix.orgdramforever We build the bootstrap tools LLVM on aarch64-darwin for aarch64-apple-darwin but the real LLVM for arm64-apple-darwin. This is now a problem because LLVM 21 assumes that it should be arm64 in a test. This is now blocking the current staging-next -> master cycle. 11:38:51
@dramforever:matrix.orgdramforever * We build the bootstrap tools LLVM on aarch64-darwin for aarch64-apple-darwin but the real LLVM for arm64-apple-darwin. aarch64 is now a problem because LLVM 21 assumes that it should be arm64 in a test. This is now blocking the current staging-next -> master cycle. 11:38:59
@dramforever:matrix.orgdramforeverI'm thinking of just changing it to arm64-apple-darwin, which should fix staging-next, but this means it requires special handling next time someone comes around to touching the bootstrap tarball11:39:55
@dramforever:matrix.orgdramforeverI don't know if this is a good idea / who to tell about this. Any ideas? Thanks11:40:31
@lt1379:matrix.orgLun wanted to take a look at your issue but fetching https://ftpmirror.gnu.org/patch/patch-2.5.9.tar.gz is failing, did you have to import any FODs from alternate sources to get that far? 22:33:05
@lt1379:matrix.orgLun something cursed is happening in gen-fib. if you run it redirecting to a file that file just gets /* This file generated by gen-fib.c - DO NOT EDIT. */ and no further lines.
probably the musl always-flush.patch you dropped was loadbearing
23:28:08
@lt1379:matrix.orgLun * something cursed is happening in gen-fib. if you run it redirecting to a file that file just gets /* This file generated by gen-fib.c - DO NOT EDIT. */ and no further lines, if you run it without a redirect it works.
probably the musl always-flush.patch you dropped was loadbearing
23:28:27
@lt1379:matrix.orgLun * wanted to take a look at your issue but fetching https://ftpmirror.gnu.org/patch/patch-2.5.9.tar.gz is failing, did you have to import any FODs from alternate sources to get that far? was intermittent, managed to fetch 23:32:15
@lt1379:matrix.orgLunyeah if you apply it again minimal-bootstrap.gcc46 builds, tested in https://github.com/NixOS/nixpkgs/commit/ecbb9bad38cf3d293943cb9cebb84dce1fd0569823:39:06
5 Oct 2025
@pyrox:pyrox.devdish [Fox/It/She] fascinating as to why that's the case 00:04:14
@pyrox:pyrox.devdish [Fox/It/She]thanks00:04:15
@pyrox:pyrox.devdish [Fox/It/She]strange, appreciate the help!00:04:30
@pyrox:pyrox.devdish [Fox/It/She]but also it does make sense00:05:45
@pyrox:pyrox.devdish [Fox/It/She]* but also it does make sense >.>00:05:49
@pyrox:pyrox.devdish [Fox/It/She] Okay, confirmed that the new bootstrap chain fully builds. I'm going to push my changes as they stand right now as a PR, and start a new branch rebasing emily's changes from #260193 to my branch. 00:51:19

Show newer messages


Back to Room ListRoom Version: 9