help-grub
[Top][All Lists]
Advanced

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

Re: grub_script.yy.c:2296:17: error: comparison between signed and unsig


From: YuGiOhJCJ Mailing-List
Subject: Re: grub_script.yy.c:2296:17: error: comparison between signed and unsigned integer expressions
Date: Mon, 4 Aug 2014 14:48:23 +0200

> > Hello,
> > 
> > I am compiling grub-2.00 on Slackware 14.1:
> > $ ./configure --prefix=/usr
> > $ make
> > [...]
> > make  all-recursive
> > make[1]: Entering directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00'
> > Making all in grub-core/gnulib
> > make[2]: Entering directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00/grub-core/gnulib'
> > rm -f configmake.h-t && \
> > { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
> >   echo '#define PREFIX "/usr"'; \
> >   echo '#define EXEC_PREFIX "/usr"'; \
> >   echo '#define BINDIR "/usr/bin"'; \
> >   echo '#define SBINDIR "/usr/sbin"'; \
> >   echo '#define LIBEXECDIR "/usr/libexec"'; \
> >   echo '#define DATAROOTDIR "/usr/share"'; \
> >   echo '#define DATADIR "/usr/share"'; \
> >   echo '#define SYSCONFDIR "/usr/etc"'; \
> >   echo '#define SHAREDSTATEDIR "/usr/com"'; \
> >   echo '#define LOCALSTATEDIR "/usr/var"'; \
> >   echo '#define INCLUDEDIR "/usr/include"'; \
> >   echo '#define OLDINCLUDEDIR "/usr/include"'; \
> >   echo '#define DOCDIR "/usr/share/doc/grub"'; \
> >   echo '#define INFODIR "/usr/share/info"'; \
> >   echo '#define HTMLDIR "/usr/share/doc/grub"'; \
> >   echo '#define DVIDIR "/usr/share/doc/grub"'; \
> >   echo '#define PDFDIR "/usr/share/doc/grub"'; \
> >   echo '#define PSDIR "/usr/share/doc/grub"'; \
> >   echo '#define LIBDIR "/usr/lib"'; \
> >   echo '#define LISPDIR ""'; \
> >   echo '#define LOCALEDIR "/usr/share/locale"'; \
> >   echo '#define MANDIR "/usr/share/man"'; \
> >   echo '#define MANEXT ""'; \
> >   echo '#define PKGDATADIR "/usr/share/grub"'; \
> >   echo '#define PKGINCLUDEDIR "/usr/include/grub"'; \
> >   echo '#define PKGLIBDIR "/usr/lib/grub"'; \
> >   echo '#define PKGLIBEXECDIR "/usr/libexec/grub"'; \
> > } | sed '/""/d' > configmake.h-t && \
> > if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; 
> > then \
> >   rm -f configmake.h-t; \
> > else \
> >   rm -f configmake.h; mv configmake.h-t configmake.h; \
> > fi
> > make  all-recursive
> > make[3]: Entering directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00/grub-core/gnulib'
> > make[4]: Entering directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00/grub-core/gnulib'
> > rm -f configmake.h-t && \
> > { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
> >   echo '#define PREFIX "/usr"'; \
> >   echo '#define EXEC_PREFIX "/usr"'; \
> >   echo '#define BINDIR "/usr/bin"'; \
> >   echo '#define SBINDIR "/usr/sbin"'; \
> >   echo '#define LIBEXECDIR "/usr/libexec"'; \
> >   echo '#define DATAROOTDIR "/usr/share"'; \
> >   echo '#define DATADIR "/usr/share"'; \
> >   echo '#define SYSCONFDIR "/usr/etc"'; \
> >   echo '#define SHAREDSTATEDIR "/usr/com"'; \
> >   echo '#define LOCALSTATEDIR "/usr/var"'; \
> >   echo '#define INCLUDEDIR "/usr/include"'; \
> >   echo '#define OLDINCLUDEDIR "/usr/include"'; \
> >   echo '#define DOCDIR "/usr/share/doc/grub"'; \
> >   echo '#define INFODIR "/usr/share/info"'; \
> >   echo '#define HTMLDIR "/usr/share/doc/grub"'; \
> >   echo '#define DVIDIR "/usr/share/doc/grub"'; \
> >   echo '#define PDFDIR "/usr/share/doc/grub"'; \
> >   echo '#define PSDIR "/usr/share/doc/grub"'; \
> >   echo '#define LIBDIR "/usr/lib"'; \
> >   echo '#define LISPDIR ""'; \
> >   echo '#define LOCALEDIR "/usr/share/locale"'; \
> >   echo '#define MANDIR "/usr/share/man"'; \
> >   echo '#define MANEXT ""'; \
> >   echo '#define PKGDATADIR "/usr/share/grub"'; \
> >   echo '#define PKGINCLUDEDIR "/usr/include/grub"'; \
> >   echo '#define PKGLIBDIR "/usr/lib/grub"'; \
> >   echo '#define PKGLIBEXECDIR "/usr/libexec/grub"'; \
> > } | sed '/""/d' > configmake.h-t && \
> > if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; 
> > then \
> >   rm -f configmake.h-t; \
> > else \
> >   rm -f configmake.h; mv configmake.h-t configmake.h; \
> > fi
> > make[4]: Leaving directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00/grub-core/gnulib'
> > make[3]: Leaving directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00/grub-core/gnulib'
> > make[2]: Leaving directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00/grub-core/gnulib'
> > Making all in .
> > make[2]: Entering directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00'
> > 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-pragma
 s 
>  -W
> >  unused -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: In function 'yy_scan_bytes':
> > grub_script.yy.c:2296:17: error: comparison between signed and unsigned 
> > integer expressions [-Werror=sign-compare]
> >   for ( i = 0; i < _yybytes_len; ++i )
> >                  ^
> > ./grub-core/script/yylex.l: At top level:
> > grub_script.yy.c:2351: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
> > make[2]: *** [libgrubmods_a-grub_script.yy.o] Error 1
> > make[2]: Leaving directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory 
> > `/home/yugiohjcj/documents/downloads/software/grub-2.00'
> > make: *** [all] Error 2
> > 
> > Do you have a patch for this?
> > 
> 
> 
> Most likely
> http://git.savannah.gnu.org/cgit/grub.git/commit/?id=9cc836a27be4a95f6f7bfd5b6bc099801645c0ea
>  

Thank you, that's it, it works fine now :)



reply via email to

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