!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

567 Members
123 Servers

Load older messages


SenderMessageTime
15 Sep 2025
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) *
  nixpkgs.localSystem = {
    system = "aarch64-unknown-linux-gnu";
  };
  nixpkgs.crossSystem = {
    config = "aarch64-unknown-linux-musl";
    useLLVM = true;
    linker = "lld";
  };

``
19:58:00
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) *
  nixpkgs.localSystem = {
    system = "aarch64-unknown-linux-gnu";
  };
  nixpkgs.crossSystem = {
    config = "aarch64-unknown-linux-musl";
    useLLVM = true;
    linker = "lld";
  };
19:58:05
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)And in that setup, I get the relocation issue19:58:21
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) Tristan Ross: in pkgsLLVM.pkgsMusl.buildPlatform the linker is linker = "bfd"; 20:07:15
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) pkgsLLVM.buildPlatform's linker is also bfd 20:07:36
@rosscomputerguy:matrix.orgTristan RossYes, that's right20:07:43
@rosscomputerguy:matrix.orgTristan RossThat's the default on GNU20:07:50
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)
nix-repl> pkgsLLVM.pkgsMusl.hostPlatform.linker 
"bfd"
20:07:58
@rosscomputerguy:matrix.orgTristan Ross
nix-repl> legacyPackages.aarch64-linux.hostPlatform.linker
"bfd"
20:08:02
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)and is that also correct?20:08:02
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)

nix-repl> pkgsLLVM.hostPlatform.linker
"lld"

nix-repl> pkgsLLVM.pkgsMusl.hostPlatform.linker 
"bfd"
20:08:17
@rosscomputerguy:matrix.orgTristan RossRight eval, wrong order20:08:18
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) *
nix-repl> pkgsLLVM.hostPlatform.linker
"lld"

nix-repl> pkgsLLVM.pkgsMusl.hostPlatform.linker 
"bfd"
20:08:23
@rosscomputerguy:matrix.orgTristan Ross pkgsMusl.pkgsLLVM 20:08:30
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Ah.. I see20:08:35
@rosscomputerguy:matrix.orgTristan Ross It's the // problem 20:08:43
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)well that's why it builds then I guess20:08:52
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I got the order wrong20:08:56
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) nix build nixpkgs#pkgsMusl.pkgsLLVM.netbsd.getent should fail 20:09:20
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) Tristan Ross: actually pkgsMusl.pkgsLLVM sets the buildPlatform to musl 20:17:20
@rosscomputerguy:matrix.orgTristan RossHuh20:17:33
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) nix build github:nixos/nixpkgs/staging-next#pkgsMusl.pkgsLLVM.netbsd.getent 20:17:54
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)yes, this fails in the same way20:17:57
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)So that's your reproducer20:18:44
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)Even when I set the buildPlatform to musl, it fails in the same way20:25:06
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)it only worked when I got the order wrong then, that's all20:25:19
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)so that derivation just doesn't build for musl atm20:25:24
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)* so that derivation just doesn't build for musl + llvm atm20:25:41
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)I cannot get it to stop stripping21:02:33
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192)dontStrip has no impact on the netbsd derivations21:02:38

Show newer messages


Back to Room ListRoom Version: 6