[Pkg-clamav-devel] Bug#733035: clamav: FTBFS on powerpcspe

Roland Stigge stigge at antcom.de
Tue Dec 24 11:51:59 UTC 2013


Source: clamav
Version: 0.97.8+dfsg-1
Severity: wishlist
Tags: patch
User: debian-powerpcspe at breakpoint.cc
Usertags: powerpcspe

Hi,

clamav FTBFS on powerpcspe like this:

...
  CXX    libllvmpowerpccodegen_la-PPCISelLowering.lo
llvm/lib/Target/PowerPC/PPCISelLowering.cpp: In function 'unsigned int CalculateParameterAndLinkageAreaSize(llvm::SelectionDAG&, bool, bool, unsigned int, const llvm::SmallVectorImpl<llvm::ISD::OutputArg>&, const llvm::SmallVectorImpl<llvm::SDValue>&, unsigned int&)':
llvm/lib/Target/PowerPC/PPCISelLowering.cpp:2156:13: warning: variable 'Arg' set but not used [-Wunused-but-set-variable]
  CXX    libllvmpowerpccodegen_la-PPCInstrInfo.lo
  CXX    libllvmpowerpccodegen_la-PPCJITInfo.lo
/tmp/ccKI8gPe.s: Assembler messages:
/tmp/ccKI8gPe.s:23: Error: unrecognized opcode: `stfd'
/tmp/ccKI8gPe.s:24: Error: unrecognized opcode: `stfd'
/tmp/ccKI8gPe.s:25: Error: unrecognized opcode: `stfd'
/tmp/ccKI8gPe.s:26: Error: unrecognized opcode: `stfd'
/tmp/ccKI8gPe.s:27: Error: unrecognized opcode: `stfd'
/tmp/ccKI8gPe.s:28: Error: unrecognized opcode: `stfd'
/tmp/ccKI8gPe.s:29: Error: unrecognized opcode: `stfd'
/tmp/ccKI8gPe.s:30: Error: unrecognized opcode: `stfd'
/tmp/ccKI8gPe.s:45: Error: unrecognized opcode: `lfd'
/tmp/ccKI8gPe.s:46: Error: unrecognized opcode: `lfd'
/tmp/ccKI8gPe.s:47: Error: unrecognized opcode: `lfd'
/tmp/ccKI8gPe.s:48: Error: unrecognized opcode: `lfd'
/tmp/ccKI8gPe.s:49: Error: unrecognized opcode: `lfd'
/tmp/ccKI8gPe.s:50: Error: unrecognized opcode: `lfd'
/tmp/ccKI8gPe.s:51: Error: unrecognized opcode: `lfd'
/tmp/ccKI8gPe.s:52: Error: unrecognized opcode: `lfd'
make[6]: *** [libllvmpowerpccodegen_la-PPCJITInfo.lo] Error 1
...

The attached patch fixes this by only conditionally assembling the stfd/lfd
instructions when they are available. On powerpcspe, there are no FP registers,
hence they simply don't need to be saved/restored.

Roland


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

Kernel: Linux 3.9.0-dirty (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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-powerpcspe.patch
Type: text/x-diff
Size: 1284 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20131224/9397cb6e/attachment.patch>


More information about the Pkg-clamav-devel mailing list