FS#12121 - fails with host GCC 4.6.0

Attached to Project: Rockbox
Opened by Sean Bartell (wtachi) - Thursday, 19 May 2011, 19:06 GMT
Last edited by Nils Wallménius (nls) - Saturday, 28 May 2011, 07:15 GMT
Task Type Patches
Category Build environment
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


On systems with GCC 4.6.0 (e.g. Arch Linux), fails to build some targets due to the new -Wunused-but-set-variable warning. This patch fixes it by just using --disable-werror, as I don't see a point in keeping it enabled.
This task depends upon

Closed by  Nils Wallménius (nls)
Saturday, 28 May 2011, 07:15 GMT
Reason for closing:  Accepted
Additional comments about closing:  committed, thanks!
Comment by Nils Wallménius (nls) - Friday, 27 May 2011, 07:34 GMT
I tried rebuilding my arm-elf-eabi and m68k-elf toolchains with gcc .46 on debian, binutils produces plenty of -Wunused-but-set-variable warnings but it doesn't seem to use -Werror as it completes fine.
For which toolchain did this hit you?

I still think the patch is fine but i'd like to know what exactly it fixes :)
Comment by Sean Bartell (wtachi) - Friday, 27 May 2011, 12:59 GMT
gcc (GCC) 4.6.0 20110513 (prerelease), Arch Linux version (gcc-multilib-4.6.0-5).

Debian apparently patches GCC to take this warning out of -Werror ( -Werror should still appear in the commands run.
Comment by Dominik Riebeling (bluebrother) - Friday, 27 May 2011, 15:11 GMT
I will give this a try later on Fedora 15 which also ships gcc 4.6.