Michael Zintakis <michael.zintakis@xxxxxxxxxxxxxx> writes: > 1. The 'native' compiler (following the 3-stage bootstrap process as > described), which is placed 'somewhere' in my source tree and which > has the only task of building the cross compiler as described in step > 2; You don't really have to build this one, but it doesn't hurt. It's not place somewhere in your source tree. It's actually built and installed as usual. > 2. Cross compiler (single-stage?) which is able to compile for the two > target environments I am interested in - powerpc and i586/i686. Its > main task is to compile and build my software for the selected target > environment as well as building another GCC compiler (described in 3). Yes. If I'm following you correctly, which I may not be, then that is two different cross-compilers, one for each target. > 3. GCC compiler which is used as part of my built image and its only > function is to compile programs/packages/binaries in the target > environment for the target environment (being i586/i686 or powerpc). If you need a compiler running on your target system, then, yes. > If my assumption is correct in the (very simplified) scenario where I > have x86_64 host environment and the target is, say, powerpc, then GCC > No 1 needs to have x86_64 arch build, together with all the tools it > needs. If so, I presume I need to follow the "Building native > compiler" section (with the 3-stage bootstrap) for building that. Yes. > GCC No 2 (single-stage, no bootstrap?) would have to be also x86_64 > and have libraries and tools built for both arches (cross-compilation) > - > x86_64 and powerpc. This is two compilers. Both have use x86_64 as the host and build environment, and use the appropriate target as the target environment. > GCC No 3 would have to be powerpc only and have the libraries and > tools for that arch only. Yes, I guess so, though I'm not sure what happened to the other target. > Is that correct? If so, what process needs to be followed for building > GCC No 3 - 3-stage bootstrap or a single-stage and bootstrap disabled? For stage 3 build is x86_64 and host and target are both PPC or whatever. > If the above is all correct, this seems to be a long-drawn process. Is > there any other route of achieving this (bearing in mind that I have > to preserve the target environment as 'pure' as possible from the > host)? No, there are no shortcuts. You may also want to look at http://crosstool.org , they have some scripts which may or may not help. Ian