Nix Cross Compiling | 576 Members | |
| 128 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Dec 2024 | ||
| * Would somebody be willing to explain how to use Moreover, is there a way to set | 16:43:34 | |
| 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 | |
In reply to @tpool:matrix.org Import nixpkgs with
| 17:35:37 | |
| https://github.com/NixOS/nixpkgs/blob/7ea7a19b2d52f2cbbf066d397c434f5478512352/pkgs/build-support/cc-wrapper/default.nix#L256-L270 | 17:36:05 | |
| used for clang too | 17:36:07 | |
In reply to @tpool:matrix.org* Import nixpkgs with
| 17:36:47 | |
| 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 | |
You'll probably need to use autpatchelfHook to have a chance of it working | 18:00:02 | |
| 19:24:51 | ||
| 12 Dec 2024 | ||
| I've been meaning to improve that with my CPU model PR that's been sitting all year lol. | 07:05:49 | |
| 18:21:54 | ||
| 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 | |
| Uhh, what packages | 18:32:22 | |
| And to what target | 18:32:30 | |
| So this expression is really slow, because it tries to build all of the dependencies:
| 18:43:18 | |
| To my understanding this is because the cross compilation packages are not cached (on hydra?) | 18:45:13 | |
| You're trying to cross-compile Linux from Darwin? | 18:45:15 | |
| Yeah not happening | 18:45:18 | |
| Not x86, not aarch64, not anything | 18:45:25 | |
| Run a Linux VM | 18:45:29 | |
| I'm currently trying to understand how I did this yesterday, but I seem to remembering that cross compiling from darwin-x86 to raspi the same way was much faster because many packages where cached. | 18:46:25 | |
| Uhh | 18:46:50 | |
| Definitely not the case | 18:46:53 | |
| We barely have cross things cached for x86_64-linux to aarch64-linu | 18:47:04 | |
| * We barely have cross things cached for x86_64-linux to aarch64-linux | 18:47:05 | |
| And you're doing aarch64-darwin to ... armv6l? | 18:47:16 | |
| Well, I'm working through the nixpkgs tutorial and am currently at the cross compilation chapter. | 18:47:46 | |
| Uhh | 18:47:54 | |
| We should probably have it not say that | 18:48:09 | |
| Or tell you to cross-compile to the other variant of your existing target | 18:48:30 | |