help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grub command line bug?


From: Alexey Orishko
Subject: Re: Grub command line bug?
Date: Tue, 6 May 2014 01:09:51 +0200

On Mon, May 5, 2014 at 10:06 PM, Jordan Uggla <address@hidden> wrote:
> Please include the complete build log. The fact that you're using
> --disable-werror may mean that the problem is related to warnings that
> would otherwise be treated as errors and stop the build.

Grub build commands (from LFS):

#Fix an incompatibility between this package and Glibc-2.19:
sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h

#Prepare GRUB for compilation:
./configure --prefix=/usr          \
            --sbindir=/sbin        \
            --sysconfdir=/etc      \
            --disable-grub-emu-usb \
            --disable-efiemu
# without           --disable-werror
make

I got build failure due to unused var (not really sure where to fix it
in order to continue further):

mv -f .deps-util/libgrubmods_a-grub_script.tab.Tpo
.deps-util/libgrubmods_a-grub_script.tab.Po
gcc -DHAVE_CONFIG_H -I.   -Wall -W -I./include -DGRUB_UTIL=1
-DGRUB_LIBDIR=\"/usr/lib/grub\" -DLOCALEDIR=\"/usr/share/locale\"
-DGRUB_FILE=\"grub_script.yy.c\" -I. -I. -I. -I. -I./include
-I./include  -I./grub-core/lib/minilzo -I./grub-core/lib/xzembed
-DMINILZO_HAVE_CONFIG_H                -Wall -W -Wshadow
-Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress
-Wattributes -Wcast-align -Wchar-subscripts -Wcomment
-Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero
-Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args
-Wformat-security -Wformat-y2k -Wimplicit
-Wimplicit-function-declaration -Wimplicit-int -Winit-self
-Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces
-Wmissing-field-initializers -Wmissing-format-attribute
-Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses
-Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point
-Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef
-Wunknown-pragmas -Wunused -Wunused-function -Wunused-label
-Wunused-parameter -Wunused-value  -Wunused-variable -Wvariadic-macros
-Wvolatile-register-var -Wwrite-strings -Wnested-externs
-Wstrict-prototypes -Wpointer-sign -Werror  -fno-builtin -Wno-undef
-Wno-error=missing-noreturn               -MT
libgrubmods_a-grub_script.yy.o -MD -MP -MF
.deps-util/libgrubmods_a-grub_script.yy.Tpo -c -o
libgrubmods_a-grub_script.yy.o `test -f 'grub_script.yy.c' || echo
'./'`grub_script.yy.c
grub_script.yy.c:2354:13: error: 'yy_fatal_error' defined but not used
[-Werror=unused-function]
 static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
             ^
cc1: all warnings being treated as errors
Makefile:19276: recipe for target 'libgrubmods_a-grub_script.yy.o' failed
make[2]: *** [libgrubmods_a-grub_script.yy.o] Error 1
make[2]: Leaving directory '/sources/grub-2.00'
Makefile:20313: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/sources/grub-2.00'
Makefile:15981: recipe for target 'all' failed
make: *** [all] Error 2

Rest of the logs attached.

Regards,
Alexey

Attachment: configure.log
Description: Text Data

Attachment: make.log
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]