+BigNose <bignose@xxxxxxxxxx> writes: > Here are their compile options (as reported by gcc -v): > > Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.3-3' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --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.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr > --enable-targets=all --enable-cld --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu > Thread model: posix > gcc version 4.3.3 (Debian 4.3.3-3) > > Configured with: /media/sda7/buildroot/output/toolchain/gcc-4.3.4/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i586-linux-uclibc --target=i586-linux-uclibc --enable-languages=c,c++ --with-gxx-include-dir=/usr/include/c++ > --disable-__cxa_atexit --with-gnu-ld --disable-libssp --enable-tls --enable-shared --disable-nls --enable-threads --disable-multilib --disable-decimal-float --with-arch=i586 --with-tune=i586 --with-pkgversion='Buildroot 2010.02-git' > --with-bugurl=http://bugs.buildroot.net/ > Thread model: posix > gcc version 4.3.4 (Buildroot 2010.02-git) > > With the first gcc I'm able to compile a fresh 2.6.31.7 Kernel. > With the second this doesn't work: > I get the following error: > > "2.6.31.7cc1:error:unrecognizedcommandlineoption-fno-dwarf2-cfi-asm" exceeds 64 characters That is odd because it suggests that you have a 4.3.3 gcc which supports -fno-dwarf2-cfi-asm. That option was added in gcc 4.4, as documented as http://gcc.gnu.org/gcc-4.4/changes.html . So your gcc 4.3.3 must be patched, presumably by Debian. > So my question generally is: What options are needed for the compilation of gcc, > so that this gcc is able to compile a new Kernel? Obviously the second > gcc doesn't understand the "-fno-dwarf2-cfi-asm" command line option. > So what command line option is needed that gcc knows this command line > option? > Is there anywhere a description of what command line options need what > compile options of gcc to become available? In one sense this sounds like a question for the Linux kernel developers. I don't know the answer. In another sense, the answer is "if you need -fno-dwarf2-cfi-asm then use gcc 4.4.0 or later", though I don't know whether gcc 4.4 is really required to build the Linux kernel. Ian