!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

228 Members
74 Servers

Load older messages


SenderMessageTime
1 Feb 2023
@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
@winterqt:nixos.devWinter (she/her)no way this is the reason ๐Ÿคจ22:23:36
@winterqt:nixos.devWinter (she/her)guess i'll have to build rustc to test this properly, sigh22:28:01
@winterqt:nixos.devWinter (she/her)

one rustc later:

./result/bin/clippy-driver:
    @rpath/librustc_driver-462408defaa2092e.dylib (compatibility version 0.0.0, current version 0.0.0)
    @rpath/libstd-1419ef55ae659654.dylib (compatibility version 0.0.0, current version 0.0.0)

๐Ÿ™

22:58:57
@winterqt:nixos.devWinter (she/her)there is literally no difference between these libraries and e.g. zlib in this context23:00:55
@winterqt:nixos.devWinter (she/her)so i have no clue what's wrong23:01:02
@winterqt:nixos.devWinter (she/her)guess i'm looking at cctools code23:08:05
@winterqt:nixos.devWinter (she/her)sigh23:08:08
@winterqt:nixos.devWinter (she/her)this can only go well23:08:18
18 Feb 2023
@winterqt:nixos.devWinter (she/her)update: it was the macho header01:07:32
@trofi:matrix.orgtrofiI must say I am very confused by your updates. Did you post a link to the original bug you investigate?08:32:11

Show newer messages


Back to Room ListRoom Version: 9