bugGNUstep - Bugs: bug #33732, Cannot compile NSObject.m:...

Group
 
 

bug #33732: Cannot compile NSObject.m: reference to internal Class structure invalid in GC mode

Submitter:  Chris Armstrong <carmstrong>
Submitted:  Sat 09 Jul 2011 04:19:30 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Ready For Test
Privacy:  Public Assigned to:  None
Open/Closed:  In Test
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Jul 2011 10:48:28 AM UTC, comment #2: 

Ok, David informs me that --enable-objc-garbage-collection is for the older style of garbage collection, not the new one. You need to use something like CFLAGS=-fobjc-gc to enable to the new GC.

Which is all very confusing. Shouldn't we have a --enable-new-objc-garbage-collection or something?

Chris Armstrong <carmstrong>
Mon 18 Jul 2011 12:50:38 AM UTC, comment #1: 

Hey Chris, maybe send an email to David pointing him to this bug as I don't think he's subscribed to this bug tracker.
--Eric

Eric Wasylishen <ericw>
Group Member
Sat 09 Jul 2011 04:19:30 AM UTC, original submission:  

I'm getting the following when compiling gnustep-base in GC mode:

Making all for library libgnustep-base...
 Compiling file NSObject.m ...
NSObject.m:703:29: error: incomplete definition of type 'struct objc_class'
  gc_type = (GC_descr)aClass->gc_object_type;
                      ~~~~~~^
/GNUstep/Local/Library/Headers/objc/runtime.h:68:16: note: forward declaration of 'struct objc_class'
typedef struct objc_class *Class;
               ^
1 error generated.


I'm using libobjc2 trunk (with boehm_gc=yes) and base trunk.

I configured make with:
CC=clang ./configure --with-layout=gnustep --prefix=/GNUstep --enable-debug-by-default --enable-objc-garbage-collection

I'm not sure how to fix this myself.

Chris Armstrong <carmstrong>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Updated the item)
  • -email is unavailable- added by ericw (Posted a comment)
  • -email is unavailable- added by carmstrong (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-08-26 FredKiefer StatusNone Ready For Test
        Open/ClosedOpen In Test

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code