------- Comment #6 from dwmw2 at infradead dot org 2006-08-16 18:11 ------- I don't think it's working right even with the new patch. I'll verify tomorrow, and make sure I have all the correct patches included in my build. The point at which I copied my ppc-cross-i386 'cc1' into /usr/libexec/gcc/ppc64-redhat-linux/4.1.1/cc1 and then wondered why native GCC wouldn't work any more was probably the point at which I should stop working on this for today.
My hack at http://david.woodhou.se/pr27844.patch is working around the problem for now, so I have least been able to link a kernel. I'm building a Linux kernel with http://david.woodhou.se/linux-combine-build.patch applied. It shouldn't matter much, but the git tree it's applied to is git://git.infradead.org/~jcrouse/geode.git and the config is http://david.woodhou.se/olpc-config The failure mode with GCC 4.1.0, the patch from http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00993.html and also the patch in comment #5 is that some functions aren't available in the final link: kernel/built-in.o: In function `register_irq_proc': /pmac/git/geode/kernel/irq/proc.c:128: undefined reference to `proc_mkdir' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28744