!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

567 Members
123 Servers

Load older messages


SenderMessageTime
11 Jun 2021
@t_unix:matrix.orgt_unix joined the room.10:27:29
13 Jun 2021
@schnecfk:ruhr-uni-bochum.deCRTified joined the room.00:20:48
14 Jun 2021
@dandellion:dodsorf.asDandellion changed their profile picture.14:49:04
17 Jun 2021
@codygman:matrix.orgcodygman joined the room.19:06:24
22 Jun 2021
@js:ukvly.orgjulianst joined the room.11:50:26
26 Jun 2021
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:18:31
@grahamc:nixos.org@grahamc:nixos.org invited @mjolnir:nixos.orgmjolnir.01:23:51
@mjolnir:nixos.orgmjolnir joined the room.01:23:52
27 Jun 2021
@sandro:supersandro.deSandro joined the room.15:29:18
28 Jun 2021
@ar333:matrix.orgAren joined the room.03:58:52
@qyliss:fairydust.spaceAlyssa RossEricson2314: (or anybody else) have you ever successfully cross-compiled llvm_12?13:55:17
@sternenseemann:systemli.orgsterni (he/him)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't19:42:35
@rummik:matrix.org*Kim joined the room.11:13:23
@sternenseemann:systemli.orgsterni (he/him)most likely you need to set some stuff up in /proc to make qemu-user work properly19:42:50
@sternenseemann:systemli.orgsterni (he/him) 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.orgsterni (he/him)no, but the other llvm's work08:48:46
@sternenseemann:systemli.orgsterni (he/him)you 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 (he/him)
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.orgsterni (he/him)nativeBuildInputs 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.orgsterni (he/him)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
@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.orgsterni (he/him)we probably can't use pkg-config for llvm or we'll eventually run into bootstrapping problems on darwin?15:31:30

Show newer messages


Back to Room ListRoom Version: 6