Minimalist Self-host GCC for ARM Chromebooks

This is a binary pakage of self-host (runs on the Chromebook) GCC compiler for ARMv7-based Chromebooks. It includes (almost) minimum set of compiler and tools that are required to build another GCC, or any other tools of your choice. Modified linker scripts and non-shared parts of glibc are also packaged so that the compiler can produce dynamically-linked executables. C, C++ and Fortran are enabled on GCC.

Technically you can build the same GCC using sources and environment provided by the Chromium OS team, but it took me quite a bit of time and effort to do so. So, I decided to provide the community with the resulting binary.

I compiled and verified this on my Acer Chromebook 13 (CB5-311-H14N).


Files are kept in the Google Drive, following the Chrome OS style of life: cros-tools at Google Drive

See the sources for licensing terms.

Update history

Initial upload. This can compile and run SPEC CINT2006 benchmarks without any verification error.


Make sure your Chromebook is in Developer Mode. First you need to enable execution of files in your home directory (you need to do this after every reboot):

mount -o remount,exec -i /home/chronos/user

Then, extract the downloaded archive in the Downloads directory:

tar xpJf gcc-4.9.x-google-20150123_armv7a-cros-linux-gnueabi_v1.tar.xz -C ${HOME}/Downloads

Finally, load the environmental variables, and have fun (you need to do this on every new terminal, or you could add this to your .bashrc):

. ${HOME}/Downloads/tools/

What you get

GCC and Binutils (Google-patched versions)

Using built-in specs.
Target: armv7a-cros-linux-gnueabi
Configured with: ../gcc/configure --prefix=/home/chronos/user/Downloads/tools --build=armv7a-cros-linux-gnueabi --host=armv7a-cros-linux-gnueabi --target=armv7a-cros-linux-gnueabi --enable-languages=c,c++,fortran --disable-multilib --disable-libcilkrts --disable-libitm --disable-libmudflap --disable-libquadmath --disable-libssp --with-arch=armv7-a --disable-esp --with-float=hard --with-mode=thumb --disable-sjlj-exceptions --with-as=/home/chronos/user/Downloads/tools/bin/as --with-ld=/home/chronos/user/Downloads/tools/bin/ld --disable-werror --with-native-system-header-dir=/home/chronos/user/Downloads/tools/armv7a-cros-linux-gnueabi/include
Thread model: posix
gcc version 4.9.x-google 20150123 (prerelease) (GCC) 

Also includes gmp-6.0.0a, mpfr-3.1.3, mpc-1.0.3, as they are required by the GCC.

Other tools (Genuine GNU versions)