!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

582 Members
127 Servers

Load older messages


SenderMessageTime
23 Apr 2025
@dramforever:matrix.orgdramforever maybe i misunderstood but did you ever have an old version of nixpkgs that had a working pkgsCross.arm-embedded.stdenv.cc 16:46:29
@dramforever:matrix.orgdramforeveragain, as in, produce code correctly for cortex-m016:46:46
@rosssmyth:matrix.orgrosssmythno16:46:50
@dramforever:matrix.orgdramforeverokay thanks for clarifying16:47:01
@dramforever:matrix.orgdramforever this is the thing i'm getting
../.././newlib/libm/math/e_atanh.c:73:1: sorry, unimplemented: '-fstack-check=specific' for Thumb-1
16:47:41
@dramforever:matrix.orgdramforeverand like, tens of other errors on other similar functions16:47:52
@rosssmyth:matrix.orgrosssmythOk16:48:48
@dramforever:matrix.orgdramforever that's (import ./. { crossSystem = { config = "armv6m-none-eabi"; libc = "newlib"; gcc.float-abi = "softfp"; gcc.cpu = "cortex-m0"; }; }).stdenv.cc on aca270648ecaa9450a6feb34ff2d995e0b0a3444 16:49:16
@rosssmyth:matrix.orgrosssmythThere are many broken things in how arm seems to be handled in generating a stdenv16:49:22
@rosssmyth:matrix.orgrosssmythThe armv6m config is broken16:49:41
@rosssmyth:matrix.orgrosssmythand then handling for cortex-m0 doesn't seem implemented 16:49:58
@dramforever:matrix.orgdramforever handling for specifying config = "armv6m-none-eabi" isn't implemented 16:52:29
@dramforever:matrix.orgdramforever as in like, it doesn't know to properly configure armv6m 16:52:37
@dramforever:matrix.orgdramforever this one would have worked, if there wasn't this -fstack-check problem 16:53:22
@dramforever:matrix.orgdramforeverlog https://fars.ee/SUAG16:53:26
@rosssmyth:matrix.orgrosssmyth There is some stuff in lib/systems for armv6m. I do not know what else is needed 16:53:58
@dramforever:matrix.orgdramforever we need to either pass --with-arch=armv6-m to the gcc config, or pass -march=armv6-m in the gcc wrapper 16:54:51
@dramforever:matrix.orgdramforever when we parse armv6m, parsed.cpu.arch gets set to "armv6-m" but that seems unused 16:57:05
@wucke13:matrix.orgwucke13
In reply to @dramforever:matrix.org
i've been trying to go all in on the configurification and used gcc.cpu = "cortex-m0". newlib fails to compile
Have you tried stdenvNoLibc ?
22:09:53
24 Apr 2025
@dramforever:matrix.orgdramforever
In reply to @wucke13:matrix.org
Have you tried stdenvNoLibc ?
it would not work because ross indeed need newlib
00:31:07
@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

Show newer messages


Back to Room ListRoom Version: 6