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

Bug#823526: linux: FTBFS on powerpcspe due to the use of unsupported instructions



Source: linux
Version: 4.5.2-1
Severity: normal
User: debian-powerpc@lists.debian.org
Usertags: powerpcspe

Hi!

linux currently fails to build from source on powerpcspe since the compiler
is using FPU instructions which are not available on the e500v2 CPUs [1,2]:

{standard input}: Assembler messages:
{standard input}:2227: Error: unrecognized opcode: `ldarx'
{standard input}:2274: Error: unrecognized opcode: `stdcx.'
/<<PKGBUILDDIR>>/scripts/Makefile.build:263: recipe for target 'arch/powerpc/lib/sstep.o' failed
make[6]: *** [arch/powerpc/lib/sstep.o] Error 1
/<<PKGBUILDDIR>>/Makefile:954: recipe for target 'arch/powerpc/lib' failed
make[5]: *** [arch/powerpc/lib] Error 2
make[5]: *** Waiting for unfinished jobs....

Looking at arch/powerpc/lib/sstep.c, there are actually #ifdefs for the CONFIG_PPC_FPU,
however, it seems there is no way of manually setting CONFIG_PPC_FPU in the kernel
configuration. I assume, this is done by choosing a certain type of PowerPC hardware.

In any case, version 3.16.7 still builds fine [3], so this is a regression either
way. Although we currently have to use a custom kernel for our e500v2 boards
anyway, it's still desirable to fix any build issues with the kernel package
on powerpcspe.

Cheers,
Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpcspe&ver=4.5.2-1&stamp=1462426562
> [2] http://www.nxp.com/files/32bit/doc/ref_manual/E500CORERM.pdf
> [3] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpcspe&ver=3.16.7-ckt9-3&stamp=1458056490

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: