Opened 12 years ago

Closed 10 years ago

#835 closed defect (wontfix)

GCC 4.6.0 kernel compile failure and -Werror=unused-but-set-variable

Reported by: Andrew Bradford Owned by: Andrew Bradford
Priority: major Milestone: CLFS Embedded 1.0.0
Component: BOOK Version: CLFS Embedded GIT
Keywords: Cc:


When building kernels with GCC 4.6.0 the new way GCC deals with -Werror and unused-but-set-variable is slightly different than on GCC 4.5. Now, kernel compiles that set but don't use variables in a whole bunch of places will cause the make to fail. That's nice of GCC to point out these types of warnings and the kernel Makefile wants these warnings, but we don't really want the make to stop because of them.

See -dev mailing list thread finding this on a MIPS build:

LKML also found this on PowerPC:

The proposed workaround is some sed'ing but there might be kernel patches in the works as well to simply fix this. Best would be to fix the offending source files so the warnings don't come up in the first place and keep -Werror but I'm not a kernel hacker (at least not yet).

Change History (2)

comment:1 Changed 11 years ago by Andrew Bradford

Owner: changed from clfs-commits@… to Andrew Bradford
Status: newassigned

comment:2 Changed 10 years ago by Andrew Bradford

Resolution: wontfix
Status: assignedclosed

We've moved to GCC 4.7.3 and Linux 3.0. This shouldn't be an issue any more.

Note: See TracTickets for help on using tickets.