!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

552 Members
117 Servers

Load older messages


SenderMessageTime
15 Sep 2025
@rosscomputerguy:matrix.orgTristan RossI'm not sure19:56:43
@matthewcroughan:defenestrate.itmatthewcroughan I guess (lib.systems.elaborate "aarch64-linux") is somehow making the isMusl set to false 19:57:25
@matthewcroughan:defenestrate.itmatthewcroughanIn which case, reverting to the legacy method seems better19:57:56
@matthewcroughan:defenestrate.itmatthewcroughan
19:57:57
@matthewcroughan:defenestrate.itmatthewcroughan *
  nixpkgs.localSystem = {
    system = "aarch64-unknown-linux-gnu";
  };
  nixpkgs.crossSystem = {
    config = "aarch64-unknown-linux-musl";
    useLLVM = true;
    linker = "lld";
  };

``
19:58:00
@matthewcroughan:defenestrate.itmatthewcroughan *
  nixpkgs.localSystem = {
    system = "aarch64-unknown-linux-gnu";
  };
  nixpkgs.crossSystem = {
    config = "aarch64-unknown-linux-musl";
    useLLVM = true;
    linker = "lld";
  };
19:58:05
@matthewcroughan:defenestrate.itmatthewcroughanAnd in that setup, I get the relocation issue19:58:21
@matthewcroughan:defenestrate.itmatthewcroughan Tristan Ross: in pkgsLLVM.pkgsMusl.buildPlatform the linker is linker = "bfd"; 20:07:15
@matthewcroughan:defenestrate.itmatthewcroughan 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
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.itmatthewcroughanand is that also correct?20:08:02
@matthewcroughan:defenestrate.itmatthewcroughan

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 *
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.itmatthewcroughanAh.. I see20:08:35
@rosscomputerguy:matrix.orgTristan Ross It's the // problem 20:08:43
@matthewcroughan:defenestrate.itmatthewcroughanwell that's why it builds then I guess20:08:52
@matthewcroughan:defenestrate.itmatthewcroughanI got the order wrong20:08:56
@matthewcroughan:defenestrate.itmatthewcroughan nix build nixpkgs#pkgsMusl.pkgsLLVM.netbsd.getent should fail 20:09:20
@matthewcroughan:defenestrate.itmatthewcroughan Tristan Ross: actually pkgsMusl.pkgsLLVM sets the buildPlatform to musl 20:17:20
@rosscomputerguy:matrix.orgTristan RossHuh20:17:33
@matthewcroughan:defenestrate.itmatthewcroughan nix build github:nixos/nixpkgs/staging-next#pkgsMusl.pkgsLLVM.netbsd.getent 20:17:54
@matthewcroughan:defenestrate.itmatthewcroughanyes, this fails in the same way20:17:57
@matthewcroughan:defenestrate.itmatthewcroughanSo that's your reproducer20:18:44
@matthewcroughan:defenestrate.itmatthewcroughanEven when I set the buildPlatform to musl, it fails in the same way20:25:06
@matthewcroughan:defenestrate.itmatthewcroughanit only worked when I got the order wrong then, that's all20:25:19

Show newer messages


Back to Room ListRoom Version: 6