Building gcc6.3.0 on Ubuntu-20.04

Jonathan Wakely jwakely.gcc@gmail.com
Tue Aug 18 13:15:03 GMT 2020


On Tue, 18 Aug 2020 at 12:07, Mohana <s18002@students.iitmandi.ac.in> 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/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?

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
https://gcc.gnu.org/g:2cd244789bc75ecdf65824f831986969049a1647
specifically https://gcc.gnu.org/git/?p=gcc.git;a=blobdiff;f=libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc;h=98825b584d24912df76f9982c2319419c7815bf8;hp=6992f2cd8ac56bcd5102f7440d71137b4458871d;hb=2cd244789bc75ecdf65824f831986969049a1647;hpb=6376168efb4c45d621fbec6472f8c9e84a24e940

But you should just use gcc-6.5.0 instead.


More information about the Gcc-help mailing list