!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

554 Members
119 Servers

Load older messages


SenderMessageTime
28 Jun 2021
@qyliss:fairydust.spaceAlyssa RossEricson2314: (or anybody else) have you ever successfully cross-compiled llvm_12?13:55:17
@sternenseemann:systemli.orgsterniso 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't19:42:35
@rummik:matrix.org*Kim joined the room.11:13:23
@sternenseemann:systemli.orgsternimost likely you need to set some stuff up in /proc to make qemu-user work properly19:42:50
@sternenseemann:systemli.orgsterni 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
@daniel573:matrix.orgDaniel Kahlenberg joined the room.07:52:42
@Ericson2314:matrix.orgJohn Ericson Alyssa Ross cross compiled the tools themselves? No 17:17:17
30 Jun 2021
@sternenseemann:systemli.orgsternino, but the other llvm's work08:48:46
@sternenseemann:systemli.orgsterniyou can cross compile llvm_11 still I'm pretty sure08:48:58
@siraben:matrix.orgsiraben joined the room.14:01:54
@qyliss:fairydust.spaceAlyssa RossWhat 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
@qyliss:fairydust.spaceAlyssa Rossputting the library in nativeBuildInputs doesn't work21:28:04
@js:ukvly.orgjulianst
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
@sternenseemann:systemli.orgsterni
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
@sternenseemann:systemli.orgsterninativeBuildInputs is roughly the same as depBuildHost, I think21:35:24
@js:ukvly.orgjulianstIt'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 manual21:36:24
@qyliss:fairydust.spaceAlyssa Rosswhoops, actually it does, my problem must be something else21:36:29
@sternenseemann:systemli.orgsterniokay 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
@qyliss:fairydust.spaceAlyssa Rossthe 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
@sternenseemann:systemli.orgsterniwe probably can't use pkg-config for llvm or we'll eventually run into bootstrapping problems on darwin?15:31:30
30 Jun 2021
@qyliss:fairydust.spaceAlyssa RossI'm pretty sure it's going to need an LLVM patch to fix :(21:47:58
1 Jul 2021
@sternenseemann:systemli.orgsterni 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
@qyliss:fairydust.spaceAlyssa RossI'd really appreciate any help anybody could give me figuring out this really hairy cross-compilation issue https://github.com/NixOS/nixpkgs/pull/12888814:27:58
@sternenseemann:systemli.orgsternibut no idea yet whether it'll just work with llvm 1216:06:21
@qyliss:fairydust.spaceAlyssa Ross(cross-compilation of anything graphical is currently blocked on this, because Mesa depends on LLVM 12)14:28:16
@sternenseemann:systemli.orgsterni(it doesn't)20:29:06
@qyliss:fairydust.spaceAlyssa Rossyeah I could get it to work fine outside of the LLVM derivation17:02:36
2 Jul 2021
@ius:nltrix.netius joined the room.19:00:09
3 Jul 2021
@sternenseemann:systemli.orgsterni 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
@sternenseemann:systemli.orgsternithere, ncurses is always a non native dependency09:44:11

Show newer messages


Back to Room ListRoom Version: 6