[Android Software/Hacking General [Developers Only]] r0gger:
Just in case somebody do not have "github" remote.

Here copy-paste from mine roomservice.xml :

kk@killingthem:~/Android-sources$ cat .repo/local_manifests/roomservice.xml

<manifest>

<remote name="github" fetch="https://github.com/" />

<!-- LINARO TOOLCHAIN -->

<project name="JustArchi/Linaro" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.8" remote="github" revision="4.8-eabi" />

<project name="JustArchi/Linaro" path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8" remote="github" revision="4.8-androideabi" />

</manifest>

Also because I know what will happen, I renamed these just to be sure that they will not be used:

prebuilts/gcc/linux-x86/arm

arm-eabi-4.6- to arm-eabi-4.6-bb

arm-eabi-4.7 to arm-eabi-4.7-bb

arm-linux-androideabi-4.6 to arm-linux-androideabi-4.6-bb

arm-linux-androideabi-4.7 to arm-linux-androideabi-4.7-bb

and the result as I expected:

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: No such file or directory

make: *** No rule to make target `prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip', needed by `out/target/product/mako/obj/lib/libdl.so'. Stop.

make: *** Waiting for unfinished jobs....

make: *** [out/target/product/mako/obj/lib/crtbegin_so.o] Error 127

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: No such file or directory

Now, I'll mod . build/envsetup.sh so that correct toolchain to be used.

Update 2:

I changed in build/envsetup.sh

this:

#export TARGET_GCC_VERSION=$targetgccversion

export TARGET_GCC_VERSION=4.8

Aafter 5-6mins compilation failing ..

But looks like we still referring to the original toolchain ..

target thumb C++: third_party_angle_dx11_src_translator_glsl_gyp <= external/chromium_org/third_party/angle_dx11/src/compiler/TranslatorGLSL.cpp

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-g++: No such file or directory

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-g++: No such file or directory

make: *** [out/target/product/mako/obj/STATIC_LIBRARIES/third_party_angle_dx11_src_translator_glsl_gyp_intermediates/third_party/angle_dx11/src/compiler/CodeGenGLSL.o] Error 127

make: *** Waiting for unfinished jobs....

Now, I'll research how to properly change which toolchain to be used ..

Update 3:

I changed in build/envsetup.sh

#export ARM_EABI_TOOLCHAIN="$gccprebuiltdir/$toolchaindir"

export ARM_EABI_TOOLCHAIN="$gccprebuiltdir/arm-eabi-4.8/"

Still failing the same way ..

/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-g++: No such file or directory

make: *** [out/target/product/mako/obj/STATIC_LIBRARIES/skia_skia_chrome_gyp_intermediates/skia/ext/convolver.o] Error 127

external/sqlite/dist/sqlite3.c: In function 'pcache1Fetch':

Now, I'll dummy symlink it ..

Update 4:

Or, just use this http://xdaforums.com/showpost.php?p=52166668&postcount=1200 :)

Update 5 :

If you using Debian GNU/Linux stable 7.5, build will fail with this :

prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc)

make: *** [out/target/product/mako/obj/lib/crtbegin_so.o] Error 1

make: *** Waiting for unfinished jobs....

make: *** [out/target/product/mako/obj/lib/crtend_so.o] Error 1

So, just add testing in your sources (/etc/apt/sources.list) "testing" :

.debian.org/debian/ testing main non-free

and

apt-get -t testing install libc6-dev

or dist-upgrade it...

Changing

build/core/combo/TARGET_linux-arm.mk

#TARGET_GCC_VERSION := 4.7

TARGET_GCC_VERSION := 4.8

fixed the problem with the toolchain

cheers