12 May 2024 |
John Ericson | $ nix-shell -A pkgsCross.x86_64-openbsd.llvmPackages_17.libcxx --show-trace --keep-failed
[nix-shell:~/src/nixpkgs-master]$ $CC --rtlib=compiler-rt -print-libgcc-file-name
/usr/lib/libcompiler_rt.a
$ nix-shell -A pkgsCross.x86_64-freebsd.llvmPackages_17.libcxx --show-trace --keep-failed
[nix-shell:~/src/nixpkgs-master]$ $CC --rtlib=compiler-rt -print-libgcc-file-name
/nix/store/kgddmyqsak19cx54lwcj7l10b109gxgs-x86_64-unknown-freebsd-clang-wrapper-17.0.6/resource-root/lib/freebsd/libclang_rt.builtins-x86_64.a
| 04:45:28 |
John Ericson | pop quiz: why are these different? | 04:45:34 |
John Ericson | Answer: OpenBSD::getCompilerRT in clang/lib/Driver/ToolChains/OpenBSD.cpp | 04:46:03 |
John Ericson | LLVM doing per distro hacks coded as per target is so frustrating/dissapointing | 04:46:42 |
| aliabrar joined the room. | 04:47:03 |
John Ericson | everyone hacking around everyone else's ideosyncrasies is not how we make the world simpler and nicer | 04:47:42 |
John Ericson | * everyone hacking around everyone else's ideosyncrasies with more ad-hoc special cases is not how we make the world simpler and nicer | 04:47:51 |
trofi | but it's not a libgcc file! :) | 13:55:21 |
13 May 2024 |
Mic92 | How can I build a nix-shell that can run on the hostplatform, but is cross compiled? | 16:07:25 |
Mic92 | let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/af8b9db5c00f1a8e4b83578acc578ff7d823b786.tar.gz"; # nixpkgs-unstable
pkgs = import nixpkgs { crossSystem = { config = "riscv64-unknown-linux-musl"; }; };
in
pkgs.pkgsHostTarget.mkShell.override { stdenv = pkgs.pkgsHostTarget.clangStdenv; } {
packages = [];
}
| 16:07:26 |
Mic92 | That still seems to give me the build platform? | 16:07:43 |
Mic92 | Looks like I can just "cross-compile" on the same architecture. | 16:14:04 |
Alyssa Ross | you should get that by default | 16:17:09 |
14 May 2024 |
| chrillefkrr joined the room. | 15:41:55 |
15 May 2024 |
Sam Lehman | Has anyone build Rust crates (or any Nix package) for the Nintendo Switch? | 21:34:14 |
16 May 2024 |
John Ericson | Alyssa Ross: Think we've got everything you mentioned for https://github.com/NixOS/nixpkgs/pull/311836 ! | 16:05:14 |
John Ericson | truth be told, we're still trying to get something that OpenBSD actually runs | 16:05:30 |
John Ericson | but I think it is good to merge now, anyways | 16:06:00 |
John Ericson | (good basis for collaboration, good to get the small generalizations that impact the other BSDs in) | 16:06:36 |
Alyssa Ross | Yeah makes sense | 18:30:46 |
Alyssa Ross | Might not be able to look again tonight, but it was a nice easy review last time so I should get to it soon. | 18:31:32 |
19 May 2024 |
| KFears (tragedy arc) changed their display name from KFears (filler human) to KFears (tragedy arc). | 13:39:41 |
20 May 2024 |
| mei 🌒& changed their display name from ckie (they/them) to mei 🌒&. | 00:09:47 |
22 May 2024 |
| mjolnirchanged room power levels. | 15:26:01 |
| mjolnirchanged room power levels. | 15:28:14 |
23 May 2024 |
| lazycaaat joined the room. | 10:58:57 |
24 May 2024 |
| @lotte:chir.rs changed their profile picture. | 06:21:21 |
| meet left the room. | 06:41:55 |
John Ericson | Alyssa Ross: thanks for the help, we did finally get fetchCVS working for https://github.com/NixOS/nixpkgs/pull/311836, hopefully it is all good now! | 21:14:37 |
John Ericson | and then need to work on static linking | 21:14:45 |