[Debian GNUstep maintainers] Bug#457555: gnustep-examples: FTBFS on powerpc: /tmp/ccNxCrcq.s:657: Error: symbol `.LCF0' is already defined

Yavor Doganov yavor at gnu.org
Sun Dec 23 13:24:19 UTC 2007


Package: gnustep-examples
Version: 1:1.2.0-1
Severity: serious
Tags: patch

The package fails to build on powerpc:

/usr/share/GNUstep/Makefiles/mkinstalldirs Finger.app/.
gcc main.m -c \
          -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1
	  -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1
	  -I./obj/PrecompiledHeaders/ObjC -D_REENTRANT -fPIC -g -Wall
	  -DDEBUG -fno-omit-frame-pointer -DGSWARN -DGSDIAGNOSE
	  -Wno-import -g -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/main.o
/tmp/ccNxCrcq.s: Assembler messages:
/tmp/ccNxCrcq.s:657: Error: symbol `.LCF0' is already defined
make[4]: *** [obj/main.o] Error 1
make[3]: *** [Finger.all.app.variables] Error 2

Full log available at
http://buildd.debian.org/fetch.cgi?pkg=gnustep-examples;ver=1%3A1.2.0-1;arch=powerpc;stamp=1192072201.

I can't reproduce this with -O1 and -O2, so I propose the attached
patch as a workaround.  According to Policy binaries have to be
optimized anyway.  Apparently there is a bug in gnustep-make as well,
because as per the GNUstep Make manual `-O2' is set by default (which
doesn't happen here).

It could be possible that this arch-specific bug is in GCC.  FYI I can
still reproduce the error with `-O0' and gcc-snapshot on my scruffy G3.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.22-3-powerpc
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--[[application/octet-stream; type=patch
Content-Disposition: attachment; filename="optflag.patch"][7bit]]
--- gnustep-examples-1.2.0~/debian/rules 2007-12-23 15:14:12.000000000 +0200
+++ gnustep-examples-1.2.0/debian/rules	2007-12-23 14:28:09.000000000 +0200
@@ -12,6 +12,11 @@
 # package temp dir
 dir		= debian/$(pkg)
 
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+OPTFLAG := -O0
+else
+OPTFLAG := -O2
+endif
 
 # -----------------------------------------------------------------------------
 
@@ -28,7 +33,7 @@
 	dh_testdir
 
 	@ # Compile the package.
-	gs_make messages=yes
+	gs_make OPTFLAG=$(OPTFLAG) messages=yes
 
 	touch build-stamp
 





More information about the pkg-GNUstep-maintainers mailing list