public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/115166] New: RISC-V: flakey relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR1' in slp_run-2.c
@ 2024-05-20 17:27 ewlu at rivosinc dot com
  2024-05-20 20:24 ` [Bug target/115166] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: ewlu at rivosinc dot com @ 2024-05-20 17:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115166
           Summary: RISC-V: flakey relocation truncated to fit:
                    R_RISCV_GPREL_I against `.LANCHOR1' in slp_run-2.c
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ewlu at rivosinc dot com
  Target Milestone: ---

Affected target: newlib rv32gcv

Our postcommit ci first saw this error Dec 2023 but it was quickly resolved.
https://github.com/patrick-rivos/gcc-postcommit-ci/issues?q=FAIL%3A+gcc.target%2Friscv%2Frvv%2Fautovec%2Fpartial%2Fslp_run-2.c+%28test+for+excess+errors%29

We only recently started to observe it be more and more flakey

Using the riscv-gnu-toolchain framework

configure:
../configure --prefix=$(pwd)
--with-multilib-generator="rv32gcv-ilp32d--;rv64gcv-lp64d--;rv64gcv_zvbb_zvbc_zvkg_zvkn_zvknc_zvkned_zvkng_zvknha_zvknhb_zvks_zvksc_zvksed_zvksg_zvksh_zvkt-lp64d--;rv64imafdcv_zicond_zawrs_zbc_zvkng_zvksg_zvbb_zvbc_zicsr_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt-lp64d--"

Submodule versions:
 c7f28aad0c99d1d2fec4e52ebfa3735d90ceb8e9 binutils (binutils-2_42)
 c298959ef991b389b64a825f70094738c6a48780 dejagnu (dejagnu_1_4_3-903-gc298959)
 6bda1c19bcd16eff8488facb8a67d52a436f70e7 gdb (gdb-14.1-release)
 ef321e23c20eebc6d6fb4044425c00e6df27b05f glibc (glibc-2.39)
 9e09d6ed83cce4777a5950412647ccc603040409 newlib (newlib-4.3.0)
 f48c205fb42be48e2e47b7e1cd9a2802e5ca17b0 qemu (v8.1.0-3483-gf48c205fb4)

Debug log:
Test run by patrick on Sun May 19 14:56:26 2024
Target is riscv64-unknown-elf
Host   is aarch64-unknown-linux-gnu

                === g++ tests ===

Schedule of variations:
    riscv-sim/-march=rv32gcv/-mabi=ilp32d/-mcmodel=medlow
    riscv-sim/-march=rv64gcv/-mabi=lp64d/-mcmodel=medlow
   
riscv-sim/-march=rv64gcv_zvbb_zvbc_zvkg_zvkn_zvknc_zvkned_zvkng_zvknha_zvknhb_zvks_zvksc_zvksed_zvksg_zvksh_zvkt/-mabi=lp64d/-mcmodel=medlow
   
riscv-sim/-march=rv64imafdcv_zicond_zawrs_zbc_zvkng_zvksg_zvbb_zvbc_zicsr_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt/-mabi=lp64d/-mcmodel=medlow

Executing on host:
/disk-1/github/patrick-postcommit-1/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/gcc/xgcc
-B/disk-1/github/patrick-postcommit-1/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/gcc/

/disk-1/github/patrick-postcommit-1/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/slp_run-2.c
 -march=rv32gcv -mabi=ilp32d -mcmodel=medlow   -fdiagnostics-plain-output  
-ftree-vectorize -O3 -mrvv-max-lmul=m8 -mrvv-vector-bits=scalable      -lm  -o
./slp_run-2.exe    (timeout = 600)
spawn -ignore SIGHUP
/disk-1/github/patrick-postcommit-1/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/gcc/xgcc
-B/disk-1/github/patrick-postcommit-1/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-newlib-stage2/gcc/
/disk-1/github/patrick-postcommit-1/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/slp_run-2.c
-march=rv32gcv -mabi=ilp32d -mcmodel=medlow -fdiagnostics-plain-output
-ftree-vectorize -O3 -mrvv-max-lmul=m8 -mrvv-vector-bits=scalable -lm -o
./slp_run-2.exe
/tmp/ccDppxHt.o: in function `main':
slp_run-2.c:(.text.startup+0xb62): relocation truncated to fit: R_RISCV_GPREL_I
against `.LANCHOR1'
collect2: error: ld returned 1 exit status
compiler exited with status 1
FAIL: gcc.target/riscv/rvv/autovec/partial/slp_run-2.c (test for excess errors)
Excess errors:
slp_run-2.c:(.text.startup+0xb62): relocation truncated to fit: R_RISCV_GPREL_I
against `.LANCHOR1'

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/115166] RISC-V: flakey relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR1' in slp_run-2.c
  2024-05-20 17:27 [Bug testsuite/115166] New: RISC-V: flakey relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR1' in slp_run-2.c ewlu at rivosinc dot com
@ 2024-05-20 20:24 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-05-20 20:24 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=27566

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This seems more likely a binutils issue (like
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 ).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-20 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-20 17:27 [Bug testsuite/115166] New: RISC-V: flakey relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR1' in slp_run-2.c ewlu at rivosinc dot com
2024-05-20 20:24 ` [Bug target/115166] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).