Use linaro linux android compiler problem

Hi,

I am changing the tool chain to compile the Android source tree. The default tool chain comes with the source does not work out (getting segmentation fault) on my laptop (intel Core M processor)

The tool chain I changed to is “aarch64-linux-android-4.9-linaro” which I get from here:

git clone https://android.git.linaro.org/git-ro/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9-linaro.git prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-linaro-4.9

The segmentation fault problem does go away but another problem comes: the ld does not recognize "–fix-cortex-a53-843419’ option.

Does anyone use “aarch64-linux-android-linaro-4.9”? how do I fix it or just point me to download the right binary?

I checked there is a linaro cross compiler for debian for 410c board, but that one is not for android (the folder names and binary names are all different to the ones in android source tree).

Thanks.

Can you try the stock google prebuilt toolchain in the NDK to see if it makes a difference?
https://chromium.googlesource.com/android_tools/+/master/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64
or download the latest NDK from:
http://developer.android.com/ndk/downloads/index.html

You can find the latest linaro android toolchains here:
https://android-git.linaro.org/gitweb?a=project_list&s=prebuilts%2Fgcc%2Flinux-x86%2Faarch64&btnS=Search

If you need 4.9 with the 843419 patch, please try the AOSP toolchain. They might have patched theirs.