Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

build kernel with aarch64-linux-gnu-gcc

I am trying to build the kernel source on my platform with the following command:

make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- generic-v8-defconfig

However, the error messages appear as shown in the following:

/bin/sh: 1: aarch64-linux-gnu-gcc: not found

It's obvious I have not this version of gcc installed on my laptop.

I then followed

http://www.howtoinstall.co/en/ubuntu/trusty/main/gcc-4.8-aarch64-linux-gnu/

This to install gcc-4.8-aarch-linux-gnu,

however, I still get the same error message.

Ubuntu version: 14.04

Please let me know if you know how to fix this.

Thanks

like image 355
Sam Avatar asked Nov 29 '22 01:11

Sam


2 Answers

Maybe aarch64-linux-gnu-gcc is not installed. Try

sudo apt-get install gcc-aarch64-linux-gnu
like image 116
user7305360 Avatar answered Dec 05 '22 09:12

user7305360


looks like a PATH issue. what happens when you just type "aarch64-linux-gnu-gcc "in your shell? does it find the compiler?

like image 38
talshorer Avatar answered Dec 05 '22 09:12

talshorer