Hello, On Thu, Apr 28, 2016 at 2:13 AM, Marwa Hamza <[email protected]> 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 _______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
