| 28 Jun 2021 |
Alyssa Ross | Ericson2314: (or anybody else) have you ever successfully cross-compiled llvm_12? | 13:55:17 |
sterni | so alpine person told me that they compile riscv64 stuff using qemu-user (natively), so they seem to know something about binfmt_misc settings we don't | 19:42:35 |
| *Kim joined the room. | 11:13:23 |
sterni | most likely you need to set some stuff up in /proc to make qemu-user work properly | 19:42:50 |
sterni | which would be a shame because it means that the build system's settings would affect stdenv.hostPlatform.emulator | 19:43:31 |
| 29 Jun 2021 |
| Daniel Kahlenberg joined the room. | 07:52:42 |
John Ericson | Alyssa Ross cross compiled the tools themselves? No | 17:17:17 |
| 30 Jun 2021 |
sterni | no, but the other llvm's work | 08:48:46 |
sterni | you can cross compile llvm_11 still I'm pretty sure | 08:48:58 |
| siraben joined the room. | 14:01:54 |
Alyssa Ross | What do I do when I have a build that needs to build a program for the build system as part of cross compiling, and that program has to link with a library | 21:27:56 |
Alyssa Ross | putting the library in nativeBuildInputs doesn't work | 21:28:04 |
julianst | In reply to @qyliss:fairydust.space What do I do when I have a build that needs to build a program for the build system as part of cross compiling, and that program has to link with a library I think domen's cross compilation tutorial had something about it. Did you check it out on nix.dev? | 21:34:11 |
sterni | In reply to @qyliss:fairydust.space What do I do when I have a build that needs to build a program for the build system as part of cross compiling, and that program has to link with a library depsBuildBuild | 21:34:43 |
sterni | nativeBuildInputs is roughly the same as depBuildHost, I think | 21:35:24 |
julianst | It's '9.2.3.3. What if my package’s build system needs to build a C program to be run under the build environment?' in the nixpkgs manual | 21:36:24 |
Alyssa Ross | whoops, actually it does, my problem must be something else | 21:36:29 |
sterni | okay you actually can have the library in nativeBuildInputs (since the target doesn't matter), but it's improtant that all extra tools like pkg-config are in depsBuildBuild (so you'll get $PKG_CONFIG_FOR_BUILD and $PKG_CONFIG_PATH_FOR_BUILD etc.) | 21:42:54 |
Alyssa Ross | the actual problem I have is that LLVM tries to link against a host ncurses for llvm-config (which is a program built for the build system) | 21:47:46 |
| 1 Jul 2021 |
sterni | we probably can't use pkg-config for llvm or we'll eventually run into bootstrapping problems on darwin? | 15:31:30 |
| 30 Jun 2021 |
Alyssa Ross | I'm pretty sure it's going to need an LLVM patch to fix :( | 21:47:58 |
| 1 Jul 2021 |
sterni | Alyssa Ross: when I add buildPackages.stdenv.cc and ncurses to depsBuildBuild $CC_FOR_BUILD … -ltinfo seems to do what its supposed to | 16:02:12 |
Alyssa Ross | I'd really appreciate any help anybody could give me figuring out this really hairy cross-compilation issue https://github.com/NixOS/nixpkgs/pull/128888 | 14:27:58 |
sterni | but no idea yet whether it'll just work with llvm 12 | 16:06:21 |
Alyssa Ross | (cross-compilation of anything graphical is currently blocked on this, because Mesa depends on LLVM 12) | 14:28:16 |
sterni | (it doesn't) | 20:29:06 |
Alyssa Ross | yeah I could get it to work fine outside of the LLVM derivation | 17:02:36 |
| 2 Jul 2021 |
| ius joined the room. | 19:00:09 |
| 3 Jul 2021 |
sterni | Alyssa Ross: do you know if only with 12 llvm started to link against ncurses for llvm-config? because I don't see why it would work with the prior versions | 09:44:00 |
sterni | there, ncurses is always a non native dependency | 09:44:11 |