Wednesday, July 10, 2013

How to install arm-linux-gnueabi-gcc on Archlinux (GCC compiler for arm)

If you want to compile arm kernel : android or etc, you need to install GCC compiler for arm. arm-linux-gnueabi-gcc. The package available on AUR. I prefered using non yaourt methods, because it will bandwith friendly.

Okay here's step by step

Install needed packages:
#pacman -S curl elfutils libmpc

Then Install these packages, must be sequentially (using manual AUR installation)

1. arm-linux-gnueabi-linux-api-headers
http://aur.archlinux.org/packages.php?ID=56961
2. arm-linux-gnueabi-binutils
http://aur.archlinux.org/packages.php?ID=56960
3. arm-linux-gnueabi-gcc-stage1
http://aur.archlinux.org/packages.php?ID=56962
at this stage you will get gcc-x.x.x.tar.bz the size is about 80mb, copy/save this file.

4. arm-linux-gnueabi-eglibc-headers
http://aur.archlinux.org/packages.php?ID=56963

5. arm-linux-gnueabi-gcc-stage2
http://aur.archlinux.org/packages.php?ID=56964
before doing makepkg, copy saved files (on step 3), then doing makepkg, installation will replalce stage 1

7. arm-linux-gnueabi-gcc (final)
http://aur.archlinux.org/packages.php?ID=56966
again same as step 5, copy saved files (on step 3) before makepkg, this installation will replace stage 2.

How to install arm-linux-gnueabi-gcc on Archlinux (GCC compiler for arm)

That's it, now you can compile arm kernel on archlinux. Enjoy.

Share on Facebook
Share on Twitter
Share on Google+