Sender | Message | Time |
---|---|---|
7 Dec 2024 | ||
Artturin | do git log -p -M --follow --stat -- lib/systems/parse.nix for how others have added them | 21:21:14 |
Artturin | example https://github.com/NixOS/nixpkgs/commit/4db467f7e921cfe26c499076ea23044bb8a60ad6#diff-f970a71ad61b6b3ee7cfb369f3de4324885ff93d8d7f6b28253b0a812c166b13R93 | 21:21:37 |
9 Dec 2024 | ||
otanaut joined the room. | 10:53:55 | |
otanaut | Hey everyone, I am setting up a remote builder VM in my Proxmox environment. The goal is to use this builder to compile x86_64 and aarch64 binaries, as my main system is an Apple Silicon Mac. (Hey, I heard virtualization while you virtualize the virtualizer.) The builder is up and running and doing its job. To compile aarch64 binaries, I configured boot.binfmt.emulatedSystems = [ "aarch64-linux" ] on the builder. Is there anything else I should consider or that you would recommend, as I am fairly new to the topic? Thank you! | 10:57:39 |
otanaut | In reply to@otanaut:matrix.orgThe builder is falling back to TCG to build the aarch64 binaries, not sure if that's "the best i get" or I am missing something. | 10:59:10 |
p14 | Artturin: I was hoping I might be able to get a libcxxClang package set by doing However this blows up deep in splicing on pkgsTargetTarget. Do you happen to know if there are any threads I can pull on here to make this work? | 22:05:41 |
p14 | * Artturin: I was hoping I might be able to get a libcxxClang package set by doing However this blows up deep in splicing on pkgsTargetTarget (infinite recursion). Do you happen to know if there are any threads I can pull on here to make this work? | 22:06:37 |
p14 | * Artturin: I was hoping I might be able to get a libcxxClang package set by doing However this blows up deep in splicing on pkgsTargetTarget (infinite recursion). Do you happen to know if there are any threads I can pull on here to make this work? | 22:13:42 |
p14 | Clearly there is pkgsLLVM, but I'm thinking about pkgsClang (but with libstd++) here. | 22:13:50 |
p14 | Ah, apologies for the unnecesssary ping; I think if you make a stdenv with buildPackages.overrideCC baseStdenv buildPackages.llvmPackages.libstdcxxClang , it actually works! My error was to try and use libcxxClang , this one goes into infinite recursion, but a least that can be fixed by doing crossSystem = { useLLVM = true; } . | 22:17:53 |
11 Dec 2024 | ||
marijan changed their profile picture. | 14:20:37 | |
tpool joined the room. | 16:37:58 | |
tpool | Would somebody be willing to explain how to use pkgsLLVM to me? My goal is to cross compile using clang, and I know that pkgsLLVM is key, but can't really see how to use it. Additionally, to select the CPU and FPU, do I pass config = { mcpu = "<cpu>"; mfpu = "<fpu>"; }; respectively? Sorry if this is a noob question! | 16:40:15 |
tpool | * Would somebody be willing to explain how to use Moreover, is there a way to set | 16:42:47 |
tpool | * Would somebody be willing to explain how to use Moreover, is there a way to set | 16:43:34 |
symphorien | about sysroot, I think nixpkgs cross infra will only work with nixpkgs compilers. using stuff compiled outside nix will not fare well. | 17:30:08 |
Artturin | In reply to @tpool:matrix.org Import nixpkgs with
| 17:35:37 |
Artturin | https://github.com/NixOS/nixpkgs/blob/7ea7a19b2d52f2cbbf066d397c434f5478512352/pkgs/build-support/cc-wrapper/default.nix#L256-L270 | 17:36:05 |
Artturin | used for clang too | 17:36:07 |
Artturin | In reply to @tpool:matrix.org* Import nixpkgs with
| 17:36:47 |
Artturin | For sysroot feel free to try it manually first and if it works manually then override the cc-wrapper to add it to one of the files in nix-support | 17:44:08 |
Artturin | You'll probably need to use autpatchelfHook to have a chance of it working | 18:00:02 |
kat ⛧ they/them joined the room. | 19:24:51 | |
12 Dec 2024 | ||
Tristan Ross | I've been meaning to improve that with my CPU model PR that's been sitting all year lol. | 07:05:49 |
Martin Häcker joined the room. | 18:21:54 | |
Martin Häcker | Hi there, I’m trying to understand why nix has cross compilation packages cached for cross compilation from darwin-x86 but not for darwin-arm? It would seem that darwin-arm has become the much more used plattform in the last few years? | 18:23:04 |
K900 | Uhh, what packages | 18:32:22 |
K900 | And to what target | 18:32:30 |
Martin Häcker | So this expression is really slow, because it tries to build all of the dependencies:
| 18:43:18 |
Martin Häcker | To my understanding this is because the cross compilation packages are not cached (on hydra?) | 18:45:13 |