From: Darren Kenny <darren.kenny@oracle.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>, grub-devel@gnu.org
Subject: Re: clang build fails with `../grub-core/lib/gnulib/regex.h:682:20: error: variable length array used [-Werror,-Wvla]`
Date: Fri, 25 Mar 2022 12:24:06 +0000 [thread overview]
Message-ID: <m2tubm9q55.fsf@oracle.com> (raw)
In-Reply-To: <2627a8bf-45b0-f474-82b2-8b921f8ac24a@molgen.mpg.de>
Hi Paul,
I'm seeing that same issue, and I sent an e-mail to the gnulib list
about it yesterday. I've not gotten a response to it yet though - but it
is on my radar to get fixed since it's also blocking some other work I'm
doing.
Thanks,
Darren.
On Friday, 2022-03-25 at 08:12:16 +01, Paul Menzel wrote:
> Dear GRUB folks,
>
>
> On Debian sid/unstable clang 13.0.1 fails to build GRUB due to a problem
> in Gnulib:
>
> ```
> $ git log --oneline -1 --no-decorate
> 7c316e183 term/efi/console: Do not set cursor until the first text output
> $ ./configure --with-platform=coreboot CC=clang && make
> […]
> clang -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_COREBOOT=1
> -DGRUB_MACHINE=I386_COREBOOT -m32 -msoft-float -Xclang -msoft-float
> -Xclang -no-implicit-float -nostdinc -isystem
> /usr/lib/llvm-13/lib/clang/13.0.1/include -I../include -I../include
> -DGRUB_FILE=\"commands/regexp.c\" -I. -I. -I.. -I.. -I../include
> -I../include -I../grub-core/lib/libgcrypt-grub/src/
> -I../grub-core/lib/posix_wrap -I../grub-core/lib/gnulib
> -I../grub-core/lib/gnulib -D_FILE_OFFSET_BITS=64 -std=gnu99 -fno-common
> -Os -m32 -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 -g
> -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -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 -march=i386
> -falign-functions=1 -freg-struct-return -mno-mmx -mno-sse -mno-sse2
> -mno-sse3 -mno-3dnow -fno-dwarf2-cfi-asm -mno-stack-arg-probe
> -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-ident -Qn
> -Qunused-arguments -fno-stack-protector -Werror -ffreestanding
> -fno-builtin -Wno-undef -Wno-sign-compare -Wno-unused
> -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code
> -Wno-conversion -MT commands/regexp_module-regexp.o -MD -MP -MF
> commands/.deps-core/regexp_module-regexp.Tpo -c -o
> commands/regexp_module-regexp.o `test -f 'commands/regexp.c' || echo
> './'`commands/regexp.c
> In file included from commands/regexp.c:28:
> ../grub-core/lib/gnulib/regex.h:682:20: error: variable length array
> used [-Werror,-Wvla]
> _REGEX_NELTS (__nmatch)],
> ^~~~~~~~
> ../grub-core/lib/gnulib/regex.h:528:27: note: expanded from macro
> '_REGEX_NELTS'
> # define _REGEX_NELTS(n) n
> ^
> 1 error generated.
> make[3]: *** [Makefile:41321: commands/regexp_module-regexp.o] Fehler 1
> ```
>
> I tried to use latest Gnulib (not the one defined in `bootstrap.conf`),
> but the error remains.
>
> How to deal with that, if I am unsure how to fix it? Report it to the
> Gnulib folks?
>
>
> Kind regards,
>
> Paul
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
prev parent reply other threads:[~2022-03-25 12:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 7:12 clang build fails with `../grub-core/lib/gnulib/regex.h:682:20: error: variable length array used [-Werror,-Wvla]` Paul Menzel
2022-03-25 12:24 ` Darren Kenny [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2tubm9q55.fsf@oracle.com \
--to=darren.kenny@oracle.com \
--cc=grub-devel@gnu.org \
--cc=pmenzel@molgen.mpg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.