[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#703074: gcc-4.8: FTBFS on powerpcspe



Package: gcc-4.8
Version: 4.8-20130308-1
Severity: wishlist
Tags: patch experimental
User: debian-powerpcspe@breakpoint.cc
Usertags: powerpcspe

Hi,

gcc-4.8 currently FTBFS on powerpcspe[1] like this:

[...]
/«PKGBUILDDIR»/build/./gcc/xgcc -B/«PKGBUILDDIR»/build/./gcc/ -B/usr/powerpc-linux-gnuspe/bin/ -B/usr/powerpc-linux-gnuspe/lib/ -isystem /usr/powerpc-linux-gnuspe/include -isystem /usr/powerpc-linux-gnuspe/sys-include -isystem /«PKGBUILDDIR»/build/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../.././gcc -I../../../src/libgcc -I../../../src/libgcc/. -I../../../src/libgcc/../gcc -I../../../src/libgcc/../include -I../../../src/libgcc/../libdecnumber/dpd -I../../../src/libgcc/../libdecnumber -DHAVE_CC_TLS  -o e500crtres32gpr_s.o -MT e500crtres32gpr_s.o -MD -MP -MF e500crtres32gpr_s.dep -DSHARED -c -xassembler-with-cpp ../../../src/libgcc/config/rs6000/e500crtres32gpr.S
../../../src/libgcc/config/rs6000/crtsavevr.S: Assembler messages:
../../../src/libgcc/config/rs6000/crtsavevr.S:38: Error: Unrecognized opcode: `stvx'
[...]

The already existing patch powerpc_nofprs.diff in Debian's gcc-4.8 needs to be
extended to fix some additional cases now. Consider the attached patch.

Additionally, the patch available in http://bugs.debian.org/701796
(gcc-snapshot) needs to be applied also to make gcc-4.8 build on powerpcspe.

Thanks in advance,

Roland


[1] http://wiki.debian.org/PowerPCSPEPort


-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: powerpcspe (ppc)

Kernel: Linux 3.8.0 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
--- debian/patches/powerpc_nofprs.diff.orig	2013-03-13 22:33:46.830805796 +0000
+++ debian/patches/powerpc_nofprs.diff	2013-03-13 22:34:11.594811950 +0000
@@ -43,3 +43,33 @@
  
  #endif
 +#endif
+--- a/src/libgcc/config/rs6000/crtsavevr.S	2013-03-13 22:25:25.802681336 +0000
++++ b/src/libgcc/config/rs6000/crtsavevr.S	2013-03-13 22:26:21.054695066 +0000
+@@ -24,6 +24,7 @@
+ 
+ /* On PowerPC64 Linux, these functions are provided by the linker.  */
+ #ifndef __powerpc64__
++#ifndef __NO_FPRS__
+ 
+ #undef __ALTIVEC__
+ #define __ALTIVEC__ 1
+@@ -85,3 +86,4 @@
+ CFI_ENDPROC
+ 
+ #endif
++#endif
+--- a/src/libgcc/config/rs6000/crtrestvr.S	2013-03-13 22:25:28.394681980 +0000
++++ b/src/libgcc/config/rs6000/crtrestvr.S	2013-03-13 22:26:21.058695067 +0000
+@@ -24,6 +24,7 @@
+ 
+ /* On PowerPC64 Linux, these functions are provided by the linker.  */
+ #ifndef __powerpc64__
++#ifndef __NO_FPRS__
+ 
+ #undef __ALTIVEC__
+ #define __ALTIVEC__ 1
+@@ -85,3 +86,4 @@
+ CFI_ENDPROC
+ 
+ #endif
++#endif

Reply to: