!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

577 Members
129 Servers

Load older messages


SenderMessageTime
31 Dec 2024
@fshp:matrix.orgMaxim Moseychuk

If pkgsCross is another instance of nixpkgs, I tried passing it as an explicit parameter, and it worked.

# nix-build --arg pkgs "(import <nixpkgs> {}).pkgsCross.aarch64-multiplatform" -A myhello
09:33:26
@getchoo:matrix.orggetchoo changed their profile picture.12:38:42
@siraben:matrix.orgsiraben (he/him) left the room.14:51:15
1 Jan 2025
@mjolnir:nixos.orgmjolnirchanged room power levels.14:26:28
@wegank:matrix.org@wegank:matrix.org left the room.20:00:23
@jopejoe1:matrix.orgjopejoe1 changed their display name from jopejoe1 [4094] to jopejoe1.23:29:54
2 Jan 2025
@rhelmot:matrix.orgrhelmotalright chat I think we are almost out of dogshit edge cases before I can resume reviews on the rustc stuff09:09:31
@rhelmot:matrix.orgrhelmotthis last case comes from being on freebsd and compiling... get ready for it...09:09:45
@rhelmot:matrix.orgrhelmotpkgsCross.aarch64-multiplatform.pkgsLLVM.buildPackages.rustc09:09:59
@k900:0upti.meK900One day we'll get to Qt6 cross09:10:15
@k900:0upti.meK900And then to KF609:10:17
@k900:0upti.meK900And then we'll have to figure out corrosion on cross09:10:23
@k900:0upti.meK900And I am not looking forward to that day09:10:28
@rhelmot:matrix.orgrhelmot the problem for the thing I posted seems to be related to clang being multi-target now. we tell rustc configureFlags that --set=target.aarch64-unknown-linux-gnu.linker=/nix/store/6bjs7ai2ai14fdx6kvrfgdfhc16a19md-aarch64-unknown-linux-gnu-clang-wrapper-19.1.6/bin/aarch64-unknown-linux-gnu-clang which is correct but it doesn't pass any flags indicating what linker to use, so it just uses un-prefixed ld which is NOT multi-target and so the compile fails 09:13:52
@rhelmot:matrix.orgrhelmotld is gnu binutils here09:14:44
@rhelmot:matrix.orgrhelmotis this even a legal configuration?09:14:52
@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

Show newer messages


Back to Room ListRoom Version: 6