Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to compile the "modules"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tonypowell
n00b
n00b


Joined: 20 Aug 2011
Posts: 1

PostPosted: Sat Aug 20, 2011 9:09 pm    Post subject: Failed to compile the "modules" Reply with quote

When trying to compile with "genkernel all", I get this warning before telling me it failed

Code:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable-"
Back to top
View user's profile Send private message
dwbowyer
Apprentice
Apprentice


Joined: 18 Apr 2008
Posts: 155

PostPosted: Sun Aug 21, 2011 12:17 am    Post subject: Reply with quote

Not sure where or when I read about it, since it didn't matter much to me, but I think it was phoronix.com.

I'm about 95% sure I remember this correctly. As you no doubt know, it's a hard term to run a search in forums , for me to verify.
The option "-Wno-unused-but-set-variable-" is supported by >=gcc-4.6.0 and supposedly ignored by <=gcc.4.5.x.


This offers the best description I could find in 10 minutes of google search.
http://lists.fedoraproject.org/pipermail/devel/2011-February/148523.html

Long and short of it -- packages with this problem need to define the unused variables as unused, cast to void, or as a damn dirty hack
set -Wpermissive.

Your solution (one time only), I think, might be to add -Wunused-but-set-variable or -Wpermissive to CFLAGS for that one package to build.
Don't set that permanently though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum