On 13 February 2018 at 09:30, Xi Ruoyao wrote: > I think `--with-native-system-header-dir=/home/linuxbrew/.linuxbrew/include` > causes the problem. Yes probably. stdlib.h doesn't come from GCC, but it must have been present when GCC was built. You need to ensure you have C library headers present, that's not GCC's responsibility, it's yours.