!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
128 Servers

Load older messages


SenderMessageTime
22 Jan 2026
@crazychaoz:matrix.orgcrazychaozguess the emu:13:20:21
@astro:envs.netMoved to: @astro:c3d2.de changed their display name from Astro to Moved to: @astro:c3d2.de.21:39:12
23 Jan 2026
@blitz:chat.x86.lolblitz joined the room.14:11:57
@blitz:chat.x86.lolblitzHey cross-compilation gurus! :) Does anyone have a minute to look at this: https://github.com/NixOS/nixpkgs/issues/48297014:12:35
@blitz:chat.x86.lolblitzI really wonder why building the python bcrypt package fails in this scenario, because it should "just" be the x86 package (which works fine)14:13:02
24 Jan 2026
@shamrocklee:matrix.orgShamrockLee (Yueh-Shun Li) joined the room.15:40:48
25 Jan 2026
@matthewcroughan:defenestrate.itmatthewcroughanAnyone know how to fix this?13:07:24
@matthewcroughan:defenestrate.itmatthewcroughan
aarch64-unknown-linux-musl-clang  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"aarch64"' -DCONF_OSTYPE='"linux-musl"' -DCONF_MACHTYPE='"aarch64-unknown-linux-musl"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/nix/store/n0ydjr92z0vxkhvyyimljsgawbfjfs0k-bash-aarch64-unknown-linux-musl-5.3p9/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib  -Wno-parenth>
In file included from mkbuiltins.c:46:
../bashansi.h:44:23: error: 'bool' cannot be defined via 'typedef'
   44 | typedef unsigned char bool;
      |                       ^~~~
../bashansi.h:44:23: note: 'bool' is a keyword with '-std=c23' onwards
../bashansi.h:44:1: warning: useless type name in empty declaration
   44 | typedef unsigned char bool;
      | ^~~~~~~
make[1]: *** [Makefile:231: mkbuiltins.o] Error 1
make[1]: Leaving directory '/build/bash-5.3/builtins'
make: *** [Makefile:822: builtins/builtext.h] Error 1
make: *** Waiting for unfinished jobs....
13:07:28
@matthewcroughan:defenestrate.itmatthewcroughanIt happens on staging-next and master, probably because of https://github.com/NixOS/nixpkgs/commit/6a6c4961a243439257f1293f3cfa3ac886bfe74e13:07:55
@matthewcroughan:defenestrate.itmatthewcroughanThis is gnu-llvm-musl13:08:13
@gsaurel:laas.frnim65slooks like a GCC upgrade to 15 broke that13:08:38
@gsaurel:laas.frnim65sref https://github.com/NixOS/nixpkgs/issues/47547913:09:07
@gsaurel:laas.frnim65soh, wait, no13:09:57
@matthewcroughan:defenestrate.itmatthewcroughanBash is quite an odd one though13:10:00
@matthewcroughan:defenestrate.itmatthewcroughanBecause 99% of the builds work13:10:07
@matthewcroughan:defenestrate.itmatthewcroughanI guess this is the runtime bash for the system 13:10:14
@dramforever:matrix.orgdramforever this shouldn't change anything since it's stdenv.hostPlatform.isFreeBSD 13:10:14
@matthewcroughan:defenestrate.itmatthewcroughanThat might be the problem13:10:38
@matthewcroughan:defenestrate.itmatthewcroughanmaybe I need it in my case13:10:47
@dramforever:matrix.orgdramforeverhow we have ended up std=c23 is certainly a mystery...13:11:17
@matthewcroughan:defenestrate.itmatthewcroughanBut I forked nixpkgs and added it unconditionally and it seems to crash still13:11:41
@matthewcroughan:defenestrate.itmatthewcroughan
diff --git a/pkgs/shells/bash/5.nix b/pkgs/shells/bash/5.nix
index 86d3727cd94f..8e9fe8ff751b 100644
--- a/pkgs/shells/bash/5.nix
+++ b/pkgs/shells/bash/5.nix
@@ -85,11 +85,9 @@ lib.warnIf (withDocs != null)
     #
     # Once FreeBSD is built with a newer version of Clang, this hack
     # should be removed.
-    +
-      lib.optionalString (stdenv.hostPlatform.isFreeBSD && stdenv.hostPlatform != stdenv.buildPlatform)
-        ''
-          -std=c23
-        '';
+    + ''
+      -std=c23
+    '';
 
13:11:43
@matthewcroughan:defenestrate.itmatthewcroughan *
diff --git a/pkgs/shells/bash/5.nix b/pkgs/shells/bash/5.nix
index 86d3727cd94f..8e9fe8ff751b 100644
--- a/pkgs/shells/bash/5.nix
+++ b/pkgs/shells/bash/5.nix
@@ -85,11 +85,9 @@ lib.warnIf (withDocs != null)
     #
     # Once FreeBSD is built with a newer version of Clang, this hack
     # should be removed.
-    +
-      lib.optionalString (stdenv.hostPlatform.isFreeBSD && stdenv.hostPlatform != stdenv.buildPlatform)
-        ''
-          -std=c23
-        '';
+    + ''
+      -std=c23
+    '';
 
13:11:47
@matthewcroughan:defenestrate.itmatthewcroughan In that case I get configure: error: C compiler cannot create executables 13:12:11
@matthewcroughan:defenestrate.itmatthewcroughan
Beginning configuration for bash-5.3-release for aarch64-unknown-linux-gnu

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in '/build/bash-5.3':
configure: error: C compiler cannot create executables
13:12:27
@matthewcroughan:defenestrate.itmatthewcroughan Maybe John Ericson would know how to fix it :D 13:13:40
@dramforever:matrix.orgdramforeverdo you have the full log13:13:51
@dramforever:matrix.orgdramforeverfor the first one13:13:52
@matthewcroughan:defenestrate.itmatthewcroughanYeah can put it on termbin, sec13:14:02
@matthewcroughan:defenestrate.itmatthewcroughan
 nix log /nix/store/946y9d3skwapp70wn66s6rvsfsypn9rc-bash-aarch64-unknown-linux-musl-5.3p9.drv | nc termbin.com 9999
https://termbin.com/z6eb
13:14:31

Show newer messages


Back to Room ListRoom Version: 6