bugGNU GRUB - Bugs: bug #35513, Build fails with NLS disabled...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #35513: Build fails with NLS disabled [-Werror=shadow]

Submitted by:  GrĂ©goire Sutre <gsutre>
Submitted on:  Sun 12 Feb 2012 12:26:58 PM UTC  
 
Category: CompilationSeverity: Ordinary
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

Sun 12 Feb 2012 12:26:58 PM UTC, original submission:

This is with a fresh grub trunk export on Debian/GNU Linux (amd64), GCC 4.6.2.

$ (./autogen.sh && ./configure --disable-nls && make) > /tmp/build.log 2>&1
$ tail -10 /tmp/build.log
gcc -DHAVE_CONFIG_H -I. -Wall -W -I./include -DGRUB_UTIL=1 -DGRUB_LIBDIR=\"/usr/local/lib/grub\" -DLOCALEDIR=\"/usr/local/share/locale\" -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -DGRUB_TARGET_CPU_I386=1 -DGRUB_FILE=\"util/misc.c\" -I. -I. -I. -I. -I./include -I./include -I./grub-core/gnulib -I./grub-core/gnulib -Wall -W -Wshadow -Wold-style-declaration -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Warray-bounds -Wattributes -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcoverage-mismatch -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wunsafe-loop-optimizations -Wlogical-op -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmudflap -Wmultichar -Wnonnull -Woverflow -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstack-protector -Wstrict-aliasing -Wswitch -Wsync-nand -Wtrigraphs -Wtype-limits -Wundef -Wuninitialized -Wunknown-pragmas -Wunreachable-code -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -Wpointer-sign -Werror -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition -MT util/libgrubkern_a-misc.o -MD -MP -MF util/.deps-util/libgrubkern_a-misc.Tpo -c -o util/libgrubkern_a-misc.o `test -f 'util/misc.c' || echo './'`util/misc.c
In file included from util/misc.c:43:0:
./include/grub/i18n.h:45:1: error: declaration of 'gettext' shadows a built-in function [-Werror=shadow]
cc1: all warnings being treated as errors

make[2]: *** [util/libgrubkern_a-misc.o] Error 1
make[2]: Leaving directory `/tmp/GREG/grub'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/GREG/grub'
make: *** [all] Error 2

Grégoire Sutre <gsutre>
Project Member

 

Attached Files
file #25047:  build.log added by gsutre (55KiB - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by gsutre (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 21 Feb 2012 03:15:21 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 12 Feb 2012 12:26:58 PM UTCgsutreAttached File-=>Added build.log, #25047

    Back to the top


    Powered by Savane 3.1-cleanup1