Building gcc6.3.0 on Ubuntu-20.04

Jonathan Wakely
Tue Aug 18 13:15:03 GMT 2020

On Tue, 18 Aug 2020 at 12:07, Mohana <> wrote:
> 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/ 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?

Why are you building gcc 6.3.0 and not 6.5.0, which already has the
fix for both these problems?

The patch for this error was

But you should just use gcc-6.5.0 instead.

More information about the Gcc-help mailing list