!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

230 Members
75 Servers

Load older messages


SenderMessageTime
10 Nov 2024
@trofi:matrix.orgtrofi bootstrap stages use gcc attribute, that is a wrapper (compared to gcc-unwrapped compiler without a wrapper). For example here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/linux/default.nix#L565 . Otherwise it should use default nixpkgs definition. 17:08:19
@emilazy:matrix.orgemily "otherwise" as in, for a "complete" Nixpkgs gcc should be the same as gcc13? 17:09:20
@emilazy:matrix.orgemilybecause that's not what I observed :(17:09:38
@trofi:matrix.orgtrofi "otherwise", as in in the previous bootstrap stages (there gcc usually comes as a prebuild from bootstrap-tools) 17:12:26
@emilazy:matrix.orgemilyright17:17:16
@emilazy:matrix.orgemily so I guess Alyssa's modifications need duplicating in both stdenv and gcc :/ 17:17:31
@emilazy:matrix.orgemilyat least they're only temporary17:17:37
@qyliss:fairydust.spaceAlyssa Ross

Is it that gccgcc13, or that gccstdenv.cc?

19:24:03
@qyliss:fairydust.spaceAlyssa RossI assume the latter?19:24:50
@qyliss:fairydust.spaceAlyssa Ross

If we just overrode the flags for stdenv.cc, that would mean packages already pinned to gcc13 don't have to worry about the flags, which might be nice?

19:25:15
@qyliss:fairydust.spaceAlyssa RossDoesn't matter too much either way though I think19:25:22
@emilazy:matrix.orgemilyno19:25:55
@emilazy:matrix.orgemilygcc = stdenv.cc ≠ gcc1319:26:00
@qyliss:fairydust.spaceAlyssa RossOh that's actually good then?19:26:07
@qyliss:fairydust.spaceAlyssa RossWe can leave gcc13 alone19:26:18
@emilazy:matrix.orgemily in that the override should just be in stdenv and nowhere else? 19:26:21
@qyliss:fairydust.spaceAlyssa RossYeah19:26:24
@emilazy:matrix.orgemily I guess so, but when I see gcc = pkgs.${"gcc${toString default-gcc-version}"} I'm not expecting the two to behave differently… 19:26:54
@qyliss:fairydust.spaceAlyssa RossRedacted or Malformed Event19:29:19
@trofi:matrix.orgtrofi I agree stdenv overlay is scary in that way and requires some time to get used to it. 21:28:29
@p14:matrix.orgp14It would be good to have a comment next to the gcc at least to point out that it is overlaid. Otherwise we get the confusing situation emily was in where it was necessary to first identify "this is not the gcc you are looking for" before you can even figure out any other issues.21:43:29
@emilazy:matrix.orgemily my mental model was always that only stdenv.* has weird overlay stuff once the bootstrap is complete 21:46:41
@emilazy:matrix.orgemilybut I guess that was all wrong21:46:45
11 Nov 2024
@carlocab:matrix.orgCarlo Cabrera joined the room.05:03:14
@trofi:matrix.orgtrofi

p14: gcc is not very special. Same goes for, say, glibc (or xz). glibc is even fancier, as it's built is even earlier than gcc:

nix-repl> [ stdenv lv.stdenv gcc.stdenv xz.stdenv glibc.stdenv perl.stdenv ]
[
  «derivation /nix/store/wzis3nzvh90z9jvdn0v3ixrl5qckla36-stdenv-linux.drv»
  «derivation /nix/store/wzis3nzvh90z9jvdn0v3ixrl5qckla36-stdenv-linux.drv»
  «derivation /nix/store/1glwz1vx32xnwc0xyg25qp8ykp4qgihn-bootstrap-stage4-stdenv-linux.drv»
  «derivation /nix/store/afsnvmh8hly6gqiam1rmnxqhm1zqxas2-bootstrap-stage4-stdenv-linux.drv»
  «derivation /nix/store/ivbchmrk6vr7dfg55w35h28535kmsbjz-bootstrap-stage2-stdenv-linux.drv»
  «repeated»
]
07:04:17
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
gcc = stdenv.cc ≠ gcc13
This was fixed for Darwin. Can it be fixed for Linux?
14:51:42
@reckenrode:matrix.orgRandy Eckenrode

On Darwin:

nix-repl> [ clang clang_16 llvmPackages.clang llvmPackages_16.clang stdenv.cc ]
[
  «derivation /nix/store/62sadwh9mwfgxmk6kx62yia20rd1j5w4-clang-wrapper-16.0.6.drv»
  «derivation /nix/store/62sadwh9mwfgxmk6kx62yia20rd1j5w4-clang-wrapper-16.0.6.drv»
  «derivation /nix/store/62sadwh9mwfgxmk6kx62yia20rd1j5w4-clang-wrapper-16.0.6.drv»
  «derivation /nix/store/62sadwh9mwfgxmk6kx62yia20rd1j5w4-clang-wrapper-16.0.6.drv»
  «derivation /nix/store/62sadwh9mwfgxmk6kx62yia20rd1j5w4-clang-wrapper-16.0.6.drv»
]
14:52:25
@emilazy:matrix.orgemilyI don't know anything about how the overlaying works, so maybe? :)14:52:48
@emilazy:matrix.orgemilyit'd make things more convenient for me at least14:52:52
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/blob/db2a0eaf13018f970376297fc53b4c41df5f193f/pkgs/stdenv/darwin/default.nix#L1268-L127714:53:41

Show newer messages


Back to Room ListRoom Version: 9