Compiler internal error: segmentation fault

Hi,

While compiling the systemimage, it gave me this error: Compiler internal error: segmentation fault. I am just using make -j1. I don’t think my laptop causes this. I guess it is the compiler issue. My system is Ubuntu 14.04, gcc compiler is 4.8.4 on ASUS zenbook 305.

What gcc version you guys use ?

Thanks!

The release notes at http://builds.96boards.org/releases/dragonboard410c/linaro/debian/latest/ say you should be using this cross compiler http://releases.linaro.org/14.11/components/toolchain/binaries/aarch64-linux-gnu/gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu.tar.xz

I also missed that instruction the first time I tried to compile the kernel.

Full Disclosure: I am an employee of Qualcomm Canada, any opionio0ns expressed in this posting, or any other posting may not reflect the opinions of my employer.

Yes you need a cross-compiler. Your distro may have one available in the standard repos, or you can grab the one here (it’s what I have been using):
https://releases.linaro.org/15.06/components/toolchain/binaries/4.8/aarch64-linux-gnu/

“gcc-linaro-4.8-2015.06-x86_64_aarch64-linux-gnu.tar.xz”

Hi suicidaleggroll and ljking,

Thanks a lot for the information. I am very new to this. What I am doing is to follow the guide to compile the Android. The guide tells to run “make” after setting up the environment. I thought the make will use “arm-linux-androideabi-gcc-4.8” in android’s prebuilts.

My android source is downloaded from the board support package here:

https://developer.qualcomm.com/hardware/dragonboard-410c/tools

If I need to change the compiler, what are the steps?

Thanks!