-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
Ahoj,
I am trying to build this on Artix GNU/Linux (rolling release) with GCC version 15.1.0 (mingw W64), according to ↗ this recipe.
Build fails for me with
libnt/reg.c:39:5: error: cannot use keyword ‘false’ as enumeration constant
:
/var/cache/makepkg/build/ntloader-git/src
Build NTloader
gcc -Wall -W -Werror -fshort-wchar -DNTLOADER_UTIL utils/bin2c.c -o bin2c
gcc -Wall -W -Werror -fshort-wchar -DNTLOADER_UTIL -idirafter include/ -DEFI_TARGET64 utils/elf2efi.c -o elf2efi64
gcc -Wall -W -Werror -fshort-wchar -DNTLOADER_UTIL -idirafter include/ -DEFI_TARGET32 utils/elf2efi.c -o elf2efi32
./bin2c utils/bcd include/bcd_raw.h bcd_raw "__attribute__ ((section (\".bcd\"), aligned (512)))"
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -DASSEMBLY -Ui386 -E prefix.S -o prefix.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S posix/stdio.c -o posix/stdio.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S posix/string.c -o posix/string.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S posix/vsprintf.c -o posix/vsprintf.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S posix/libgcc.c -o posix/libgcc.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S libnt/bcd.c -o libnt/bcd.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S libnt/charset.c -o libnt/charset.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S libnt/cpio.c -o libnt/cpio.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S libnt/reg.c -o libnt/reg.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S libnt/vdisk.c -o libnt/vdisk.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S libnt/peloader.c -o libnt/peloader.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S disk/efidisk.c -o disk/efidisk.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S disk/fsuuid.c -o disk/fsuuid.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S disk/gpt.c -o disk/gpt.x86_64.s
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S disk/msdos.c -o disk/msdos.x86_64.s
libnt/reg.c:39:5: error: cannot use keyword ‘false’ as enumeration constant
39 | false = 0,
| ^~~~~
libnt/reg.c:39:5: note: ‘false’ is a keyword with ‘-std=c23’ onwards
gcc -Wno-array-bounds -Os -ffreestanding -Wall -W -Werror -nostdinc -Iinclude/ -fshort-wchar -DVERSION="\"v3.0.6\"" -DWIMBOOT_VERSION="\"v2.8.0\"" -DSBAT_GENERATION="\"1\"" -include compiler.h -m64 -mno-red-zone -fpie -fstack-protector-strong -mstack-protector-guard=global -fno-dwarf2-cfi-asm -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-address-of-packed-member -fno-lto -S disk/biosdisk.c -o disk/biosdisk.x86_64.s
make: *** [Makefile:240: libnt/reg.x86_64.s] Error 1
make: *** Waiting for unfinished jobs....
rm disk/gpt.x86_64.s posix/stdio.x86_64.s libnt/peloader.x86_64.s libnt/bcd.x86_64.s posix/vsprintf.x86_64.s disk/efidisk.x86_64.s disk/msdos.x86_64.s libnt/cpio.x86_64.s disk/fsuuid.x86_64.s disk/biosdisk.x86_64.s prefix.x86_64.s posix/string.x86_64.s libnt/vdisk.x86_64.s posix/libgcc.x86_64.s libnt/charset.x86_64.s
Regards!
Metadata
Metadata
Assignees
Labels
No labels