Trouble cross compiling for powerpc

Paul Bolle pebolle at tiscali.nl
Fri Jan 30 13:01:57 UTC 2015


I'm having trouble cross compiling on an up-to-date x64_64 F20 machine.

make CROSS_COMPILE=powerpc64-linux-gnu- ARCH=powerpc drivers/dma/ppc4xx/adma.o
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      drivers/dma/ppc4xx/adma.o
{standard input}: Assembler messages:
{standard input}:4475: Error: junk at end of line: `1'
{standard input}:4616: Error: junk at end of line: `1'
{standard input}:4626: Error: junk at end of line: `1'
{standard input}:4649: Error: junk at end of line: `1'
make[1]: *** [drivers/dma/ppc4xx/adma.o] Error 1
make: *** [drivers/dma/ppc4xx/adma.o] Error 2

make CROSS_COMPILE=powerpc64-linux-gnu- ARCH=powerpc CFLAGS_adma.o="-S" drivers/dma/ppc4xx/adma.o
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      drivers/dma/ppc4xx/adma.o

sed -n -e "4475p; 4616p; 4626p; 4649p" drivers/dma/ppc4xx/adma.o 
	mfcr 10,1
	mfcr 10,1
	mfcr 10,1
	mfcr 10,1

Anyone else seeing this? Is powerpc64-linux-gnu-gcc choking on the
assembler it generates itself, or am I doing something wrong?


Paul Bolle



More information about the kernel mailing list