| 15 Sep 2025 |
matthewcroughan | Trying staging | 19:43:33 |
matthewcroughan | Same there, is it another wno-error that needs to go atop pkgs/development/libraries/glibc/default.nix ? | 19:46:33 |
matthewcroughan | pkgs/development/libraries/glibc/default.nix
79: (lib.optional stdenv.hostPlatform.isMusl "-Wno-error=attribute-alias")
| 19:55:12 |
matthewcroughan | actually looks like it already should be | 19:55:17 |
matthewcroughan | so is something wrong with my hostPlatform Tristan Ross ? | 19:55:24 |
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 |