| 15 Sep 2025 |
Tristan Ross | I'm not sure | 19:56:43 |
matthewcroughan | I guess (lib.systems.elaborate "aarch64-linux") is somehow making the isMusl set to false | 19:57:25 |
matthewcroughan | In which case, reverting to the legacy method seems better | 19:57:56 |
matthewcroughan |
| 19:57:57 |
matthewcroughan | * nixpkgs.localSystem = {
system = "aarch64-unknown-linux-gnu";
};
nixpkgs.crossSystem = {
config = "aarch64-unknown-linux-musl";
useLLVM = true;
linker = "lld";
};
``
| 19:58:00 |
matthewcroughan | * nixpkgs.localSystem = {
system = "aarch64-unknown-linux-gnu";
};
nixpkgs.crossSystem = {
config = "aarch64-unknown-linux-musl";
useLLVM = true;
linker = "lld";
};
| 19:58:05 |
matthewcroughan | And in that setup, I get the relocation issue | 19:58:21 |
matthewcroughan | Tristan Ross: in pkgsLLVM.pkgsMusl.buildPlatform the linker is linker = "bfd"; | 20:07:15 |
matthewcroughan | pkgsLLVM.buildPlatform's linker is also bfd | 20:07:36 |
Tristan Ross | Yes, that's right | 20:07:43 |
Tristan Ross | That's the default on GNU | 20:07:50 |
matthewcroughan | nix-repl> pkgsLLVM.pkgsMusl.hostPlatform.linker
"bfd"
| 20:07:58 |
Tristan Ross | nix-repl> legacyPackages.aarch64-linux.hostPlatform.linker
"bfd"
| 20:08:02 |
matthewcroughan | and is that also correct? | 20:08:02 |
matthewcroughan |
nix-repl> pkgsLLVM.hostPlatform.linker
"lld"
nix-repl> pkgsLLVM.pkgsMusl.hostPlatform.linker
"bfd"
| 20:08:17 |
Tristan Ross | Right eval, wrong order | 20:08:18 |
matthewcroughan | * nix-repl> pkgsLLVM.hostPlatform.linker
"lld"
nix-repl> pkgsLLVM.pkgsMusl.hostPlatform.linker
"bfd"
| 20:08:23 |
Tristan Ross | pkgsMusl.pkgsLLVM | 20:08:30 |
matthewcroughan | Ah.. I see | 20:08:35 |
Tristan Ross | It's the // problem | 20:08:43 |
matthewcroughan | well that's why it builds then I guess | 20:08:52 |
matthewcroughan | I got the order wrong | 20:08:56 |
matthewcroughan | nix build nixpkgs#pkgsMusl.pkgsLLVM.netbsd.getent should fail | 20:09:20 |
matthewcroughan | Tristan Ross: actually pkgsMusl.pkgsLLVM sets the buildPlatform to musl | 20:17:20 |
Tristan Ross | Huh | 20:17:33 |
matthewcroughan | nix build github:nixos/nixpkgs/staging-next#pkgsMusl.pkgsLLVM.netbsd.getent | 20:17:54 |
matthewcroughan | yes, this fails in the same way | 20:17:57 |
matthewcroughan | So that's your reproducer | 20:18:44 |
matthewcroughan | Even when I set the buildPlatform to musl, it fails in the same way | 20:25:06 |
matthewcroughan | it only worked when I got the order wrong then, that's all | 20:25:19 |