Bug 117413 - [15 regression] RISC-V: stage2 build failure with __builtin_prefetch
Summary: [15 regression] RISC-V: stage2 build failure with __builtin_prefetch
Status: RESOLVED DUPLICATE of bug 117407
Alias: None
Product: gcc
Classification: Unclassified
Component: libbacktrace (show other bugs)
Version: 15.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-02 00:10 UTC by Edwin Lu
Modified: 2024-11-02 00:13 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Lu 2024-11-02 00:10:04 UTC
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
Comment 1 Edwin Lu 2024-11-02 00:13:21 UTC
dup

*** This bug has been marked as a duplicate of bug 117407 ***