I made the changes and this error doesn't occur anymore, but the following happens now: /home/mohana/gccbuild/../gcc-6.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:158:23: fatal error: sys/ustat.h: No such file or directory #include <sys/ustat.h> ^ compilation terminated. make[4]: *** [Makefile:477: sanitizer_platform_limits_posix.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... It seems ustat is deprecated. How can this be fixed?