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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Chris Armstrong <carmstrong>
Submitted on:  Sat 09 Jul 2011 04:19:30 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Ready For Test
Privacy: PublicAssigned to: None
Open/Closed: In Test

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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 26 Aug 2011 10:24:08 PM UTCFredKieferStatusNone=>Ready For Test
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup1