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

            Bug ID: 93846
           Summary: libsanitizer compilation error with glibc 2.31
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rezso at rezso dot net
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at 
gcc dot gnu.org
  Target Milestone: ---

If I try to compile gcc 9.2.0 release with glibc 2.31, I get this error:

In file included from
/var/uhubuild/work/compile/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:193:
/var/uhubuild/work/compile/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:339:72:
error: narrowing conversion of ‘-1’ from ‘int’ to ‘long unsigned int’
[-Wnarrowing]
  339 |     typedef char IMPL_PASTE(assertion_failed_##_,
line)[2*(int)(pred)-1]

How to fix this error?

Reply via email to