Hi all, I´m trying to install gcc-4.6.1 on an Ubuntu 11.10, I hope you can help... I have the stock gcc-4.6.1 installed from the Ubuntu repositories via apt-get. However, I want another gcc installed so I can apply a few patches. This is how I'm trying to compile: $> cd gcc-build $> ../gcc-v4.6.1/configure --program-prefix=-wpatch --prefix=/usr/local/gcc-wpatch $> make It goes through the compilation for a while, but then I get these errors: ------------------------------------ In file included from ../../gcc-v4.6.1/gcc/c-lang.c:24:0: ../../gcc-v4.6.1/gcc/system.h:462:20: error: conflicting types for ‘strsignal’ /usr/include/string.h:566:14: note: previous declaration of ‘strsignal’ was here In file included from ../../gcc-v4.6.1/gcc/input.h:25:0, from ../../gcc-v4.6.1/gcc/tree.h:27, from ../../gcc-v4.6.1/gcc/c-lang.c:27: ../../gcc-v4.6.1/gcc/../libcpp/include/line-map.h:64:38: error: ‘CHAR_BIT’ undeclared here (not in a function) ../../gcc-v4.6.1/gcc/../libcpp/include/line-map.h:64:3: error: bit-field ‘reason’ width not an integer constant ../../gcc-v4.6.1/gcc/../libcpp/include/line-map.h:64:3: warning: ‘reason’ is narrower than values of its type [enabled by default] In file included from ../../gcc-v4.6.1/gcc/tree.h:32:0, from ../../gcc-v4.6.1/gcc/c-lang.c:27: ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/hwint.h:17:39: error: division by zero in #if ../../gcc-v4.6.1/gcc/real.h:105:9: error: #error "REAL_WIDTH > 6 not supported" In file included from ../../gcc-v4.6.1/gcc/c-family/c-common.h:26:0, from ../../gcc-v4.6.1/gcc/c-tree.h:25, from ../../gcc-v4.6.1/gcc/c-lang.c:28: ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:215:3: error: bit-field ‘type’ width not an integer constant ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:215:3: warning: ‘type’ is narrower than values of its type [enabled by default] ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:257:3: error: #error "Cannot find a least-32-bit signed integer type" ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:259:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cppchar_t’ ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:260:1: error: unknown type name ‘CPPCHAR_SIGNED_T’ ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:739:1: error: unknown type name ‘cppchar_t’ ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:750:1: error: unknown type name ‘cppchar_t’ ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:750:58: error: unknown type name ‘cppchar_t’ ../../gcc-v4.6.1/gcc/../libcpp/include/cpplib.h:916:1: error: unknown type name ‘cppchar_t’ make[3]: *** [c-lang.o] Error 1 make[3]: Leaving directory `/home/pbarrio/apps/gcc-build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/pbarrio/apps/gcc-build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/pbarrio/apps/gcc-build' make: *** [all] Error 2 -------------------------------------- Any clue? I also have LLVM installed. I found some related threads about the "conflicting types for strsignal" error, but they are a few years old. Thanks ahead, Pablo DIE-UPM Madrid