!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

556 Members
119 Servers

Load older messages


SenderMessageTime
17 Oct 2021
@trofi:matrix.orgtrofiWas about to ask why those don't get passed unconditionall, but the TODO is already there :) https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/make-derivation.nix#L58-L6114:33:15
@mars:jupiterbroadcasting.commars joined the room.19:03:15
18 Oct 2021
@trofi:matrix.orgtrofi

I'd like to update locally a bootstrap binary tarball for musl (to make pkgsMusl use current versions of musl & co.). Can I do it from a glibc system?

I tried as nix build -f pkgs/stdenv/linux/make-bootstrap-tools.nix --arg localSystem '{ config = "x86_64-unknown-linux-gnu"; libc = "musl"; }', but it seems to pass --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu to bison.

06:58:28
@trofi:matrix.orgtrofi Gah, I forgot to fix actual tuple /o. nix build -f pkgs/stdenv/linux/make-bootstrap-tools.nix --arg localSystem '{ config = "x86_64-unknown-linux-musl"; libc = "musl"; }' seems to do the trick. Is it how original tarballs are (or should be) generated? 07:10:41
@trofi:matrix.orgtrofiOne step deeper into bison's failure on musl: https://github.com/NixOS/nixpkgs/issues/14206608:43:38
@trofi:matrix.orgtrofiWhich include order is correct?08:43:55
@joe:monoid.aljoe left the room.11:46:27
20 Oct 2021
@rick:matrix.ciphernetics.nlRick (Mindavi)Hmm, librsvg cross-compiling broke again since they added rsvg-convert -- it fails with a linker error after a lengthy build :(16:48:09
@phaer:matrix.orgphaer joined the room.21:01:34
@phaer:matrix.orgphaer left the room.21:01:40
@sternenseemann:systemli.orgsterniis there a reliable way to distinguish between a tuple and triple when parsing a platform specification?21:13:43
@sternenseemann:systemli.orgsterni the problem is that you can't just split on - and count the parts 21:14:07
@sternenseemann:systemli.orgsterni because of stuff like armv7a-linux-androideabi 21:14:21
@sternenseemann:systemli.orgsterni can't we just get rid of the nix system tuple and lib.platforms :| 21:14:56
@qyliss:fairydust.spaceAlyssa Rossdoesn't make them any easier to parse, unless you're proposing also switching from GNU to LLVM triples21:15:34
@qyliss:fairydust.spaceAlyssa Rosssternenseemann: what are you trying to do?21:16:18
@sternenseemann:systemli.orgsterniI'm trying to refactor some code in cabal2nix21:16:56
@sternenseemann:systemli.orgsterniand there is a flag where you can pass either a tuple or a LLVM triple21:17:08
@sternenseemann:systemli.orgsterniSo I thought I'd be strict about the tuple and otherwise fall back to cabal's triple parsing code21:17:31
@sternenseemann:systemli.orgsternibut that doesn't work if the kernel part has a dash21:17:42
@sternenseemann:systemli.orgsterniI want to avoid actually checking against a list 21:17:55
@sternenseemann:systemli.orgsterniand the problem is cabal also doesn't do that21:18:20
@qyliss:fairydust.spaceAlyssa Rossyou could use mkSystemFromString, but that would only work if it was a double or a GNU triple I think21:18:51
@sternenseemann:systemli.orgsternidon't want to call nix from haskell for this21:19:10
@qyliss:fairydust.spaceAlyssa Rossoh i see21:19:20
@sternenseemann:systemli.orgsternineeds to work in ifd for example21:19:20
@qyliss:fairydust.spaceAlyssa Rossis armv7a-linux-androideabi really a Nix double?21:19:52
@sternenseemann:systemli.orgsterniand reimplementing it won't work because it checks against a list of known kernels and arches right?21:19:56
@qyliss:fairydust.spaceAlyssa Rossyes21:20:03
@sternenseemann:systemli.orgsterni lib.systems.elaborate parsed it correctly 21:20:18

There are no newer messages yet.


Back to Room ListRoom Version: 6