First, you will need to emerge
Next, you will need to emerge
If you are cross-compiling between different subarchitectures for Intel x86 (e.g. i586 and i686), you must still build a full cross-toolchain for the desired CHOST, or else the compilation will fail. This is because i586 and i686 are actually different CHOSTs, despite the fact that they are both considered "x86." Please keep this in mind when you build your cross-toolchains. For example, if the target box is i586, this means that you must build i586 cross-toolchains on your i686 helper boxes.
In the default distcc setup, cross-compiling will
Fortunately, there is a workaround for this little problem. All it takes is a
couple of wrapper scripts and a few symlinks on the box that will be running
ryoko bin # ls -l total 0 lrwxrwxrwx 1 root root 15 Dec 23 20:13 c++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 cc -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 g++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 gcc -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-c++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-g++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-gcc -> /usr/bin/distcc
Here is what you want to do:
# rm c++ g++ gcc cc
Next, we'll create the new scripts on this box. Fire up your favorite editor
and create a file with the following text in it, then save it as
#!/bin/bash exec /usr/lib/distcc/bin/sparc-unknown-linux-gnu-gcc "$@"
Again, create another file and add the following to it, then save it as
#!/bin/bash exec /usr/lib/distcc/bin/sparc-unknown-linux-gnu-g++ "$@"
Next, we'll create the proper symlinks:
# ln -s gcc cc # ln -s g++ c++ # chmod a+x gcc g++
When you're done,
ryoko bin # ls -l total 8 lrwxrwxrwx 1 root root 3 Dec 23 20:16 c++ -> g++ lrwxrwxrwx 1 root root 3 Dec 23 20:16 cc -> gcc -rwxr-xr-x 1 root root 71 Dec 23 20:16 g++ -rwxr-xr-x 1 root root 71 Dec 23 20:16 gcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-c++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-g++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-gcc -> /usr/bin/distcc
Congratulations; you now have a (hopefully) working cross-distcc setup.
When