Seen with a lot of GNUstep applications: 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
Created attachment 18735 [details] preprocessed source
Created attachment 18736 [details] assembler file
Created attachment 18737 [details] preprocessed source
Created attachment 18738 [details] assembler file
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.
Created attachment 18740 [details] preprocessed source regenerated with objc/NXConstStr.h included.
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
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
no, can't see this even with 4.4 now, on a system with binutils 2.21
So, can I close the bug ? Thanks
works on armv5 too, current 4.4 branch and binutils 2.20.1