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
2. arm-linux-gnueabi-binutils
3. arm-linux-gnueabi-gcc-stage1
at this stage you will get the size is about 80mb, copy/save this file.

4. arm-linux-gnueabi-eglibc-headers

5. arm-linux-gnueabi-gcc-stage2
before doing makepkg, copy saved files (on step 3), then doing makepkg, installation will replalce stage 1

7. arm-linux-gnueabi-gcc (final)
again same as step 5, copy saved files (on step 3) before makepkg, this installation will replace stage 2.

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

Share on Facebook
Share on Twitter
Share on Google+