On Fri, Nov 12, 2010 at 05:55:58PM +0000, Philip Nye wrote: > Thanks Len - this is very plausible, but doesn't fit the facts when > building a cross compiler: > > Both stage-1 and stage-2 get built using exactly the same native compiler > on the host system, and (unless your are building "canadian cross" where > a third system is involved), both stage-1 and stage-2 are compiled and > run on the host but generate code for the target.
I thought the stage1 was built native, and used to build the stage2 cross compiler. So the stage1 compiler is NOT a cross compiler. Otherwise there would be no point in the stage1 compiler. I haven't checked in a while exactly what it does to build the cross compiler, since it just works when I do it. :) Now doing a quick lookup, it appears that the cross compiler doesn't even do staged builds but instead just builds the final cross compiler. However you are expected to already be using the same or similar version of gcc natively if you are going to build a gcc cross compiler. Trying to build a cross compiler using another type of compiler might not work. So you would have to first do a stage1/stage2 build of gcc natively, then use that to build the cross compiler directly. -- Len Sorensen _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev