failure on build base.vmClosureInfo on the package `bash-x86_64-unknown-freebsd-5.3p3` in buildPhase: `error: 'bool' cannot be defined via 'typedef'`
built on branch 67f0c66 with the following command:
`nom build .#base.vmClosureInfo --override-input cppnix github:andromeda-fp/nix/andromeda-lowdown-nixbsd-build-failure`
the error also occurs with `--max-jobs 1` and `--cores 1 --max-jobs 1`, though that isn't relevant.
The following is the build log:
```
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/kwm524zjlnnq4yfhhmb5r14f2wxf8a2j-bash-5.3.tar.gz
source root is bash-5.3
setting SOURCE_DATE_EPOCH to timestamp 1753882072 of file "bash-5.3/po/stamp-po"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/0j41vs0ajmjn81i1mwhgvi24rr5hi4aa-bash53-001
patching file jobs.c
patching file patchlevel.h
applying patch /nix/store/6iygjlcf64ryrg6jryk6qrjfxxz2i6q8-bash53-002
patching file lib/sh/anonfile.c
patching file patchlevel.h
applying patch /nix/store/bm2dknmrjbsd49idcliys6gyalnbd90i-bash53-003
patching file subst.c
patching file tests/quotearray.right
patching file patchlevel.h
applying patch /nix/store/yq0lz1byj4v2rym2ng23a3nj4n6pvqdj-pgrp-pipe-5.patch
patching file ./configure
Hunk #1 succeeded at 23145 (offset 1422 lines).
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Updating Autotools / GNU config script to a newer upstream version: ./support/config.sub
Updating Autotools / GNU config script to a newer upstream version: ./support/config.guess
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Updating Autotools / GNU config script to a newer upstream version: ./support/config.sub
Updating Autotools / GNU config script to a newer upstream version: ./support/config.guess
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
patching script interpreter paths in ./configure
./configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/b414sa5drq6pkrpnvw1b01h0viafn1if-bash-5.3p3/bin/sh"
configure flags: --prefix=/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-bash-interactive-static-x86_64-unknown-freebsd-5.3p3 --bindir=/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/bin --sbindir=/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/sbin --includedir=/nix/store/l7yvm2i0r5mk4jb7jy5d2s8v75rqw3vn-bash-interactive-static-x86_64-unknown-freebsd-5.3p3-dev/include --mandir=/nix/store/4xbhn3a0v38qadkk0xqzlxhb7w22a005-bash-interactive-static-x86_64-unknown-freebsd-5.3p3-man/share/man --infodir=/nix/store/j2ddjnz68rbvd8bibyps2sg4c9zj101w-bash-interactive-static-x86_64-unknown-freebsd-5.3p3-info/share/info --docdir=/nix/store/8cdm4cvz4yaw3m40b7w089q44bhlaqkn-bash-interactive-static-x86_64-unknown-freebsd-5.3p3-doc/share/doc/bash --libdir=/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/lib --libexecdir=/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/libexec --localedir=/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-bash-interactive-static-x86_64-unknown-freebsd-5.3p3/share/locale --without-bash-malloc --with-installed-readline bash_cv_job_control_missing=nomissing bash_cv_sys_named_pipes=nomissing bash_cv_getcwd_malloc=yes bash_cv_getenv_redef=no bash_cv_dev_fd=absent --enable-static --disable-shared --disable-shared --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-freebsd
configure: WARNING: unrecognized options: --enable-static, --disable-shared, --disable-shared
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-freebsd
Beginning configuration for bash-5.3-release for x86_64-unknown-freebsd
checking for x86_64-unknown-freebsd-gcc... x86_64-unknown-freebsd-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-unknown-freebsd-clang accepts -g... yes
checking for x86_64-unknown-freebsd-clang option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for stdbool.h... yes
checking for sys/param.h... yes
checking for threads.h... no
checking for xlocale.h... yes
checking for sys/time.h... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for x86_64-unknown-freebsd-clang option to enable large file support... none needed
checking for tgetent... no
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... yes
checking which library has the termcap functions... using libtinfo
checking version of installed readline library... 8.0
checking for a BSD-compatible install... /nix/store/a4s6f3d3698jw35w4p8762cggx48rg8j-coreutils-9.8/bin/install -c
checking for x86_64-unknown-freebsd-ar... x86_64-unknown-freebsd-ar
checking for x86_64-unknown-freebsd-ranlib... x86_64-unknown-freebsd-ranlib
checking for bison... bison -y
checking whether make sets $(MAKE)... yes
checking for x86_64-unknown-freebsd-strip... x86_64-unknown-freebsd-strip
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for long double... yes
checking whether char is unsigned... no
checking for working volatile... yes
checking for C/C++ restrict keyword... __restrict__
checking for bool, true, false... no
checking for a race-free mkdir -p... /nix/store/a4s6f3d3698jw35w4p8762cggx48rg8j-coreutils-9.8/bin/mkdir -p
checking for a sed that does not truncate output... /nix/store/8c2a6f8rcflrwkk27snca8r5npm2diwn-gnused-4.9/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking how to run the C preprocessor... x86_64-unknown-freebsd-clang -E
checking for egrep -e... /nix/store/bpy2bxa9rj4w7gl43fj7803zhlzjk6zg-gnugrep-3.12/bin/grep -E
checking whether we are using the GNU C Library 2 or newer... no
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking for size_t... yes
checking for stdint.h... yes
checking for working alloca.h... no
checking for alloca... yes
checking for getpagesize... yes
checking for symlink... yes
checking for uselocale... yes
checking for vprintf... yes
checking for alarm... yes
checking for fpurge... yes
checking for __fpurge... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for working mmap... no
checking whether integer division by zero raises SIGFPE... guessing yes
checking for inttypes.h... yes
checking for unsigned long long int... yes
checking whether imported symbols can be declared weak... no
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking whether POSIX threads API is available... yes
checking for multithread API to use... posix
checking for pthread_rwlock_t... yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader...
checking for x86_64-unknown-freebsd-clang options needed to detect all undeclared functions... none needed
checking for ld... x86_64-unknown-freebsd-ld
checking if the linker (x86_64-unknown-freebsd-ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... lib,lib,lib
checking for iconv... yes
checking for working iconv... guessing yes
checking whether iconv is compatible with its POSIX signature... yes
checking for inttypes.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for tsearch... yes
checking for __fsetlocking... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking for localeconv... yes
checking for bison... bison
checking for bison 3.0 or newer... 3.8.2, ok
checking for long long int... yes
checking for wchar_t... yes
checking for wint_t... yes
checking whether wint_t is large enough... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... guessing yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for working fcntl.h... cross-compiling
checking whether uselocale works... guessing yes
checking for fake locale system (OpenBSD)... guessing no
checking for Solaris 11.4 locale system... no
checking for getlocalename_l... no
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyPreferredLanguages... no
checking for flexible array member... yes
checking for x86_64-unknown-freebsd-ar... (cached) x86_64-unknown-freebsd-ar
checking for ptrdiff_t... yes
checking for features.h... no
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for asprintf... yes
checking for wprintf... yes
checking for newlocale... yes
checking for putenv... yes
checking for setenv... yes
checking for snprintf... (cached) yes
checking for strnlen... yes
checking for uselocale... (cached) yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether getc_unlocked is declared... yes
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for CFPreferencesCopyAppValue... (cached) no
checking for CFLocaleCopyPreferredLanguages... (cached) no
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... no
checking whether to use NLS... yes
checking where the gettext function comes from... included intl directory
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/mkdev.h... no
checking for sys/sysmacros.h... no
checking for inttypes.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for varargs.h... no
checking for limits.h... yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for locale.h... yes
checking for termcap.h... yes
checking for termio.h... no
checking for termios.h... yes
checking for dlfcn.h... yes
checking for stddef.h... (cached) yes
checking for stdint.h... (cached) yes
checking for netdb.h... yes
checking for pwd.h... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking for stdckdint.h... yes
checking for regex.h... yes
checking for syslog.h... yes
checking for ulimit.h... yes
checking for sys/pte.h... no
checking for sys/stream.h... no
checking for sys/select.h... yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/mman.h... yes
checking for sys/param.h... (cached) yes
checking for sys/random.h... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking for sys/wait.h... yes
checking for netinet/in.h... yes
checking for arpa/inet.h... yes
checking for sys/ptem.h... no
checking for sys/resource.h... yes
checking for working alloca.h... (cached) no
checking for alloca... (cached) yes
checking for uid_t... yes
checking for gid_t... yes
checking for working chown... no
checking whether getpgrp requires zero arguments... yes
checking for working strcoll... no
checking for __setostype... no
checking for wait3... yes
checking for mkfifo... yes
checking for dup2... yes
checking for eaccess... yes
checking for fcntl... yes
checking for getdtablesize... yes
checking for getentropy... yes
checking for getgroups... yes
checking for gethostname... yes
checking for getpagesize... (cached) yes
checking for getpeername... yes
checking for getrandom... yes
checking for getrlimit... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for kill... yes
checking for killpg... yes
checking for lstat... yes
checking for nanosleep... yes
checking for pselect... yes
checking for readlink... yes
checking for select... yes
checking for setdtablesize... no
checking for setitimer... yes
checking for statfs... yes
checking for tcgetpgrp... yes
checking for uname... yes
checking for ulimit... yes
checking for waitpid... yes
checking for rename... yes
checking for bcopy... yes
checking for bzero... yes
checking for clock_gettime... yes
checking for confstr... yes
checking for faccessat... yes
checking for fnmatch... yes
checking for getaddrinfo... yes
checking for gethostbyname... yes
checking for getservbyname... yes
checking for getservent... yes
checking for inet_aton... yes
checking for imaxdiv... yes
checking for memmove... yes
checking for pathconf... yes
checking for putenv... (cached) yes
checking for raise... yes
checking for random... yes
checking for regcomp... yes
checking for regexec... yes
checking for setenv... (cached) yes
checking for setlinebuf... yes
checking for setlocale... yes
checking for setvbuf... yes
checking for siginterrupt... yes
checking for strchr... yes
checking for sysconf... yes
checking for syslog... yes
checking for tcgetattr... yes
checking for tcgetwinsize... yes
checking for tcsetwinsize... yes
checking for times... yes
checking for ttyname... yes
checking for tzset... yes
checking for unsetenv... yes
checking for vasprintf... yes
checking for asprintf... (cached) yes
checking for isascii... yes
checking for isblank... yes
checking for isgraph... yes
checking for isprint... yes
checking for isspace... yes
checking for isxdigit... yes
checking for getpwent... yes
checking for getpwnam... yes
checking for getpwuid... yes
checking for mkstemp... yes
checking for mkdtemp... yes
checking for arc4random... yes
checking for strlcat... yes
checking for memfd_create... yes
checking for shm_open... yes
checking for shm_mkstemp... no
checking for getcwd... (cached) yes
checking for memset... yes
checking for strcasecmp... (cached) yes
checking for strcasestr... yes
checking for strerror... yes
checking for strftime... yes
checking for strnlen... (cached) yes
checking for strpbrk... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoll... yes
checking for strtoull... yes
checking for strtoumax... yes
checking for dprintf... yes
checking for strdup... yes
checking for strlcpy... yes
checking for reallocarray... yes
checking for libaudit.h... no
checking whether AUDIT_USER_TTY is declared... no
checking whether confstr is declared... yes
checking whether printf is declared... yes
checking whether brk is declared... yes
checking whether sbrk is declared... yes
checking whether setregid is declared... yes
checking whether strcpy is declared... yes
checking whether strsignal is declared... yes
checking for setresuid... yes
checking for setresgid... yes
checking whether strtold is declared... yes
checking for broken strtold... no
checking whether strtol is declared... yes
checking whether strtoll is declared... yes
checking whether strtoul is declared... yes
checking whether strtoull is declared... yes
checking whether strtoumax is declared... yes
checking for working mktime... no
checking for argz.h... no
checking for errno.h... yes
checking for fcntl.h... yes
checking for malloc.h... yes
checking for stdio_ext.h... no
checking for working mmap... (cached) no
checking for __argz_count... no
checking for __argz_next... no
checking for __argz_stringify... no
checking for dcgettext... no
checking for locale_charset... no
checking for mempcpy... (cached) yes
checking for munmap... (cached) yes
checking for mremap... no
checking for stpcpy... (cached) yes
checking for strcspn... yes
checking for wctype.h... yes
checking for wchar.h... (cached) yes
checking for langinfo.h... yes
checking for mbstr.h... no
checking for mbrlen... yes
checking for mbscasecmp... no
checking for mbscmp... no
checking for mbsncmp... no
checking for mbsnrtowcs... yes
checking for mbsrtowcs... yes
checking for mbschr... no
checking for wcrtomb... (cached) yes
checking for wcscoll... yes
checking for wcsdup... yes
checking for wcwidth... yes
checking for wctype... yes
checking for wcsnrtombs... yes
checking for wcswidth... yes
checking whether mbrtowc and mbstate_t are properly declared... (cached) yes
checking for iswlower... yes
checking for iswupper... yes
checking for towlower... yes
checking for towupper... yes
checking for iswctype... yes
checking for wchar_t in wchar.h... yes
checking for wctype_t in wctype.h... yes
checking for wint_t in wctype.h... yes
checking for wcwidth broken with unicode combining characters... no
checking for locale_charset... (cached) no
checking size of wchar_t... 4
checking for dlopen in -ldl... yes
checking for dlopen... yes
checking for dlclose... yes
checking for dlsym... yes
checking type of array argument to getgroups... gid_t
checking for off_t... yes
checking for mode_t... yes
checking for uid_t... (cached) yes
checking for gid_t... (cached) yes
checking for pid_t... yes
checking for size_t... (cached) yes
checking for intptr_t... yes
checking for uintptr_t... yes
checking for ssize_t... yes
checking for time_t... yes
checking for long long int... (cached) yes
checking for unsigned long long int... (cached) yes
checking for sig_atomic_t in signal.h... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of char *... 8
checking size of size_t... 8
checking size of double... 8
checking size of long long... 8
checking for bits16_t... no
checking for u_bits16_t... no
checking for bits32_t... no
checking for u_bits32_t... no
checking for bits64_t... no
checking for ptrdiff_t... (cached) yes
checking whether stat file-mode macros are broken... no
checking whether #! works in shell scripts... yes
checking whether strchrnul works... no
checking if dup2 fails to clear the close-on-exec flag... configure: WARNING: cannot check dup2 if cross compiling -- defaulting to no
no
checking whether pgrps need synchronization... configure: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no
no
checking for type of signal functions... posix
checking for sys_errlist and sys_nerr... yes
checking whether sys_siglist is declared... yes
checking for sys_siglist in system C library... configure: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no
no
checking for _sys_siglist in signal.h or unistd.h... no
checking for _sys_siglist in system C library... configure: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no
no
checking for clock_t... yes
checking for sigset_t... yes
checking for socklen_t... yes
checking for quad_t... yes
checking for type of struct rlimit fields... rlim_t
checking for intmax_t... yes
checking for uintmax_t... yes
checking size of intmax_t... 8
checking for struct termios.c_line... no
checking for struct termio.c_line... no
checking for struct dirent.d_ino... yes
checking for struct dirent.d_fileno... yes
checking for struct dirent.d_namlen... yes
checking for d_type member in directory struct... yes
checking for struct winsize in sys/ioctl.h and termios.h... sys/ioctl.h
checking for struct timeval in sys/time.h and time.h... yes
checking for struct stat.st_blocks... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for struct timezone in sys/time.h and time.h... yes
checking for offset of exit status in return status from wait... configure: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0
0
checking for struct timespec in <time.h>... yes
checking for struct stat.st_atim.tv_nsec... yes
checking whether struct stat.st_atim is of type struct timespec... yes
checking for sbrk... yes
checking for working sbrk... configure: WARNING: cannot check working sbrk if cross-compiling
yes
checking for brk... no
checking for the existence of strsignal... yes
checking if opendir() opens non-directories... configure: WARNING: cannot check opendir if cross compiling -- defaulting to no
no
checking whether ulimit can substitute for getdtablesize... configure: WARNING: cannot check ulimit if cross compiling -- defaulting to no
no
checking whether fpurge is declared... yes
checking to see if getenv can be redefined... (cached) no
checking if getcwd() will dynamically allocate memory with 0 size... (cached) yes
checking for presence of POSIX-style sigsetjmp/siglongjmp... configure: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to yes
present
checking whether or not strcoll and strcmp differ... configure: WARNING: cannot check strcoll if cross compiling -- defaulting to no
no
checking for standard-conformant snprintf... configure: WARNING: cannot check standard snprintf if cross-compiling
yes
checking for standard-conformant vsnprintf... configure: WARNING: cannot check standard vsnprintf if cross-compiling
yes
checking for strtoimax... yes
checking whether strtoimax is declared... yes
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... (cached) yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgets_unlocked is declared... (cached) no
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getc_unlocked is declared... (cached) yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking for standard-conformant putenv declaration... yes
checking for standard-conformant unsetenv declaration... yes
checking for printf floating point output in hex notation... configure: WARNING: cannot check printf if cross compiling -- defaulting to no
no
checking whether fnmatch can be used to check bracket equivalence classes... configure: WARNING: cannot check fnmatch if cross compiling -- defaulting to no
no
checking if signal handlers must be reinstalled when invoked... configure: WARNING: cannot check signal handling if cross compiling -- defaulting to no
no
checking for presence of necessary job control definitions... (cached) nomissing
checking for presence of named pipes... (cached) nomissing
checking whether termios.h defines TIOCGWINSZ... yes
checking for TIOCSTAT in sys/ioctl.h... yes
checking for FIONREAD in sys/ioctl.h... yes
checking whether WCONTINUED flag to waitpid is unavailable or available but broken... configure: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no
no
checking for speed_t in sys/types.h... no
checking whether getpw functions are declared in pwd.h... yes
checking for unusable real-time signals due to large values... configure: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes
yes
checking which library has the termcap functions... (cached) using libtinfo
checking whether /dev/fd is available... (cached) absent
checking whether /dev/stdin stdout stderr are available... present
checking for default mail directory... unknown
checking shared object configuration for loadable builtins... supported
configure: creating ./config.status
config.status: creating Makefile
config.status: creating builtins/Makefile
config.status: creating lib/readline/Makefile
config.status: creating lib/glob/Makefile
config.status: creating lib/intl/Makefile
config.status: creating lib/malloc/Makefile
config.status: creating lib/sh/Makefile
config.status: creating lib/termcap/Makefile
config.status: creating lib/tilde/Makefile
config.status: creating doc/Makefile
config.status: creating support/Makefile
config.status: creating po/Makefile.in
config.status: creating examples/loadables/Makefile
config.status: creating examples/loadables/Makefile.inc
config.status: creating examples/loadables/Makefile.sample
config.status: creating examples/loadables/perl/Makefile
config.status: creating support/bash.pc
config.status: creating support/bashbug.sh
config.status: creating config.h
config.status: creating buildconf.h
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing stamp-h commands
configure: WARNING: unrecognized options: --enable-static, --disable-shared, --disable-shared
configurePhase completed in 36 seconds
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j4 SHELL=/nix/store/b414sa5drq6pkrpnvw1b01h0viafn1if-bash-5.3p3/bin/bash
rm -f mksyntax
rm -f mksignames.o
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"freebsd"' -DCONF_MACHTYPE='"x86_64-unknown-freebsd"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-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
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"freebsd"' -DCONF_MACHTYPE='"x86_64-unknown-freebsd"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-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[1]: Entering directory '/build/bash-5.3/builtins'
rm -f buildsignames.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/5mszd4c296f1gqb0l3bsr58mrs3q46i8-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 -o buildsignames.o -c ./support/signames.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;
| ^~~~~~~
rm -f alias.o
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....
x86_64-unknown-freebsd-clang -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"freebsd"' -DCONF_MACHTYPE='"x86_64-unknown-freebsd"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/nix/store/5mszd4c296f1gqb0l3bsr58mrs3q46i8-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 -D_THREAD_SAFE -g -O2 -c alias.c
```
Most of that is not relavent but I want to make sure I don't accidentally leave something important out.
[This commit](https://github.com/NixOS/nixpkgs/commit/6a6c4961a243439257f1293f3cfa3ac886bfe74e) fixes the error.
I have completed the `bash-interactive-static-x86_64-unknown-freebsd-5.3p3` by adding the current `github:nixpkgs/pkgs/shells/bash` to `pkgs/bash`, but this makes the next build, `bash-x86_64-unknown-freebsd-5.3p3`, fail with exactly the same error.
I tried to fix this by removing the `&& stdenv.hostPlatform != stdenv.buildPlatform` in the conditional introduced in the forementioned commit but this second build still resulted in a failure. Why? I'm struggling here
4 条评论