I replaced a failing harddrive in one of my Debian machines today. Instead of reinstalling Debian I decided to put Ubuntu on there. The new Ubuntu comes with gcc 4.2.3: > /usr/bin/gcc-4.2 -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) I can compile the latest git kernel on this new Ubuntu install with no issues. My problem is when I add distcc and gcc 4.1 back into the mix, a kernel compile then fails with these errors: CC arch/x86/boot/pm.o cc1: error: unrecognized command line option "-fno-toplevel-reorder" distcc[29625] ERROR: compile arch/x86/boot/a20.c on 10.0.0.1 failed make[2]: *** [arch/x86/boot/a20.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc1: error: unrecognized command line option "-fno-toplevel-reorder" distcc[29626] ERROR: compile arch/x86/boot/cmdline.c on 10.0.0.4 failed make[2]: *** [arch/x86/boot/cmdline.o] Error 1 cc1: error: unrecognized command line option "-fno-toplevel-reorder" distcc[29637] ERROR: compile arch/x86/boot/edd.c on 10.0.0.1 failed make[2]: *** [arch/x86/boot/edd.o] Error 1 cc1: error: unrecognized command line option "-fno-toplevel-reorder" distcc[29635] ERROR: compile arch/x86/boot/cpucheck.c on 10.0.0.4 failed cc1: error: unrecognized command line option "-fno-toplevel-reorder" make[2]: *** [arch/x86/boot/cpucheck.o] Error 1 distcc[29630] ERROR: compile arch/x86/boot/cpu.c on 10.0.0.1 failed make[2]: *** [arch/x86/boot/cpu.o] Error 1 cc1: error: unrecognized command line option "-fno-toplevel-reorder" distcc[29649] ERROR: compile arch/x86/boot/main.c on 10.0.0.4 failed make[2]: *** [arch/x86/boot/main.o] Error 1 cc1: error: unrecognized command line option "-fno-toplevel-reorder" distcc[29651] ERROR: compile arch/x86/boot/memory.c on 10.0.0.4 failed make[2]: *** [arch/x86/boot/memory.o] Error 1 cc1: error: unrecognized command line option "-fno-toplevel-reorder" distcc[29655] ERROR: compile arch/x86/boot/pm.c on 10.0.0.1 failed cc1: error: unrecognized command line option "-fno-toplevel-reorder" distcc[29652] ERROR: compile arch/x86/boot/mca.c on 10.0.0.1 failed make[2]: *** [arch/x86/boot/pm.o] Error 1 make[2]: *** [arch/x86/boot/mca.o] Error 1 OBJCOPY arch/x86/boot/compressed/vmlinux.bin GZIP arch/x86/boot/compressed/vmlinux.bin.gz LD arch/x86/boot/compressed/piggy.o LD arch/x86/boot/compressed/vmlinux make[1]: *** [bzImage] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6' make: *** [debian/stamp-build-kernel] Error 2 The 10.0.0.1 and .4 machines are both running Debian with gcc 4.1: > gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Are my gcc's too different? I could swear I read somewhere any 4.x gcc will work with any other 4.x version? Is that correct? Is -fno-toplevel-reorder new in Linus' tree? I've been compiling git kernels for some time now with gcc 4.1, but I do seem to recall some gcc stack discussions lately on linux-kernel. Thanks, -- Greg Donald -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ