https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100289

            Bug ID: 100289
           Summary: libgcc/libgcov.h: bootstrap failure due to missing
                    #include <sys/mman.h>
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rudi at heitbaum dot com
  Target Milestone: ---

Performing a bootstrap on Ubuntu 18.04 for a LibreELEC10 build, with just an
update from gcc 10.3.0 to 11.1.0, the bootstrap fails. Configure incorrectly
defines HAVE_SYS_MMAN_H as 1. Removing sys/mmap.h allows the successful build
of gcc:bootstrap. 

Gcc:host subsequently fails build with - 

/storage/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/build/gcc-11.1.0/libgcc/libgcov.h:426:10:
warning: implicit declaration of function 'mmap'
[-Wimplicit-function-declaration]

Failure log of bootstrap build - 
Failure logs of host build - http://paste.ubuntu.com/p/tCtc4nRfkV/

Reply via email to