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

 
 

bug #23417: Building with -g3

Submitted by:  Andrei Barbu <abarbu>
Submitted on:  Wed 28 May 2008 08:24:23 PM UTC  
 
Category: GNU MIGSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Compatibility
Status: FixedPrivacy: Public
Assigned to: Thomas Schwinge <tschwinge>Originator Name: 
Open/Closed: ClosedReproducibility: None
Size (loc): NonePlanned Release: GNU MIG 1.3.2
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project Member

 

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

Attach File(s):
   
   
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
  • -unavailable- added by tschwinge (Updated the item)
  • -unavailable- added by abarbu (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 28 May 2008 08:27:50 PM UTCtschwingeCategoryNone=>GNU MIG
      Item GroupNone=>Compatibility
      StatusNone=>Fixed
      Assigned toNone=>tschwinge
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>GNU MIG 1.3.2
    Wed 28 May 2008 08:24:23 PM UTCtschwingeReassign itemThe GNU Hurd, patch #6508=>The GNU Hurd, bug #23417

    Back to the top


    Powered by Savane 3.1-cleanup1