!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

532 Members
110 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughanAh okay, so ls17:39:27
@matthewcroughan:defenestrate.itmatthewcroughan* Ah okay, so is that not equivalent to "the perl stdenv" ?17:39:37
@matthewcroughan:defenestrate.itmatthewcroughan Is (buildPerlPackage {}).stdenv equivalent to the normal stdenv? 17:40:19
@qyliss:fairydust.spaceAlyssa Rossyes17:40:22
@qyliss:fairydust.spaceAlyssa RossI'm pretty sure this is it https://github.com/NixOS/nixpkgs/blob/fc4041932ec2f3ad8d59a6d57a8a89f700084fff/pkgs/development/perl-modules/generic/default.nix#L6317:41:50
@qyliss:fairydust.spaceAlyssa Ross if it's canExecute cross, it uses the build platform's perl, which in this case has glibc-specifics baked into it 17:42:26
@emilazy:matrix.orgemilyit's the same either way, just mini vs. not, right?17:44:42
@emilazy:matrix.orgemilybut very plausible it'll be invoking the wrong one17:44:51
@qyliss:fairydust.spaceAlyssa RossIt's splicing17:46:09
@qyliss:fairydust.spaceAlyssa Rosswe don't actually want spliced pkgsBuildHost.perl here17:46:17
@qyliss:fairydust.spaceAlyssa Rossbecause that's the glibc one17:47:07
@qyliss:fairydust.spaceAlyssa Ross since we know canExecute is true, I think we want pkgsHostTarget.perl, which will have the constants right 17:47:24
@dramforever:matrix.orgdramforeveri'm starting to think fb-re2 is cursed17:48:33
@dramforever:matrix.orgdramforeveri'm not entirely sure what's wrong17:49:37
@dramforever:matrix.orgdramforeverbut i think it literally is just using the wrong type17:49:45
@matthewcroughan:defenestrate.itmatthewcroughanIt hasn't been touched in a while, so that's plausible 17:50:29
@matthewcroughan:defenestrate.itmatthewcroughanI don't think it ever built, I think I figured out how to remove it from the nix deps somehwo 17:50:37
@matthewcroughan:defenestrate.itmatthewcroughan* I don't think it ever built, I think I figured out how to remove it from the nix deps somehow 17:50:40
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/facebook/pyre2/pull/2517:51:08
@matthewcroughan:defenestrate.itmatthewcroughanbut yes it hasn't been touched in 6 years17:51:13
@matthewcroughan:defenestrate.itmatthewcroughanBut it is a dependency of mercurial, which Nixpkgs needs for building Nix tests I guess 17:52:08
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/me/mercurial/package.nix#L917:52:26
@matthewcroughan:defenestrate.itmatthewcroughanhmm, but it is optional 17:52:30
@matthewcroughan:defenestrate.itmatthewcroughan All that is left then, is to figure out why pkgsMusl.pkgsStatic.musl doesn't build 17:56:53
@matthewcroughan:defenestrate.itmatthewcroughan
rm -f lib/libc.a
aarch64-unknown-linux-musl-ar rc lib/libc.a obj/src/aio/aio.lo obj/src/aio/aio_suspend.lo obj/src/aio/lio_listio.lo obj/src/complex/__cexp.lo obj/src/complex/__cexpf.lo obj/src/complex/cabs.lo obj/src/complex/cabsf.lo obj/src/complex/cabsl.lo obj/src/complex/cacos.lo obj/src/complex/cacosf.lo obj/src/complex/cacosh.lo obj/src/complex/cacoshf.lo obj/src/complex/cacoshl.lo obj/src/c>
aarch64-unknown-linux-musl-gcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -fno-strict-aliasing -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I./arch/aarch64 -I./arch/generic -Iobj/src/internal -I./src/include -I./src/internal -Iobj/include -I./include  -g -O2 -fno-align-jumps -fno-align-functions -fno-align-loops -fno-align-labels -fira-region=one -fira>
-Wl,-e,_dlstart -o lib/libc.so obj/src/aio/aio.lo obj/src/aio/aio_suspend.lo obj/src/aio/lio_listio.lo obj/src/complex/__cexp.lo obj/src/complex/__cexpf.lo obj/src/complex/cabs.lo obj/src/complex/cabsf.lo obj/src/complex/cabsl.lo obj/src/complex/cacos.lo obj/src/complex/cacosf.lo obj/src/complex/cacosh.lo obj/src/complex/cacoshf.lo obj/src/complex/cacoshl.lo obj/src/complex/cacosl>
collect2: fatal error: cannot find 'ld'
compilation terminated.
17:57:57
@qyliss:fairydust.spaceAlyssa Rosschaining like that isn't really expected to work aiui17:58:46
@matthewcroughan:defenestrate.itmatthewcroughanpkgsMusl.pkgsLLVM is perfect17:59:03
@matthewcroughan:defenestrate.itmatthewcroughanmaybe static isn't17:59:14
@matthewcroughan:defenestrate.itmatthewcroughan somehow pkgs.nixos {} with the build/hostPlatform set correctly, is invoking the equivalent of pkgsMusl.pkgsStatic.musl 18:00:22
@matthewcroughan:defenestrate.itmatthewcroughanThis is just a normal native musl system that maybe wants that because of some bug18:00:53

Show newer messages


Back to Room ListRoom Version: 6