https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100057
--- Comment #9 from cqwrteur <unlvsur at live dot com> --- looking for a compliant stdint.h in stdint.h, checking for uintmax_t... no looking for a compliant stdint.h in inttypes.h, checking for uintmax_t... no looking for a compliant stdint.h in sys/inttypes.h, checking for uintmax_t... no looking for an incomplete stdint.h in stdint.h, checking for uint32_t... no looking for an incomplete stdint.h in inttypes.h, checking for uint32_t... no looking for an incomplete stdint.h in sys/inttypes.h, checking for uint32_t... no looking for u_intXX_t types in sys/types.h, checking for u_int32_t... no looking for u_intXX_t types in inttypes.h, checking for u_int32_t... no looking for u_intXX_t types in sys/inttypes.h, checking for u_int32_t... no checking what to include in include/gstdint.h... stddef.h (using manual detection) checking size of void *... 0 checking size of long... 0 checking size of int... 0 checking size of short... 0 checking size of char... 0 checking for type equivalent to int8_t... configure: error: no 8-bit type, please report a bug make[1]: *** [Makefile:13313: configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory '/home/cqwrteur/myhome/gcc2_elf_build' make: *** [Makefile:965: all] Error 2 The issue is that there is no such header called stdint.h. What we have is stdint-gcc.h which is automatically generated by the compiler. We have two options. 1. just redefine them in cstdint with freestanding. 2. use autotool to include stdint-gcc.h when stdint.h does not exist.