!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

228 Members
74 Servers

Load older messages


SenderMessageTime
14 Jul 2023
@p14:matrix.orgp14
In reply to @emilytrau:matrix.org
p14: i'm not sure but #exotic:nixos.org might have more active people who could help :)
Thanks!
11:18:59
@vcunat:matrix.orgvcunat
In reply to @p14:matrix.org

On aarch64-linux, pkgsCross.musl64.pkgsStatic.stdenv stopped being a cache hit sometime around the 26th of May. Sha eb5cd54d0 looks to be the first commit at which it is missing on the nixos-23.05 branch, but the non cross stdenv also broke/stopped being a cache hit then by the looks of things.

Does anyone have any idea why it might have gone missing and can we bring it back… ?

I would also like to have the equivalent, but from x86 to aarch64 cross.

Stable releases currently don't build these. Only nixpkgs master via https://hydra.nixos.org/jobset/nixpkgs/cross-trunk
14:35:29
@vcunat:matrix.orgvcunat(Even stable releases tend to get mass rebuilds every several weeks. Near start even sooner.)14:36:46
@p14:matrix.orgp14 Thank you! That was the missing piece of the puzzle. 14:40:18
@vcunat:matrix.orgvcunat

If there's consensus about this being useful (#cross-compiling:nixos.org I guess), I think it would be fine to have copies of that jobset, active for the currently supported stable branch(es). (I'm on build infra team; ping me to set it up.)

Though on a related note, it seemed like contents of the jobset would benefit from some redesign of content/policy.

14:47:15
16 Jul 2023
@tni:matrix.orgtni joined the room.19:12:03
17 Jul 2023
@trofi:matrix.orgtrofi left the room.06:10:28
22 Jul 2023
@p14:matrix.orgp14

I want to experiment with nixpkgs#pkgsStatic.stdenv.cc.cc, and to that end I'm dropping into a nix develop shell. Unfortunately, gcc has its own builder.sh, so genericBuild doesn't give me a build. And then, running the builder.sh also doesn't work.

genericBuild fails with Makefile:26: *** missing separator. Stop.
and running the builder.sh fails with unpacker appears to have produced no directories, even though it clearly does produce a gcc-12.2.0 directory.

So two questions:

  1. How do I develop nixpkgs#pkgsStatic.stdenv.cc.cc?
  2. How do I reproduce what nix build does, in a nix develop shell, in general? Why doesn't genericBuild or running the builder.sh work here?
10:25:17
@trofi:matrix.orgtrofi joined the room.12:40:25
@trofi:matrix.orgtrofi

As a workaround you can try staging version of it where builder.sh was removed: $ nix develop nixpkgs/staging#pkgsStatic.stdenv.cc.cc.

I think nix develop assumes that $drv.args is -e stdenv/generic/default-builder.sh and sources that. You might be able to sourcce it manually.

nix develop also uses nixpkgs#bashInteractive instead of drv's bash and does many other ad-hoc things: https://github.com/NixOS/nix/blob/master/src/nix/develop.cc#L484

17:34:17
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/24440018:35:28
23 Jul 2023
@emilytrau:matrix.orgemilytrauLooking for opinions and suggestions :) https://github.com/NixOS/nixpkgs/issues/24496604:02:41
@tni:matrix.orgtnican someone help review + merge https://github.com/NixOS/nixpkgs/pull/243595? I'm hoping it can make it into the next staging-next cycle22:28:47
25 Jul 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.01:57:09
27 Jul 2023
@ribosomerocker:matrix.orgribosomerocker joined the room.03:04:36
28 Jul 2023
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/24580701:30:28
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/24590917:42:51
30 Jul 2023
@trofi:matrix.orgtrofiAttempt to fix stomping of multiple parallel strips against the same file under multiple symlinks: https://github.com/NixOS/nixpkgs/pull/24616410:36:58
3 Aug 2023
@cafkafk:nixos.devChristina Sørensen joined the room.05:58:33
@artturin:matrix.orgArtturin

https://github.com/NixOS/nixpkgs/pull/238525

This change adds a flag to update shebang paths that point to the Nix store. This is particularly useful when a cross-compiled package uses same script at compile-time and run-time, but the interpreter must be changed since hostPlatform ≠ buildPlatform.

21:48:07
@raitobezarius:matrix.orgraitobezariusHello there, is there any doc on how to use a cross compiled bootstrap tool to replace the ones that nixpkgs bundles?22:31:44
6 Aug 2023
@vcunat:matrix.orgvcunathttps://github.com/NixOS/nixpkgs/pull/24747807:52:25
10 Aug 2023
@p14:matrix.orgp14 I want to try and debug the lack of an $AR variable set while building a package without incurring a full rebuild. Is there a good way to turn on tracing (set -x) while all the setup scripts run for nix develop? (context: https://github.com/NixOS/nixpkgs/pull/246577#issuecomment-1672980907) 10:44:44
@artturin:matrix.orgArtturin
In reply to @p14:matrix.org
I want to try and debug the lack of an $AR variable set while building a package without incurring a full rebuild. Is there a good way to turn on tracing (set -x) while all the setup scripts run for nix develop? (context: https://github.com/NixOS/nixpkgs/pull/246577#issuecomment-1672980907)
NIX_DEBUG is the variable used by setup.sh
10:52:12
@artturin:matrix.orgArtturinSet it to 610:52:17
@p14:matrix.orgp14Ah, thanks. I also managed to turn it on directly using preHook = "set -x" which revealed that: /nix/store/9kaazhysw3pmzlrslpb1nsgy97hq8hlm-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-15.0.7/nix-support/setup-hook is empty where /nix/store/kcc44cgi7bclnhgs66v50a1jhr6nsqy5-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-16.0.6/nix-support/setup-hook is 5 kiB10:52:50
@p14:matrix.orgp14and explains the missing $AR.10:53:00
@p14:matrix.orgp14 But the nix-diff of the llvm-binutils wrapper is pretty boring 10:53:40
@p14:matrix.orgp14uuuh, I turned on NIX_DEBUG and now 15.0.7's setup-hook is not empty. Nice..10:59:58
@p14:matrix.orgp14Oh dear. Turning on NIX_DEBUG for the binutils wrapper actually causes debug print output to end up in setup-hook.11:01:43

There are no newer messages yet.


Back to Room ListRoom Version: 9