[Top][All Lists]

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

[bug #35484] Build fails when CFLAGS=-O2 in the environment

From: Gregoire Sutre
Subject: [bug #35484] Build fails when CFLAGS=-O2 in the environment
Date: Wed, 08 Feb 2012 16:46:09 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Iceweasel/9.0.1


                 Summary: Build fails when CFLAGS=-O2 in the environment
                 Project: GNU GRUB
            Submitted by: gsutre
            Submitted on: Wed 08 Feb 2012 05:46:08 PM CET
                Category: Compilation
                Severity: Ordinary
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Bazaar - trunk
         Reproducibility: Every Time
         Planned Release: None



With a fresh grub trunk export, the following commands lead to a build error:

$ export CFLAGS=-O2
$ (./autogen.sh && ./configure && make) > /tmp/build.log 2>&1
$ tail -10 /tmp/build.log
make[3]: Entering directory `/tmp/GREG/grub/grub-core'
gcc -DHAVE_CONFIG_H -I. -I..   -Wall -W -I../include -I../include 
-nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include
-DGRUB_FILE=\"gnulib/regex.c\" -I. -I. -I.. -I.. -I../include -I../include 
-I../grub-core/lib/posix_wrap -I../grub-core/gnulib -I../grub-core/gnulib     
          -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef
-Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1
-mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm
-fno-asynchronous-unwind-tables -m32 -fno-stack-protector -mno-stack-arg-probe
-Werror -Wno-trampolines  -mrtd -mregparm=3       -fno-builtin -fno-builtin
-Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter             
-O2 -MT gnulib/libgnulib_a-regex.o -MD -MP -MF
gnulib/.deps-core/libgnulib_a-regex.Tpo -c -o gnulib/libgnulib_a-regex.o `test
-f 'gnulib/regex.c' || echo './'`gnulib/regex.c
In file included from gnulib/regex.c:62:0:
gnulib/regcomp.c: In function 're_compile_fastmap_iter.isra.14':
../include/grub/misc.h:218:5: error: 'wc' may be used uninitialized in this
function [-Werror=uninitialized]
gnulib/regcomp.c:327:16: note: 'wc' was declared here
cc1: all warnings being treated as errors

make[3]: *** [gnulib/libgnulib_a-regex.o] Error 1
make[3]: Leaving directory `/tmp/GREG/grub/grub-core'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/GREG/grub/grub-core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/GREG/grub'
make: *** [all] Error 2

Is having CFLAGS=-O2 in the environment unsupported?


File Attachments:

Date: Wed 08 Feb 2012 05:46:08 PM CET  Name: build.log  Size: 189kB   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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