Skip to content

Instantly share code, notes, and snippets.

@muradm
Created February 28, 2021 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muradm/962f9d725758b81ae4d1d5eea243b9d2 to your computer and use it in GitHub Desktop.
Save muradm/962f9d725758b81ae4d1d5eea243b9d2 to your computer and use it in GitHub Desktop.
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=X86_64_EFI -m64 -nostdinc -isystem /gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.5.0/include -I../include -I../include -DGRUB_FILE=\"commands/efi/lssal.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -D_FILE_OFFSET_BITS=64 -std=gnu99 -Os -m64 -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 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-ident -mcmodel=large -mno-red-zone -fno-stack-protector -Wtrampolines -ffreestanding -Wimplicit-fallthrough=0 -MT commands/efi/lssal_module-lssal.o -MD -MP -MF commands/efi/.deps-core/lssal_module-lssal.Tpo -c -o commands/efi/lssal_module-lssal.o `test -f 'commands/efi/lssal.c' || echo './'`commands/efi/lssal.c
In file included from lib/gnulib/regex_internal.h:843:0,
from lib/gnulib/regex.c:70:
lib/gnulib/attribute.h:63:0: warning: "ATTRIBUTE_ERROR" redefined
#define ATTRIBUTE_ERROR(msg) _GL_ATTRIBUTE_ERROR (msg)
In file included from ../include/grub/err.h:24:0,
from ../grub-core/lib/posix_wrap/errno.h:22,
from ../grub-core/lib/gnulib/libc-config.h:39,
from lib/gnulib/regex.c:23:
../include/grub/compiler.h:33:0: note: this is the location of the previous definition
# define ATTRIBUTE_ERROR(msg) \
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=X86_64_EFI -m64 -nostdinc -isystem /gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.5.0/include -I../include -I../include -DGRUB_FILE=\"commands/efi/lsefimmap.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -D_FILE_OFFSET_BITS=64 -std=gnu99 -Os -m64 -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 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-ident -mcmodel=large -mno-red-zone -fno-stack-protector -Wtrampolines -ffreestanding -Wimplicit-fallthrough=0 -MT commands/efi/lsefimmap_module-lsefimmap.o -MD -MP -MF commands/efi/.deps-core/lsefimmap_module-lsefimmap.Tpo -c -o commands/efi/lsefimmap_module-lsefimmap.o `test -f 'commands/efi/lsefimmap.c' || echo './'`commands/efi/lsefimmap.c
In file included from lib/gnulib/regex_internal.h:843:0,
from lib/gnulib/regex.c:70:
lib/gnulib/regcomp.c: In function 'peek_token_bracket':
lib/gnulib/attribute.h:142:21: error: '_GL_ATTRIBUTE_FALLTHROUGH' undeclared (first use in this function); did you mean '_GL_ATTRIBUTE_H'?
#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
^
lib/gnulib/regcomp.c:2076:4: note: in expansion of macro 'FALLTHROUGH'
FALLTHROUGH;
^~~~~~~~~~~
lib/gnulib/attribute.h:142:21: note: each undeclared identifier is reported only once for each function it appears in
#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
^
lib/gnulib/regcomp.c:2076:4: note: in expansion of macro 'FALLTHROUGH'
FALLTHROUGH;
^~~~~~~~~~~
lib/gnulib/regcomp.c: In function 'parse_expression':
lib/gnulib/attribute.h:142:21: error: '_GL_ATTRIBUTE_FALLTHROUGH' undeclared (first use in this function); did you mean '_GL_ATTRIBUTE_H'?
#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
^
lib/gnulib/regcomp.c:2314:7: note: in expansion of macro 'FALLTHROUGH'
FALLTHROUGH;
^~~~~~~~~~~
gcc -std=gnu99 -Os -m64 -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 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-ident -mcmodel=large -mno-red-zone -fno-stack-protector -Wtrampolines -ffreestanding -Wimplicit-fallthrough=0 -m64 -Wl,-melf_x86_64 -Wl,--build-id=none -nostdlib -Wl,-N -Wl,-r,-d -o cmp.module commands/cmp_module-cmp.o
lib/gnulib/regexec.c: In function 'check_node_accept':
lib/gnulib/attribute.h:142:21: error: '_GL_ATTRIBUTE_FALLTHROUGH' undeclared (first use in this function); did you mean '_GL_ATTRIBUTE_H'?
#define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
^
lib/gnulib/regexec.c:3954:7: note: in expansion of macro 'FALLTHROUGH'
FALLTHROUGH;
^~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment