[Debian GNUstep maintainers] Bug#624928: gnustep-base: FTBFS: runtime.h:45:3: error: #error You can not include both objc/objc-api.h and objc/runtime.h. Include objc/objc-api.h for the traditional GNU Objective-C Runtime API and objc/runtime.h for the modern one.

Lucas Nussbaum lucas at lucas-nussbaum.net
Mon May 2 12:31:54 UTC 2011


Source: gnustep-base
Version: 1.20.2-2
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20110502 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> gcc GSObjCRuntime.m -c \
> 	      -MMD -MP -Wall -Wdeclaration-after-statement -DNO_GNUSTEP=1 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -O2 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -fgnu-runtime -fgnu-runtime -fconstant-string-class=NSConstantString -I../../Headers/Additions -I../. -I../ -I../../Headers -I. -I/usr/include/GNUstep -I/usr/local/include/GNUstep -I/usr/local/include/GNUstep -I/usr/include/libxml2 -I/usr/include -I/usr/local/include/GNUstep -I/usr/include/GNUstep \
> 	       -o obj/Additions.obj/GSObjCRuntime.m.o
> In file included from ../../Headers/Additions/GNUstepBase/GSObjCRuntime.h:43:0,
>                  from ../../Headers/Foundation/NSObjCRuntime.h:81,
>                  from ../../Headers/Foundation/NSZone.h:57,
>                  from .././common.h:28,
>                  from GSObjCRuntime.m:32:
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:45:3: error: #error You can not include both objc/objc-api.h and objc/runtime.h. Include objc/objc-api.h for the traditional GNU Objective-C Runtime API and objc/runtime.h for the modern one.
> In file included from ../../Headers/Additions/GNUstepBase/GSObjCRuntime.h:43:0,
>                  from ../../Headers/Foundation/NSObjCRuntime.h:81,
>                  from ../../Headers/Foundation/NSZone.h:57,
>                  from .././common.h:28,
>                  from GSObjCRuntime.m:32:
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:70:29: error: conflicting types for 'Method'
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/objc-api.h:120:28: note: previous declaration of 'Method' was here
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:75:31: error: conflicting types for 'Category'
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/objc-api.h:174:30: note: previous declaration of 'Category' was here
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:87:8: error: redefinition of 'struct objc_method_description'
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/objc-api.h:69:8: note: originally defined here
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:259:57: error: macro "object_copy" passed 2 arguments, but takes just 1
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:259:16: error: 'object_copy' redeclared as different kind of symbol
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/objc-api.h:333:16: note: previous declaration of 'object_copy' was here
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:1129:8: error: redefinition of 'struct objc_struct_layout'
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/encoding.h:93:8: note: originally defined here
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:1138:18: error: conflicting types for 'objc_layout_structure'
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/encoding.h:102:6: note: previous declaration of 'objc_layout_structure' was here
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:1140:19: error: conflicting types for 'objc_layout_structure_next_member'
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/encoding.h:104:7: note: previous declaration of 'objc_layout_structure_next_member' was here
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:1141:18: error: conflicting types for 'objc_layout_finish_structure'
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/encoding.h:105:6: note: previous declaration of 'objc_layout_finish_structure' was here
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/runtime.h:1144:18: error: conflicting types for 'objc_layout_structure_get_info'
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/objc/encoding.h:108:6: note: previous declaration of 'objc_layout_structure_get_info' was here
> make[5]: *** [obj/Additions.obj/GSObjCRuntime.m.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2011/05/02/gnustep-base_1.20.2-2_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |





More information about the pkg-GNUstep-maintainers mailing list