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

Bug#693328: gcc-4.7: Please support arch powerpcspe



Hi,

On 16/11/12 17:39, Matthias Klose wrote:
>> I'm attaching a patch that fixes building gcc-4.7 on powerpcspe [1].
> 
> please be more specific what you are trying to fix.

The patch actually has two parts:

1) multiarch/multilib
2) powerpcspe patching, omitting certain asm that isn't available on
powerpcspe

This fixes build errors like

/«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    -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/crtresxfpr.S: Assembler messages:
../../../src/libgcc/config/rs6000/crtresxfpr.S:64: Error: Unrecognized
opcode: `lfd'

> Also, afaics, the port wasn't built with multilibs enabled yet. If you do so,
> then don't just update the generated control file. Also you should get some
> consensus which multiarch triplets to use for the multilibs.

I thought I have seen multilib stuff in
/usr/lib/powerpc-linux-gnuspe/ on debian-ports.org but currently can't
remember which package. So enabled it for other packages also since
powerpc also has this layout.

However, powerpcspe hardware isn't able to run code from powerpc or
powerpc64, and vice versa. What would be the right strategy here?
Staying away from multilib for powerpcspe and putting everything
directly in /usr/lib/?

(The triplet would be powerpc-linux-gnuspe as already documented in the
wiki, and is the only one compatible with powerpcspe for now.)

Sorry for patching generated debian/control. Maybe I missed it since in
the SVN repo, there is also the debian/control checked in (not obviously
generated)? What is the right file(s) to patch?

Thanks in advance,

Roland


Reply to: