error while trying to compile linux kernel with powerpc arch

Joel Stanley joel at jms.id.au
Thu Apr 28 17:51:21 AEST 2016


Hello,

On Thu, Apr 28, 2016 at 2:13 AM, Marwa Hamza <marwahamza63 at gmail.com> wrote:
> hello
> every time i try to compile the linux kernel with arch=powerpc i got this
> error
>
> WRAP arch / powerpc / boot / zImage.pseries
> powerpc-linux-gnu-ld: unrecognized emulation mode: -T
> Emulations supported: elf32ppclinux elf32ppc elf32ppcsim elf64ppc elf32_spu
> make [1]: *** [arch / powerpc / boot / zImage.pseries] Error 1
> make: *** [zImage] Error 2
>
> im using powerpc-linux-gnu ( sudo apt-get install powerpc-linux-gnu)  and
> linux-4.4.1
> make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-  pseries_defconfig
> make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-
> ubuntu 14.04
> any suggestion ?

You need a 64 bit compiler, as the pseries configuration is for a 64
bit machine.

$ head -n1 arch/powerpc/configs/pseries_defconfig
CONFIG_PPC64=y

'apt-get install gcc-powerpc64-linux-gnu' should do the trick. Set
CROSS_COMPILE=powerpc64-linux-gnu- and you will be good to go.

Cheers,

Joel


More information about the Linuxppc-dev mailing list