Brian Dessent wrote:
Yang Zhang wrote:
./configure --target=x86_64-jos-linux --prefix=/opt/gcc-4.1.2-jos-linux
--disable-nls --without-headers --with-newlib --disable-threads
--disable-shared --disable-libmudflap --disable-libssp
make && make install
Why are you using --without-headers with a linux target? The docs say:
--without-headers
Tells GCC not use any target headers from a libc when building a cross
compiler. When crossing to GNU/Linux, you need the headers so GCC can
build the exception handling for libgcc.
So that is why your build fails.
Not to mention that you are disregarding consistent advice about not
building into the source directory.