!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

481 Members
101 Servers

Load older messages


SenderMessageTime
24 Apr 2025
@dramforever:matrix.orgdramforever* it would not work because ross indeed needed newlib00:31:16
@wucke13:matrix.orgwucke13ahh11:12:26
@ortolanbunting3002:tchncs.deortolanbunting3002 joined the room.18:20:19
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)
┣━ Dependency Graph:
┃       ┌─ ⏸ bottles-51.17-fhsenv-rootfs waiting for 3 ⚠
┃    ┌─ ⏸ bottles-51.17-bwrap
┃ ┌─ ⏸ bottles-51.17
┃ │              ┌─ ✔ mangohud-i686-unknown-linux-gnu-0.8.1 ⏱ 1m8s
┃ │           ┌─ ✔ mangohud-x86_64-unknown-linux-gnu-0.8.1 ⏱ 1m7s
┃ │           │     ┌─ ⚠ gnustep-base-x86_64-unknown-linux-gnu-1.29.0 failed with exit code 1 after ⏱ 2s in configurePhase
┃ │           │  ┌─ ⏸ unar-x86_64-unknown-linux-gnu-1.10.8
┃ │           ├─ ⏸ python3.12-patool-3.1.0-x86_64-unknown-linux-gnu
┃ │        ┌─ ⏸ bottles-unwrapped-51.17-x86_64-unknown-linux-gnu
┃ │        ├─ ⚠ dosbox-x86_64-unknown-linux-gnu-0.74-3 failed with exit code 1 after ⏱ 4s in configurePhase
┃ │        ├─ ⚠ dosbox-i686-unknown-linux-gnu-0.74-3 failed with exit code 1 after ⏱ 4s in configurePhase
┃ │     ┌─ ⏸ bottles-cli-51.17-fhsenv-rootfs
┃ │  ┌─ ⏸ bottles-cli-51.17-bwrap
┃ ├─ ⏸ bottles-cli-51.17
┃ ⏸ bottles
┣━━━ Builds
┗━ ∑ ⏵ 0 │ ✔ 2 │ ⏸ 10 │ ⚠ Exited after 3 build failures at 20:48:28 after 3m24s

[grimmauld@build05:~/nixpkgs]$

Almost got cross bottles building, only dosbox and gnustep missing!

20:49:11
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)dosbox will probably be rough...20:49:55
@rosscomputerguy:matrix.orgTristan Ross
expand-response-params> building '/nix/store/5rn8w513gwyxcj65b39p02jyqv9djm2b-expand-response-params.drv'
expand-response-params> Running phase: unpackPhase
expand-response-params> Running phase: patchPhase
expand-response-params> Running phase: updateAutotoolsGnuConfigScriptsPhase
expand-response-params> Running phase: configurePhase
expand-response-params> no configure script, doing nothing
expand-response-params> Running phase: buildPhase
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1
expand-response-params> /nix/store/5qbq251crw3j3cz8nlkhpl6hwf7m23m1-bootstrap-tools/bin/bash: warning: shell level (1000) too high, resetting to 1

Are my builds borked? My PID numbers are in the mid 2 million range. I'm trying to do pkgsLTO.stdenv and it's stuck with expand-response-params.

21:43:00
@rosscomputerguy:matrix.orgTristan RossOh, there's like 30 bash processes being executed by the derivation.21:45:23
@rosscomputerguy:matrix.orgTristan Ross
nix_cc_for_role_post=NIX_CC${role_post}
if [[ ! -z ${!nix_cc_for_role_post-} ]]; then
    export NIX_BINTOOLS_FLAGS="--plugin $(cat ${!nix_cc_for_role_post}/nix-support/orig-cc)/lib/gcc//14.2.1/plugin ${NIX_BINTOOLS_FLAGS-}"
fi

I wonder if this is causing issues from being inside the bintools setup hook

21:49:59
@rosscomputerguy:matrix.orgTristan RossOh, my bintools wrapper is broken lol21:51:17
25 Apr 2025
@munkel_:matrix.orgmunkel_ joined the room.08:15:06
@qyliss:fairydust.spaceAlyssa Ross
In reply to @rosscomputerguy:matrix.org
nix_cc_for_role_post=NIX_CC${role_post}
if [[ ! -z ${!nix_cc_for_role_post-} ]]; then
    export NIX_BINTOOLS_FLAGS="--plugin $(cat ${!nix_cc_for_role_post}/nix-support/orig-cc)/lib/gcc//14.2.1/plugin ${NIX_BINTOOLS_FLAGS-}"
fi

I wonder if this is causing issues from being inside the bintools setup hook

Could replace cat with < and do it in-process I think

08:32:49
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)

I tried crosscompiling gnustep-base, without any luck.... seems adding --host to configure flags is what i need to do, but log suggests i have two host flags then....

I found this android crosscompiling setup which i tried to adapt: https://github.com/gnustep/tools-android/blob/master/phases/30-gnustep-base.sh

09:48:57
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)but if i can't even set the host flag successfully, this is pain09:49:13
@rosscomputerguy:matrix.orgTristan RossTrue, I'll likely do that.16:29:44
@creepinson:matrix.orgTheo Paris joined the room.23:38:23
26 Apr 2025
@debaa:matrix.orgdebabrata pattnayak joined the room.16:12:09
@awwpotato:envs.netawwpotato (she/her) changed their profile picture.19:52:47
@reckenrode:matrix.orgRandy EckenrodeHow do I use clang with a MinGW cross? The package’s CMake test for a working C compiler is trying to link libgcc.21:39:53
@reckenrode:matrix.orgRandy EckenrodeIt happens whether I try to use ld from binutils or lld.21:42:15
@reckenrode:matrix.orgRandy Eckenrode GCC appears to be building libgcc_s_seh-1.dll, but it’s trying to link everything but that. 21:56:54
@reckenrode:matrix.orgRandy Eckenrode
/nix/store/wcm9n053jg2c3wj3afbsir8fn96h3az8-x86_64-w64-mingw32-binutils-2.44/bin/x86_64-w64-mingw32-ld: cannot find -lgcc: No such file or directory
/nix/store/wcm9n053jg2c3wj3afbsir8fn96h3az8-x86_64-w64-mingw32-binutils-2.44/bin/x86_64-w64-mingw32-ld: cannot find -lgcc_eh: No such file or directory
/nix/store/wcm9n053jg2c3wj3afbsir8fn96h3az8-x86_64-w64-mingw32-binutils-2.44/bin/x86_64-w64-mingw32-ld: cannot find -lgcc: No such file or directory
/nix/store/wcm9n053jg2c3wj3afbsir8fn96h3az8-x86_64-w64-mingw32-binutils-2.44/bin/x86_64-w64-mingw32-ld: cannot find -lgcc_eh: No such file or directory
21:57:11
@rosscomputerguy:matrix.orgTristan Ross
In reply to @reckenrode:matrix.org
/nix/store/wcm9n053jg2c3wj3afbsir8fn96h3az8-x86_64-w64-mingw32-binutils-2.44/bin/x86_64-w64-mingw32-ld: cannot find -lgcc: No such file or directory
/nix/store/wcm9n053jg2c3wj3afbsir8fn96h3az8-x86_64-w64-mingw32-binutils-2.44/bin/x86_64-w64-mingw32-ld: cannot find -lgcc_eh: No such file or directory
/nix/store/wcm9n053jg2c3wj3afbsir8fn96h3az8-x86_64-w64-mingw32-binutils-2.44/bin/x86_64-w64-mingw32-ld: cannot find -lgcc: No such file or directory
/nix/store/wcm9n053jg2c3wj3afbsir8fn96h3az8-x86_64-w64-mingw32-binutils-2.44/bin/x86_64-w64-mingw32-ld: cannot find -lgcc_eh: No such file or directory
Is this with glibc as well?
22:16:58
@rosscomputerguy:matrix.orgTristan RossIt could be that GCC -> libgcc -> glibc chain22:17:24
@reckenrode:matrix.orgRandy EckenrodeIt’s using the default libc for MinGW on Windows, which is msvcrt IIRC.22:21:12
@reckenrode:matrix.orgRandy EckenrodeUsing a regular stdenv with GCC works, but I’m trying to compile libdispatch, which requires Clang.22:21:30
@reckenrode:matrix.orgRandy Eckenrode* Using a regular stdenv with GCC works (for other packages), but I’m trying to compile libdispatch, which requires Clang.22:21:45
@rosscomputerguy:matrix.orgTristan RossHmm22:22:38
27 Apr 2025
@codesupply:matrix.orgAndrew Bruce joined the room.10:07:08
@honnip:matrix.orgHonnip joined the room.11:22:10
@codesupply:matrix.orgAndrew BruceHey there. I'm having some fun with Klipper (3D printing server) cross compiling from x86 to aarch64. It looks a bit like a regression, since I'm getting the same error messages on latest unstable nixpkgs that have been fixed in prior PRs.13:41:42

Show newer messages


Back to Room ListRoom Version: 6