Gcc Chroot Cross Compiler


grahamr

Member
Joined
Apr 8, 2010
Messages
100
Hi guys,
As the pandora release is fast approaching :rolleyes: I am going to set up a chroot cross compile environment for pandoara with gcc (& g++), on x86_64.

Its been a year or two since i did this sort of thing (compiled gcc etc), if anyone uses a similar environment, i'd be grateful of any gotcha's or tips from anyone that might save me a bit of time before i start in. (by this i don't mean - "dont bother -just download from sourcery!")
 
WombleGoneBad said:
Hi guys,
As the pandora release is fast approaching :rolleyes: I am going to set up a chroot cross compile environment for pandoara with gcc (& g++), on x86_64.

Its been a year or two since i did this sort of thing (compiled gcc etc), if anyone uses a similar environment, i'd be grateful of any gotcha's or tips from anyone that might save me a bit of time before i start in. (by this i don't mean - "dont bother -just download from sourcery!")

crosstool-ng works well for something like this
 
Last edited by a moderator:
Kewl! thanks pickle, I was just going to work from the individual tarballs. This looks perfect. :)
 
You could use some of our Neuvoo tutorials. We use Gentoo with crossdev which is great for a small cross compiling env. If you plan on using vanilla code and since your compiling tarballs this will meet your needs quite well.

We have a complete image building guide, you can just follow the first 2 or 3 and build a very good cross compiling env.
http://neuvoo.org/wiki/index.php?title=Hand-craft_an_Image

I also have a quick install script that I made that set up the env and makes the appropriate edits/mounts.
http://gitorious.org/neuvoo/toolkit/trees/master/neuvoo-cross-env

The good thing is that you don't need to have a Gentoo host to use this. The build env just needs a linux distro with mount and chroot, there is no reason you can't do this under VirtualBox or VMWare also.
 
viridior said:
You could use some of our Neuvoo tutorials. We use Gentoo with crossdev which is great for a small cross compiling env. If you plan on using vanilla code and since your compiling tarballs this will meet your needs quite well.

We have a complete image building guide, you can just follow the first 2 or 3 and build a very good cross compiling env.
http://neuvoo.org/wiki/index.php?title=Hand-craft_an_Image

I also have a quick install script that I made that set up the env and makes the appropriate edits/mounts.
http://gitorious.org/neuvoo/toolkit/trees/master/neuvoo-cross-env

The good thing is that you don't need to have a Gentoo host to use this. The build env just needs a linux distro with mount and chroot, there is no reason you can't do this under VirtualBox or VMWare also.

Thanks for this. I don't think i will build directly from the tutorials, but i will sift through them for any interesting bits.

btw - I used gentoo for years, I was fond of it, the quality of the documentation was good. (Now though i tend to use Arch for my desktop.)

Laurent said:
Out of curiosity, why isn't CodeSourcery an option?

It is an option, just not the one i was asking about. Eventually i probably use both and compare results. At the moment I want a vanilla build that i can muck around with, for example I'm interested in comparing differences in assembler from GCC 4.4.3 and GCC 4.5.0.

pickle - THANKS AGAIN! i am in love with crosstools-ng. It make your life really easy, but transparently, so you can still patch/tweak where you want to.
In fact i've already done it and built one.
 
Last edited by a moderator:
Back
Top