Dear GRUB folks,
On Debian sid/unstable with *gcc-12* 12.3.0-7, *gcc-13* 13.2.0-1, and
*clang* 1:14.0-55.7, since commit 2b7902459803 (gnulib: Update gnulib
version and drop most gnulib patches), I am unable to build GRUB for the
platform *coreboot* [1]:
```
$ git clean -dfx && ./configure --with-platform=coreboot && make -j4
default_payload.elf
[…]
*******************************************************
GRUB2 will be compiled with following components:
Platform: i386-coreboot
With devmapper support: No (need libdevmapper header)
With memory debugging: No
With disk cache statistics: No
With boot time statistics: No
efiemu runtime: Yes
grub-mkfont: Yes
grub-mount: No (need fuse or fuse3 libraries)
starfield theme: No (No DejaVu found)
With libzfs support: No (need zfs library)
Build-time grub-mkfont: Yes
With unifont from /usr/share/fonts/X11/misc/unifont.pcf.gz
With liblzma from -llzma (support for XZ-compressed mips images)
With stack smashing protector: No
*******************************************************
real 0m23,192s
user 0m15,074s
sys 0m6,481s
gcc -DHAVE_CONFIG_H -I. -Wall -W -DGRUB_UTIL=1 -D_FILE_OFFSET_BITS=64
-I./include -DGRUB_FILE=\"util/grub-mkstandalone.c\" -I. -I. -I. -I.
-I./include -I./include -I./grub-core/lib/libgcrypt-grub/src/
-I./grub-core/lib/gnulib -I./grub-core/lib/gnulib
-D_FILE_OFFSET_BITS=64 -std=gnu99 -fno-common -Wall -W -Wshadow
-Wpointer-arith -Wundef -Wchar-subscripts -Wcomment
-Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero
-Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k
-Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain
-Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses
-Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch
-Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label
-Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings
-Wnested-externs -Wstrict-prototypes -Wcast-align -Wextra -Wattributes
-Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch
-Wmissing-field-initializers -Wnonnull -Woverflow -Wvla
-Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros
-Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs
-Wmissing-prototypes -Wmissing-declarations -Wformat=2 -Werror
-Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter
-Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -MT
util/grub_mkstandalone-grub-mkstandalone.o -MD -MP -MF
util/.deps-util/grub_mkstandalone-grub-mkstandalone.Tpo -c -o
util/grub_mkstandalone-grub-mkstandalone.o `test -f
'util/grub-mkstandalone.c' || echo './'`util/grub-mkstandalone.c
In file included from util/grub-mkstandalone.c:29:
./grub-core/lib/gnulib/argp.h:529:6: error:
‘_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM’ is an unrecognized format function
type [-Werror=format=]
529 | ;
| ^
./grub-core/lib/gnulib/argp.h:537:6: error:
‘_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM’ is an unrecognized format function
type [-Werror=format=]
537 | ;
| ^
./grub-core/lib/gnulib/argp.h:555:6: error:
‘_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM’ is an unrecognized format function
type [-Werror=format=]
555 | ;
| ^
./grub-core/lib/gnulib/argp.h:564:6: error:
‘_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM’ is an unrecognized format function
type [-Werror=format=]
564 | ;
| ^
cc1: all warnings being treated as errors
make: *** [Makefile:10872: util/grub_mkstandalone-grub-mkstandalone.o]
Fehler 1
```
Building the default platform first
git clean -dfx && ./bootstrap && ./configure && make
then the build for the platform *coreboot* succeeds:
make clean && ./configure --with-platform=coreboot && make
Kind regards,
Paul
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel