bugThe GNU Hurd - Bugs: bug #23417, Building with -g3

 
 

bug #23417: Building with -g3

Submitter:  Andrei Barbu <abarbu>
Submitted:  Wed 28 May 2008 08:24:23 PM UTC
   
 
Category:  GNU MIG Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Compatibility
Status:  Fixed Privacy:  Public
Assigned to:  tschwinge Originator Name: 
Open/Closed:  Closed Reproducibility:  None
Size (loc):  None Planned Release:  GNU MIG 1.3.2
Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 28 May 2008 08:27:50 PM UTC, comment #3: 

I fixed this in GNU MIG instead and am thus going to uninstall the GNU Mach change.

    2008-05-28  Thomas Schwinge  <tschwinge@gnu.org>
   
    [bug #23417: Building with -g3]
    * lexxer.l (^\#define[ \t]): Ignore until EOL.

Thomas Schwinge <tschwinge>
Group administrator
Wed 28 May 2008 08:24:23 PM UTC, comment #2: 

This item has been reassigned from the project The GNU Hurd patch tracker to your tracker.

The original report is still available at patch #6508

Following are the information included in the original report:

[field #0]                  Item ID: 6508
[field #1]                 Group ID: 30
[field #2]              Open/Closed: Open
[field #3]                 Severity: 3 - Normal
[field #4]                  Privacy: Public
[field #8]                         : Unknown patch Field Display Type
[field #9]                 Category: GNU Mach
[field #10]             Submitted by: abarbu
[field #11]              Assigned to: tschwinge
[field #12]             Submitted on: Freitag 09.05.2008 um 17:45
[field #13]                  Summary: Building with -g3
[field #14]      Original Submission: Currently cpp runs over the headers with $CFLAGS and then the results are passed to mig. With -g3 cpp generates some #defines in the final output, mig is not happy with this situation. This patch just runs cpp over the headers again before passing them to mig without $CFLAGS in order to strip those #defines out. This lets you compile mach with -g3.
[field #16]               Item Group: None
[field #17]                   Status: In Progress
[field #18]        Component Version: None
[field #19]         Operating System: None
[field #20]          Reproducibility: None
[field #21]               Size (loc): None
[field #22]            Fixed Release: None
[field #23]          Planned Release: None
[field #24]                   Effort: 0.00
[field #28]                 Priority: 5 - Normal
[field #31]         Percent Complete: 0%
[field #33]                  Release: None
[field #58]     Custom Select Box #1: None
[field #59]     Custom Select Box #2: None
[field #60]     Custom Select Box #3: None
[field #61]     Custom Select Box #4: None
[field #62]     Custom Select Box #5: None
[field #63]     Custom Select Box #6: None
[field #64]     Custom Select Box #7: None
[field #65]     Custom Select Box #8: None
[field #66]     Custom Select Box #9: None
[field #67]    Custom Select Box #10: None

Thomas Schwinge <tschwinge>
Group administrator
Mon 19 May 2008 01:30:27 PM UTC, comment #1: 

Your analysis is correct, however I found a slightly more elegant solution to strip out the unwanted ``#define''s and installed that one instead.

    2008-05-19  Thomas Schwinge  <tschwinge@gnu.org>
   
    -- Building with -g3
    * Makefile.am (MIGCOM): Let it filter through CPP again.
    Suggested by Andrei Barbu <teval0@gmail.com>.


We now get warnings like these:

    <built-in>:1:1: warning: "__STDC__" redefined
    <built-in>: warning: this is the location of the previous definition
    <built-in>:1:1: warning: "__STDC_HOSTED__" redefined
    <built-in>: warning: this is the location of the previous definition

This needs to be tracked down before this case can be closed.

Thomas Schwinge <tschwinge>
Group administrator
Wed 28 May 2008 08:24:23 PM UTC, original submission:  

Currently cpp runs over the headers with $CFLAGS and then the results are passed to mig. With -g3 cpp generates some #defines in the final output, mig is not happy with this situation. This patch just runs cpp over the headers again before passing them to mig without $CFLAGS in order to strip those #defines out. This lets you compile mach with -g3.

Andrei Barbu <abarbu>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #15648:  debugging.patch added by abarbu (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tschwinge (Updated the item)
  • -email is unavailable- added by abarbu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-05-28 tschwinge CategoryNone GNU MIG
        Item GroupNone Compatibility
        StatusNone Fixed
        Assigned toNone tschwinge
        Open/ClosedOpen Closed
        Planned ReleaseNone GNU MIG 1.3.2
    2008-05-28 tschwinge Reassign itemThe GNU Hurd, patch #6508 The GNU Hurd, bug #23417

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code