Bug#696474: llvm-3.2: Please support build on powerpcspe

Roland Stigge stigge at antcom.de
Fri Dec 21 10:16:49 UTC 2012


Package: llvm-3.2
Version: 3.2-1
Severity: wishlist
Tags: patch sid
User: debian-powerpcspe at breakpoint.cc
Usertags: powerpcspe

Hi,

building llvm-3.2 on powerpcspe [1] currently results in:

[...]
if  powerpc-linux-gnuspe-g++ -I/«PKGBUILDDIR»/build-llvm/include -I/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC -I/«PKGBUILDDIR»/include -I/«PKGBUILDDIR»/lib/Target/PowerPC  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual    -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings   -c -MMD -MP -MF "/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/Release/PPCJITInfo.d.tmp" -MT "/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/Release/PPCJITInfo.o" -MT "/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/Release/PPCJITInfo.d" /«PKGBUILDDIR»/lib/Target/PowerPC/PPCJITInfo.cpp -o /«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/Release/PPCJITInfo.o ; \
	        then /bin/mv -f "/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/Release/PPCJITInfo.d.tmp" "/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/Release/PPCJITInfo.d"; else /bin/rm "/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/Release/PPCJITInfo.d.tmp"; exit 1; fi
/tmp/ccZzzlPj.s: Assembler messages:
/tmp/ccZzzlPj.s:23: Error: Unrecognized opcode: `stfd'
/tmp/ccZzzlPj.s:24: Error: Unrecognized opcode: `stfd'
/tmp/ccZzzlPj.s:25: Error: Unrecognized opcode: `stfd'
/tmp/ccZzzlPj.s:26: Error: Unrecognized opcode: `stfd'
/tmp/ccZzzlPj.s:27: Error: Unrecognized opcode: `stfd'
/tmp/ccZzzlPj.s:28: Error: Unrecognized opcode: `stfd'
/tmp/ccZzzlPj.s:29: Error: Unrecognized opcode: `stfd'
/tmp/ccZzzlPj.s:30: Error: Unrecognized opcode: `stfd'
/tmp/ccZzzlPj.s:45: Error: Unrecognized opcode: `lfd'
/tmp/ccZzzlPj.s:46: Error: Unrecognized opcode: `lfd'
/tmp/ccZzzlPj.s:47: Error: Unrecognized opcode: `lfd'
/tmp/ccZzzlPj.s:48: Error: Unrecognized opcode: `lfd'
/tmp/ccZzzlPj.s:49: Error: Unrecognized opcode: `lfd'
/tmp/ccZzzlPj.s:50: Error: Unrecognized opcode: `lfd'
/tmp/ccZzzlPj.s:51: Error: Unrecognized opcode: `lfd'
/tmp/ccZzzlPj.s:52: Error: Unrecognized opcode: `lfd'
make[4]: *** [/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC/Release/PPCJITInfo.o] Error 1
make[4]: Leaving directory `/«PKGBUILDDIR»/build-llvm/lib/Target/PowerPC'
make[3]: *** [PowerPC/.makeall] Error 2
make[3]: *** Waiting for unfinished jobs....
[...]

I'm attaching a patch that fixes this by excluding powerpc floating point
register save/restore asm on powerpcspe where those registers don't exist.

The patch also fixes the same issue in llvm-2.9, llvm-3.0 and llvm-3.1. Please
include it there, also. I can file separate bugs there, if necessary.

Thanks,

Roland


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


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5.0 (SMP w/4 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-diff
Size: 1394 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20121221/589dc9a3/attachment.patch>


More information about the Pkg-llvm-team mailing list