make[3]: Entering directory `[path]/gcc/obj/gcc' build/gengtype \ -S ../../gcc-4.7.3/gcc -I gtyp-input.list -w tmp-gtype.state ../../gcc-4.7.3/gcc/../include/splay-tree.h:55: unidentified type `uintptr_t' ../../gcc-4.7.3/gcc/../include/splay-tree.h:56: unidentified type `uintptr_t' make[3]: *** [s-gtype] Error 1 make[3]: Leaving directory `[path]/gcc/obj/gcc' make[2]: *** [all-stage1-gcc] Error 2 GCC is configured in this way: ../gcc-4.7.3/configure --prefix=[myprefix] --enable-languages=c,c++ --disable-nls Installed compiler: gcc --version gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
splay-tree.h does #ifdef HAVE_STDINT_H #include <stdint.h> #endif #ifdef HAVE_INTTYPES_H #include <inttypes.h> #endif so please check gcc/auto-host.h, you should have stdint.h.
OK, I found this. I used script symlink-tree to create symlinks to binutils in gcc src dir. This script replaced some files with symlinks to their counterparts in binutil dir, what caused this problem. gcc without these symlinks compiles fine. So this is not an issue.
Invalid as mentioned by reporter.