Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 464274

Summary: portage should warn if FEATURES=splitdebug with no -g in CFLAGS
Product: Portage Development Reporter: William Throwe <wtt6>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement CC: alexanderyt
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description William Throwe 2013-04-03 05:46:40 UTC
Forgetting to add -g (or -ggdb or similar) to CFLAGS/CXXFLAGS when enabling FEATURES=splitdebug seems to be an at least somewhat common mistake, and you don't get any obvious indication of what is wrong if you try to use the resulting .debug files with gdb.  (It just says "no debugging symbols found", which is true, but didn't help me solve the problem.)  Plus once you do figure it out you have to recompile anything you want debug symbols for.

It would be nice to provide a warning to the user if they forget this so they don't get useless .debug files.