GNU GRUB - Bugs: bug #35484, Build fails when CFLAGS=-O2 in the...
You are not allowed to post comments on this tracker with your current authentication level.
bug #35484: Build fails when CFLAGS=-O2 in the environment
Submitter: | Grégoire Sutre <gsutre> | ||
Submitted: | Wed 08 Feb 2012 04:46:08 PM UTC | ||
Category: | Compilation | Severity: | Ordinary |
Priority: | 5 - Normal | Item Group: | Software Error |
Status: | Fixed | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Closed | Release: | Bazaar - trunk |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
Wed 08 Feb 2012 11:08:19 PM UTC, comment #3: |
Grégoire Sutre <gsutre> |
Wed 08 Feb 2012 08:35:11 PM UTC, comment #2: Attached patch may help |
Vladimir Serbinenko <phcoder> |
Wed 08 Feb 2012 08:21:16 PM UTC, comment #1: You need to disable werror when using an old compiler. |
Vladimir Serbinenko <phcoder> |
Wed 08 Feb 2012 04:46:08 PM UTC, original submission:
With a fresh grub trunk export, the following commands lead to a build error:
|
Grégoire Sutre <gsutre> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2012-02-09 | phcoder | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2012-02-08 | phcoder | Attached File | - | Added 1.diff, #25030 | |
2012-02-08 | gsutre | Attached File | - | Added build.log, #25026 |
Powered by Savane 3.13-02a9.
Corresponding source code
Yes, the build completes successfully with the patch (and with CFLAGS=-O2).
Regarding your previous comment, this was with a recent compiler on Debian GNU/Linux.
$ gcc --version
gcc (Debian 4.6.2-11) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I forgot to mention it.