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

            Bug ID: 117413
           Summary: [15 regression] RISC-V: stage2 build failure with
                    __builtin_prefetch
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libbacktrace
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ewlu at rivosinc dot com
                CC: ian at gcc dot gnu.org
  Target Milestone: ---

postcommit is failing to build gcc stage2 for all linux targets with the
following error:

2024-11-01T19:57:30.3588122Z In function 'elf_fetch_bits',
2024-11-01T19:57:30.3588960Z     inlined from 'elf_zlib_inflate' at
../../../../gcc/libbacktrace/elf.c:2452:11:
2024-11-01T19:57:30.3590444Z ../../../../gcc/libbacktrace/elf.c:1158:3: error:
invalid second argument to '__builtin_prefetch'; using zero [-Werror]
2024-11-01T19:57:30.3591537Z  1158 |   __builtin_prefetch (pin, 0, 0);
2024-11-01T19:57:30.3592082Z       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-11-01T19:57:30.3593258Z ../../../../gcc/libbacktrace/elf.c:1158:3: error:
invalid third argument to '__builtin_prefetch'; using zero [-Werror]
2024-11-01T19:57:30.3594345Z cc1: all warnings being treated as errors
2024-11-01T19:57:30.3594950Z make[4]: *** [Makefile:1538: elf.lo] Error 1
2024-11-01T19:57:30.3595566Z make[4]: *** Waiting for unfinished jobs....

https://github.com/patrick-rivos/gcc-postcommit-ci/issues/2030

Likely caused by r15-4847-g79a75b1f551

Reply via email to