[PR41617, 4.4/4.5 regression] ObjC: Error: symbol `_OBJC_CLASS_AppController' is already defined

Bug #445308 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc
Fix Released
Medium
gcc-4.4 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: gcc-4.4

seen with 4.4 and 4.5 on arm-linux-gnueabi:

gcc AppController.m -c \
              -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -fgnu-runtime -fconstant-string-class=NSConstantString -I. -I/usr/local/include/GNUstep -I/usr/include/GNUstep \
               -o obj/AppController.m.o
In file included from Date.h:4,
                 from Event.h:3,
                 from AppointmentEditor.h:3,
                 from AppController.m:4:
/usr/include/ical.h:22:2: warning: #warning "#include <ical.h> is deprecated. Please #include <libical/ical.h> instead."
/tmp/ccdTn0Sv.s: Assembler messages:
/tmp/ccdTn0Sv.s:11021: Error: symbol `_OBJC_CLASS_AppController' is already defined
make[2]: *** [obj/AppController.m.o] Error 1

Tags: armel
Revision history for this message
In , Matthias Klose (doko) wrote :

Created attachment 18735
preprocessed source

Revision history for this message
In , Matthias Klose (doko) wrote :

Created attachment 18736
assembler file

Revision history for this message
In , Matthias Klose (doko) wrote :

Created attachment 18737
preprocessed source

Revision history for this message
In , Matthias Klose (doko) wrote :

Created attachment 18738
assembler file

Revision history for this message
Matthias Klose (doko) wrote : [4.4/4.5 regression] ObjC: Error: symbol `_OBJC_CLASS_AppController' is already defined

Binary package hint: gcc-4.4

seen with 4.4 and 4.5 on arm-linux-gnueabi:

gcc AppController.m -c \
              -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -g -Wall -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -fgnu-runtime -fconstant-string-class=NSConstantString -I. -I/usr/local/include/GNUstep -I/usr/include/GNUstep \
               -o obj/AppController.m.o
In file included from Date.h:4,
                 from Event.h:3,
                 from AppointmentEditor.h:3,
                 from AppController.m:4:
/usr/include/ical.h:22:2: warning: #warning "#include <ical.h> is deprecated. Please #include <libical/ical.h> instead."
/tmp/ccdTn0Sv.s: Assembler messages:
/tmp/ccdTn0Sv.s:11021: Error: symbol `_OBJC_CLASS_AppController' is already defined
make[2]: *** [obj/AppController.m.o] Error 1

Changed in gcc-4.4 (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Changed in gcc:
status: Unknown → New
Revision history for this message
In , Jakub-gcc (jakub-gcc) wrote :

This doesn't even compile, you forgot NXConstStr.h stuff.
When it is added, it compiles just fine, at least on x86_64-linux and i686-linux, no assembler errors.

Revision history for this message
In , Matthias Klose (doko) wrote :

Created attachment 18740
preprocessed source

regenerated with objc/NXConstStr.h included.

Matthias Klose (doko)
summary: - [4.4/4.5 regression] ObjC: Error: symbol `_OBJC_CLASS_AppController' is
- already defined
+ [PR41617, 4.4/4.5 regression] ObjC: Error: symbol
+ `_OBJC_CLASS_AppController' is already defined
Revision history for this message
In , Iains (iains) wrote :

Is this still a problem?

I cannot reproduce this on i686-darwin9 on trunk or 4.5.2 with :

 ./gcc/xgcc -Bgcc ../tests/AppController_44.mi -c -fgnu-runtime -w

Revision history for this message
In , Nicola-gcc (nicola-gcc) wrote :

Matthias,

it looks like this may be an "arm-linux-gnueabi"-specific problem ... it does work for me (as for everyone else) on i686-pc-linux-gnu, but you're clearly on arm-linux-gnueabi.

Can you produce a smaller testcase? Does it happen with all Objective-C classes?

Thanks

Revision history for this message
In , Matthias Klose (doko) wrote :

no, can't see this even with 4.4 now, on a system with binutils 2.21

Revision history for this message
In , Nicola-gcc (nicola-gcc) wrote :

So, can I close the bug ?

Thanks

Revision history for this message
In , Matthias Klose (doko) wrote :

works on armv5 too, current 4.4 branch and binutils 2.20.1

Changed in gcc:
importance: Unknown → Medium
status: New → Fix Released
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.