This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.0.2 Canadian Cross Compile
> In a Canadian Cross Compile, 'target' == 'host' != 'build' and the
> compiler that is created may not run on the computer building the
> compiler.
You're describing a cross-built native, not a canadian.
http://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html
Whenever --target=foo and build!=host, you need to have a pre-built
foo-gcc that runs on $build.
One obvious bug I see in your scripts is that you are specifying
--host without also specifying --build. The documentation explicitly
tells you to never do that. Your last step is attempting to build a
NATIVE compiler, assuming that the machine it's running on is
sparc-linux.