Gentoo on Android – cross compilation with distcc

In one of my previous posts I have described how to run Gentoo on Android ARM device. Depending on its power your emerges may take either a long time or a longer time. And your device will warm up significantly. But you have already heard of and used FEATURES=”distcc”, right? Here’s how to set-up a cross compilation with a help from an x86 box in a nutshell.

For sake of clarity I will refer to the systems as follows:

box – your laptop, PC, server, etc. – where distccd will be running to serve the compilation power

phone – the Android ARM device with FEATURES=”distcc” enabled

First of all – in order to minimize impact on your box system I strongly advise to use a separate chroot incarnation of Gentoo. Therefore – get your latest stage3 archive and unpack it properly into an empty, new directory of your choice:

If you see it starting up and the compiler seems OK you need to set up the phone – emerge distcc on it locally first and set-up FEATURES in make.conf. Note that this needs to be performed inside your Gentoo chroot of course.:

Now you should be all set. Make sure your portage user is set to an uid which is not deprived of network connectivity – see my previous post for details. Now emerge something and watch the output on box generated by foreground distccd:

Like this:

Related

4 Responses to “Gentoo on Android – cross compilation with distcc”

hello !
i want to run windows xp in android tab. it has all the requirements but i dont know how to do it.
i have problems understanding your post about windows xp in android.
i wnt to do it using vnc server in my android and i have the windows xp .img file too.
so please tell me the proper guide and i dont know about gentoo and all so help me please!
either reply me with the proper method to run xp in android or email me the same sushobhit333@yahoo.com
(i will be highly obliged to you)