!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

576 Members
128 Servers

Load older messages


SenderMessageTime
2 Jan 2025
@rhelmot:matrix.orgrhelmotI can't remember why I set up the freebsd stdenv to be clang + gnu binutils but it's been working until now...09:16:15
3 Jan 2025
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞488{0,1,9}) to elikoga.10:28:12
@sananatheskenana:matrix.orglzcunt joined the room.15:05:59
@9hp71n:matrix.orgghpzin joined the room.15:25:00
@sananatheskenana:matrix.orglzcuntand I've been stuck with this issue where the mlibc package that I'm working on has infinite recursion because it's build dependencies depend on the stdenv with mlibc instead of the mlibc for the build platform16:17:43
@sananatheskenana:matrix.orglzcunt* Hey there, I've been trying to add a new libc (mlibc) to nixpkgs and I've been stuck with this issue where the mlibc package that I'm working on has infinite recursion because it's build dependencies depend on the stdenv with mlibc instead of the mlibc for the build platform16:18:30
@sananatheskenana:matrix.orglzcuntI've been told you guys can maybe help with my issue16:18:54
@sananatheskenana:matrix.orglzcunt* Hey there, I've been trying to add a new libc (mlibc) to nixpkgs and I've been stuck with this issue where the mlibc package that I'm working on has infinite recursion because it's build dependencies depend on the stdenv with mlibc instead of the stdenv for the build platform16:19:27
@artturin:matrix.orgArtturinShow the code16:19:34
@sananatheskenana:matrix.orglzcuntI have it in https://github.com/lunabunja/nixpkgs in the mlibc/init branch16:20:05
@sananatheskenana:matrix.orglzcunt you can see that nix-build . -A mlibc works (mlibc built with build=host=target=glibc or musl) but nix-build . -A pkgsCross.x86_64-linux-mlibc.hello does not work - it tries building mlibc with host=linux-mlibc and fails because it also tries building its dependencies in nativeBuildInputs (meson and ninja) with the mlibc stdenv 16:23:52
@sananatheskenana:matrix.orglzcunt * you can see that nix-build . -A mlibc works (mlibc built with build=host=target=glibc or musl) but nix-build . -A pkgsCross.x86_64-linux-mlibc.hello does not work - it tries building mlibc with host=linux-mlibc and fails because it also tries building its dependencies in nativeBuildInputs (meson and ninja) with the mlibc stdenv (which hasn't been built yet so infinite recursion) 16:24:30
@sananatheskenana:matrix.orglzcunt there's more details in #dev:nixos.org 16:25:26
@rosscomputerguy:matrix.orgTristan Ross It's probably an infinite recursion which the cc 16:31:32
@sananatheskenana:matrix.orglzcuntit is. whenever anything touches stdenv.cc it shits itself16:31:55
@rosscomputerguy:matrix.orgTristan Ross I think depsBuildBuild is the problem 16:32:13
@sananatheskenana:matrix.orglzcuntthat doesn't trigger it no16:32:33
@sananatheskenana:matrix.orglzcuntit happens inside meson - which shouldn't happen because it's stdenv is supposed to be the one from the previous i think? i don't really understand stages well but i would assume meson would be build for the build platform (which has glibc16:34:10
@rosscomputerguy:matrix.orgTristan RossI don't see anything else being the problem16:34:18
@artturin:matrix.orgArtturin Specifically meson andor ninja or one of their deps trigger it 16:34:35
@rosscomputerguy:matrix.orgTristan RossThat's weird though16:34:49
@rosscomputerguy:matrix.orgTristan RossI use cmake and ninja in LLVM libc and don't have this problem16:34:58
@sananatheskenana:matrix.orglzcuntyep any of their deps that touches stdenv.cc triggers it, like openssl or zlib when I build with python3Minimal to not build openssl16:35:30
@sananatheskenana:matrix.orglzcuntyea I saw that PR, seemingly it doesn't have this issue16:36:01
@sananatheskenana:matrix.orglzcuntbut your PR uses pkgsLLVMLibc maybe that changes stuff16:36:15
@artturin:matrix.orgArtturinThis type of thing again https://github.com/NixOS/nixpkgs/commit/007088359e7a0b438f42387cb59c0479ba81df8316:36:59
@sananatheskenana:matrix.orglzcuntis my thinking any wrong here? why is meson (or anything i put in nativeBuildInputs) being built for the host platform16:37:04
@artturin:matrix.orgArtturinadding openssl get's rid of the error from that line16:37:14
@rosscomputerguy:matrix.orgTristan Ross Yeah, pkgsLLVMLibc composes a new nixpkgs instance which has the libc applied. 16:37:27
@artturin:matrix.orgArtturin
In reply to @sananatheskenana:matrix.org
is my thinking any wrong here? why is meson (or anything i put in nativeBuildInputs) being built for the host platform
they're not but the weird python inputs' thing interferes with eval
16:37:38

Show newer messages


Back to Room ListRoom Version: 6