!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

325 Members
101 Servers

Load older messages


SenderMessageTime
27 Dec 2025
@andromeda:tchncs.deandromeda

it's not on lix, rather cppnix. The flake inputs section is as follows:

21:16:11
@andromeda:tchncs.deandromeda *

it's not on lix, rather cppnix. The flake inputs section is as follows:

inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/staging";
    # I can't figure out how to rebase our lix fork easily. Let's use cppnix for now.
    # lix = {
    #   url = "git+https://git.lix.systems/artemist/lix.git?ref=freebsd-build";
    #   inputs.nixpkgs.follows = "nixpkgs";
    #   # We don't need another nixpkgs clone, it won't evaluate anyway
    #   inputs.nixpkgs-regression.follows = "nixpkgs";
    # };
    cppnix = {
      url = "github:rhelmot/nix/freebsd";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    mini-tmpfiles = {
      url = "github:nixos-bsd/mini-tmpfiles";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
  };

  nixConfig = {
    extra-substituters = [ "https://attic.mildlyfunctional.gay/nixbsd" ];
    extra-trusted-public-keys =
      [ "nixbsd:gwcQlsUONBLrrGCOdEboIAeFq9eLaDqfhfXmHZs1mgc=" ];
  };
21:17:05
@emilazy:matrix.orgemilyyou probably need to use whatever their pinned commits are and not current ones21:29:17
28 Dec 2025
@psyclyx:matrix.orgpsyclyx joined the room.16:17:50
@psyclyx:matrix.orgpsyclyx set a profile picture.16:20:29
30 Dec 2025
@Ericson2314:matrix.orgJohn Ericson rhelmot: OK the staging commit you used should not be in master! 18:54:26
@rhelmot:matrix.orgrhelmotyay!!!19:02:02
@Ericson2314:matrix.orgJohn EricsonI am kicking off a build locally, but feel free to beat me too it :)19:02:52
@padarom:matrix.orgtoph joined the room.19:20:31
@Ericson2314:matrix.orgJohn Ericson rhelmot: \ 20:46:53
@Ericson2314:matrix.orgJohn EricsonRedacted or Malformed Event20:46:54
@Ericson2314:matrix.orgJohn Ericson *

rhelmot:

gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"freebsd"' -DCONF_MACHTYPE='"x86_64-unknown-freebsd"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/nix/store/4y27vmi6wbm6nq0z2sg65ddy9n5h2g8x-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DHEREDOC_PIPESIZE=4096 -I. -I. -I./include -I./lib -I./lib/intl -I/build/bash-5.3/lib/intl -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING -rdynamic -g -DCROSS_COMPILING -o mksyntax ./mksyntax.c
make[1]: Entering directory '/build/bash-5.3/builtins'
rm -f mksignames.o
making /build/bash-5.3/lib/intl/libintl.h in /build/bash-5.3/lib/intl
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"freebsd"' -DCONF_MACHTYPE='"x86_64-unknown-freebsd"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/nix/store/4y27vmi6wbm6nq0z2sg65ddy9n5h2g8x-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DHEREDOC_PIPESIZE=4096 -I. -I. -I./include -I./lib -I./lib/intl -I/build/bash-5.3/lib/intl -Wno-parentheses -Wno-format-security -g -DCROSS_COMPILING -DBUILDTOOL -c ./support/mksignames.c
make[2]: Entering directory '/build/bash-5.3/lib/intl'
sed -e '/IN_LIBGLOCALE/d'
-e 's,@''HAVE_POSIX_PRINTF''@,1,g'
-e 's,@''HAVE_ASPRINTF''@,1,g'
-e 's,@''HAVE_SNPRINTF''@,1,g'
-e 's,@''HAVE_WPRINTF''@,1,g'
-e 's,@''HAVE_NEWLOCALE''@,1,g'
-e 's,@''ENHANCE_LOCALE_FUNCS''@,0,g'
< ./libgnuintl.in.h > libintl.h
make[2]: Leaving directory '/build/bash-5.3/lib/intl'
rm -f mkbuiltins.o
gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -I../lib/intl -I/build/bash-5.3/lib/intl -Wno-parentheses -Wno-format-security -DHEREDOC_PIPESIZE=4096 -g -DCROSS_COMPILING mkbuiltins.c
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....
error: Cannot build '/nix/store/1nq20gs1fmvxw3dsknwislrkj33n2ssg-bash-interactive-static-x86_64-unknown-freebsd-5.3p3.drv'.

20:47:08
@Ericson2314:matrix.orgJohn Ericson *

rhelmot:

gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"freebsd"' -DCONF_MACHTYPE='"x86_64-unknown-freebsd"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/nix/store/4y27vmi6wbm6nq0z2sg65ddy9n5h2g8x-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DHEREDOC_PIPESIZE=4096   -I.  -I. -I./include -I./lib -I./lib/intl -I/build/bash-5.3/lib/intl -Wno-parentheses -Wno-format-security  -g -DCROSS_COMPILING -rdynamic -g -DCROSS_COMPILING -o mksyntax ./mksyntax.c
make[1]: Entering directory '/build/bash-5.3/builtins'
rm -f mksignames.o
making /build/bash-5.3/lib/intl/libintl.h in /build/bash-5.3/lib/intl
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"freebsd"' -DCONF_MACHTYPE='"x86_64-unknown-freebsd"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/nix/store/4y27vmi6wbm6nq0z2sg65ddy9n5h2g8x-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DHEREDOC_PIPESIZE=4096   -I.  -I. -I./include -I./lib -I./lib/intl -I/build/bash-5.3/lib/intl -Wno-parentheses -Wno-format-security  -g -DCROSS_COMPILING -DBUILDTOOL -c ./support/mksignames.c
make[2]: Entering directory '/build/bash-5.3/lib/intl'
sed -e '/IN_LIBGLOCALE/d' \
    -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \
    -e 's,@''HAVE_ASPRINTF''@,1,g' \
    -e 's,@''HAVE_SNPRINTF''@,1,g' \
    -e 's,@''HAVE_WPRINTF''@,1,g' \
    -e 's,@''HAVE_NEWLOCALE''@,1,g' \
    -e 's,@''ENHANCE_LOCALE_FUNCS''@,0,g' \
  < ./libgnuintl.in.h > libintl.h
make[2]: Leaving directory '/build/bash-5.3/lib/intl'
rm -f mkbuiltins.o
gcc -c  -DHAVE_CONFIG_H -DSHELL -I. -I..  -I.. -I../include -I../lib -I. -I../lib/intl -I/build/bash-5.3/lib/intl -Wno-parentheses -Wno-format-security -DHEREDOC_PIPESIZE=4096   -g -DCROSS_COMPILING mkbuiltins.c
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....
error: Cannot build '/nix/store/1nq20gs1fmvxw3dsknwislrkj33n2ssg-bash-interactive-static-x86_64-unknown-freebsd-5.3p3.drv'.
20:47:24
@Ericson2314:matrix.orgJohn Ericson3rd times the charm20:47:30
@Ericson2314:matrix.orgJohn Ericson -std=c23 problem cross compiling bash 20:47:49
@rhelmot:matrix.orgrhelmotugh20:47:59
@rhelmot:matrix.orgrhelmotI can fix it in a few hours maybe but feel free to beat me to it20:48:12
@Ericson2314:matrix.orgJohn Ericsondo you have a preferred way of fixing this?20:48:27
@Ericson2314:matrix.orgJohn Ericson HAVE_STDBOOL_H I guess that is wrong actually 20:52:40
@Ericson2314:matrix.orgJohn Ericson rhelmot: Do you know what the default -std flag is? the failing build didn't seem to have a -std=... but I need to provide one manually in the shell invoking $CC to reproduce the error 21:02:24
@Ericson2314:matrix.orgJohn Ericson gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -I../lib/intl -I/build/bash-5.3/lib/intl -Wno-parentheses -Wno-format-security -DHEREDOC_PIPESIZE=4096 -g -DCROSS_COMPILING mkbuiltins.c 21:03:29
@Ericson2314:matrix.orgJohn Ericsonoh damnnit it is the build time CC21:03:44
@grimmauld:m.grimmauld.deGrimmauld (any/all)
In reply to @Ericson2314:matrix.org
rhelmot: Do you know what the default -std flag is? the failing build didn't seem to have a -std=... but I need to provide one manually in the shell invoking $CC to reproduce the error
Default is c23 on master since GCC 15. Not sure what it is with clang. c17 on unstable/25.11, but cross doesn't have caches anyways so may as well run master
21:27:28
@grimmauld:m.grimmauld.deGrimmauld (any/all)Book being a language keyword is c23 though, already caused issues for nasm on musl for me21:28:10
@grimmauld:m.grimmauld.deGrimmauld (any/all)* Bool being a language keyword is c23 though, already caused issues for nasm on musl for me21:28:17
@Ericson2314:matrix.orgJohn Ericson Grimmauld (any/all): yeah the issue is that CC and CC_FOR_BUILD got out of sync 21:28:56
@Ericson2314:matrix.orgJohn Ericsonre the standard21:30:34
@Ericson2314:matrix.orgJohn Ericsonand bash assume they are in sync21:30:58
@Ericson2314:matrix.orgJohn Ericson
error: Cannot build '/nix/store/gm5win3imb4ira9xihqjgmkw6grwwz96-flex-x86_64-unknown-freebsd-2.6.4.drv'.
       Reason: builder failed with exit code 2.
       Output paths:
         /nix/store/2zahnxwrgj39cs2asrwgi0hm7bjilknw-flex-x86_64-unknown-freebsd-2.6.4
       Last 25 log lines:
       > gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR=\"/nix/store/2zahnxwrgj39cs2asrwgi0hm7bjilknw-flex-x86_64-unknown-freebsd-2.6.4/share/locale\"   -g -O2 -c -o stage1flex-sym.o `test -f 'sym.c' || echo './'`sym.c
       > gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR=\"/nix/store/2zahnxwrgj39cs2asrwgi0hm7bjilknw-flex-x86_64-unknown-freebsd-2.6.4/share/locale\"   -g -O2 -c -o stage1flex-tables.o `test -f 'tables.c' || echo './'`tables.c
       > gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR=\"/nix/store/2zahnxwrgj39cs2asrwgi0hm7bjilknw-flex-x86_64-unknown-freebsd-2.6.4/share/locale\"   -g -O2 -c -o stage1flex-tables_shared.o `test -f 'tables_shared.c' || echo './'`tables_shared.c
       > gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR=\"/nix/store/2zahnxwrgj39cs2asrwgi0hm7bjilknw-flex-x86_64-unknown-freebsd-2.6.4/share/locale\"   -g -O2 -c -o stage1flex-tblcmp.o `test -f 'tblcmp.c' || echo './'`tblcmp.c
       > gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR=\"/nix/store/2zahnxwrgj39cs2asrwgi0hm7bjilknw-flex-x86_64-unknown-freebsd-2.6.4/share/locale\"   -g -O2 -c -o stage1flex-yylex.o `test -f 'yylex.c' || echo './'`yylex.c
       > gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR=\"/nix/store/2zahnxwrgj39cs2asrwgi0hm7bjilknw-flex-x86_64-unknown-freebsd-2.6.4/share/locale\"   -g -O2 -c -o ../lib/stage1flex-malloc.o `test -f '../lib/malloc.c' || echo './'`../lib/malloc.c
       > ../lib/malloc.c:6:12: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch]
       >     6 |      void *malloc ();
       >       |            ^~~~~~
       > ../lib/malloc.c:5:1: note: 'malloc' is declared in header '<stdlib.h>'
       >     4 |      #include <sys/types.h>
       >   +++ |+#include <stdlib.h>
       >     5 |
       > ../lib/malloc.c: In function 'rpl_malloc':
       > ../lib/malloc.c:16:15: error: too many arguments to function 'malloc'; expected 0, have 1
       >    16 |        return malloc (n);
       >       |               ^~~~~~  ~
       > ../lib/malloc.c:6:12: note: declared here
       >     6 |      void *malloc ();
       >       |            ^~~~~~
       > make[2]: *** [Makefile:1448: ../lib/stage1flex-malloc.o] Error 1
       > make[2]: Leaving directory '/build/flex-2.6.4/src'
       > make[1]: *** [Makefile:581: all] Error 2
       > make[1]: Leaving directory '/build/flex-2.6.4/src'
       > make: *** [Makefile:543: all-recursive] Error 1
21:49:24
@Ericson2314:matrix.orgJohn Ericsonhave fix also22:57:29

Show newer messages


Back to Room ListRoom Version: 6