Use CFLAGS=-grecord-gcc-switches

Bug #1233014 reported by Vincent Bernat
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Hi!

Tools, like systemtap, need to circumvent some bugs in GCC, notably in the way it reports debugging data for highly-optimized programs. Systemtap includes workarounds but they are only reliable when the kernel is using some options. Therefore, systemtap needs to know with which option GCC was invoked.

For example, LTS kernels for Precise are using GCC 4.6.3 Precise which has a bug related to -mfentry and produce incorrect offsets for debugging symbols (off by 5). Systemtap includes a workaround for this but it can only be reliably detected if it knows that -mfentry flag was requested.

This can be done by using CFLAGS=-grecord-gcc-switches. Please, use it for all future release, even when the version of GCC used has no known bug.

Thanks.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1233014

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Vincent Bernat (vbernat) wrote :

No need for a log file, this is a wishlist.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
Changed in linux (Ubuntu):
importance: Medium → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.