!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

229 Members
74 Servers

Load older messages


SenderMessageTime
31 Jan 2023
@winterqt:nixos.devWinter (she/her) trofi: did you ever look into #209271? don't wanna duplicate work :) 19:27:56
@trofi:matrix.orgtrofi
In reply to @winterqt:nixos.dev
trofi: did you ever look into #209271? don't wanna duplicate work :)
Nope, did not get to it, sorry. Don't plan to in nearest time.
19:34:11
@winterqt:nixos.devWinter (she/her)
In reply to @trofi:matrix.org
Nope, did not get to it, sorry. Don't plan to in nearest time.
I'll try to then, thanks. Not really sure where to begin... but I'll try.
19:34:36
@winterqt:nixos.devWinter (she/her)Any tips off the top of your head are appreciated :)19:34:49
@trofi:matrix.orgtrofi comparing build.log and config.log might be clear enough to diff and reason why extra depends are pulled in. i suspect there is an undeclared dependency that slips in. 19:36:13
@trofi:matrix.orgtrofi * comparing build.log and config.log (before and after PR) might be clear enough to diff and reason why extra depends are pulled in. i suspect there is an undeclared dependency that slips in. 19:36:33
@winterqt:nixos.devWinter (she/her)
In reply to @trofi:matrix.org
comparing build.log and config.log (before and after PR) might be clear enough to diff and reason why extra depends are pulled in. i suspect there is an undeclared dependency that slips in.
as in from a nix-shell? also how would it slip in, is this common? (maybe just propagation? or what)
19:40:17
@winterqt:nixos.devWinter (she/her)(or just cat them in the build or something?)19:42:57
1 Feb 2023
@trofi:matrix.orgtrofiI would to 'nix build' / 'nix log'. Not sure how it slips in. Could it be that darwin's sandbox leaks system depends? Or maybe gettext() pulls in external things in non-glibc/musl?00:30:48
@winterqt:nixos.devWinter (she/her)
In reply to @trofi:matrix.org
I would to 'nix build' / 'nix log'. Not sure how it slips in. Could it be that darwin's sandbox leaks system depends? Or maybe gettext() pulls in external things in non-glibc/musl?
so i'd add cat build.log and config.log somewhere in the build and compare, or is there a better way?
20:11:03
@trofi:matrix.orgtrofi Adding cat sounds reasonable. 20:11:56
3 Feb 2023
@vcunat:matrix.orgvcunataarch64-linux gcc bootstrap: https://github.com/NixOS/nixpkgs/pull/207135#issuecomment-141589617213:51:37
* @trofi:matrix.orgtrofi hereby ups a thumb14:14:23
17 Feb 2023
@winterqt:nixos.devWinter (she/her)how do RPATH values get set for cc-wrapper users? I can't find any occurrences of _addRpathPrefix that actually use the buildInputs18:38:35
@winterqt:nixos.devWinter (she/her)Or am I horribly misunderstanding linking 😖18:38:53
@winterqt:nixos.devWinter (she/her)oh NIX_DONT_SET_RPATH18:39:45
@winterqt:nixos.devWinter (she/her)i see18:39:47
@trofi:matrix.orgtrofirpaths are set in ld-wrapper.19:17:45
@trofi:matrix.orgtrofi extraAfter+=(-rpath "$dir") 19:18:35
@winterqt:nixos.devWinter (she/her)
In reply to @winterqt:nixos.dev
oh NIX_DONT_SET_RPATH
yeah, figured it out ^
19:45:29
@winterqt:nixos.devWinter (she/her)thanks :)19:46:14
@winterqt:nixos.devWinter (she/her)something isn't working on only darwin and i don't know why19:46:23
@winterqt:nixos.devWinter (she/her)so i'm gonna look into that19:46:31
@winterqt:nixos.devWinter (she/her)

@trofi: so I just realized that RPATHs aren't set on Darwin. how do the macho binaries get the absolute paths to libraries? 🤔

linker/wrapper args don't show anything useful, and i don't see any fixup hook that does it (as i confirmed by setting dontFixup)

21:57:50
@winterqt:nixos.devWinter (she/her) oh, -isystem, riiight 22:16:11
@winterqt:nixos.devWinter (she/her)oh, no, that's for include paths...22:18:01
@winterqt:nixos.devWinter (she/her)
  -L/nix/store/6yl1211hawn5zmxg1cbp1miiq2h0kr7x-rustc-1.67.0/lib
  -lrustc_driver-462408defaa2092e
  -lstd-1419ef55ae659654

linker is being passed this, where /nix/store/6yl1211hawn5zmxg1cbp1miiq2h0kr7x-rustc-1.67.0/lib/librustc_driver-462408defaa2092e.dylib exists, but it's refusing to use the absolute path, and i have no clue why. it works fine for e.g. libLLVM and zlib in the same binary, though.

22:20:19
@winterqt:nixos.devWinter (she/her) (it just uses @rpath/librustc_driver-462408defaa2092e.dylib, and I cannot for the life of me figure out why. all of the flags are fine.) 22:21:08
@winterqt:nixos.devWinter (she/her)
-L/nix/store/p0zl4f4wxr9sas3890mps2bsnr0wnb73-zlib-1.2.13/lib
-lz

this exact same invocation works fine!

22:22:13
@winterqt:nixos.devWinter (she/her)gonna try a weird hack22:23:28

Show newer messages


Back to Room ListRoom Version: 9