cross-compiling kernel using a 32-bit toolchain on a 64-bit machine

Lad, Prabhakar prabhakar.csengg at gmail.com
Tue Apr 7 12:15:01 EDT 2015


On Mon, Apr 6, 2015 at 11:50 PM, Mandeep Sandhu
<mandeepsandhu.chd at gmail.com> wrote:
> Hi All,
>
> I'm having trouble compiling my kernel using a 32-bit toolchain (for
> ARM) on a 64-bit host (Ubuntu 14.10). The kernel version is 3.14.17.
>
> I understand that 32-bit binaries require "ia32-libs" (or equivalent)
> for compiling on 64-bit hosts. I installed the required packages
> (lib32z1 lib32ncurses5 lib32bz2-1.0 for Ubuntu 14.10), but still keep
> getting errors:
>
> $ make CROSS_COMPILE=arm-none-linux-gnueabi- all
> Makefile:616: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR:
> -fstack-protector not supported by compiler
> make: arm-none-linux-gnueabi-gcc: Command not found

Have built this toolchain or just downloaded from coudesourcery ?
Go to the source where you downloaded toolchain (on your machine not
the website)
traverse to bin directory and try ./arm-none-linux-gnueabi-gcc --version.

Cheers,
--Prabhakar Lad



More information about the Kernelnewbies mailing list