public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/110951] New: [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d'
@ 2023-08-08 21:21 ewlu at rivosinc dot com
  2023-08-08 21:29 ` [Bug testsuite/110951] " ewlu at rivosinc dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ewlu at rivosinc dot com @ 2023-08-08 21:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110951
           Summary: [13/14] RISCV: rv32 newlib gcc.c-torture testsuite
                    fails with xgcc: fatal error: Cannot find suitable
                    multilib set for
                    '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d'
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ewlu at rivosinc dot com
  Target Milestone: ---

Seeing the following error on newlib rv32 builds for most (all?)
gcc.c-torture/execute tests without the dg directives (for example,
gcc.c-torture/execute/20031020-1.c).

Error message: xgcc: fatal error: Cannot find suitable multilib set for
'-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d'
results in a compilation failure

Confirmed that the error exists on gcc-13.2.0 and gcc-14. 

Example can be found on
https://github.com/patrick-rivos/riscv-gnu-toolchain/issues/137

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

* [Bug testsuite/110951] [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d'
  2023-08-08 21:21 [Bug testsuite/110951] New: [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d' ewlu at rivosinc dot com
@ 2023-08-08 21:29 ` ewlu at rivosinc dot com
  2023-09-28 20:42 ` ewlu at rivosinc dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ewlu at rivosinc dot com @ 2023-08-08 21:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Edwin Lu <ewlu at rivosinc dot com> ---
On rv32 newlib GCC 12 the issue is different and might be unrelated:

- ABI is incompatible with that of the selected emulation:
  target emulation `elf64-littleriscv' does not match `elf32-littleriscv'
- ./20031020-1.exe(.text.exit): relocation "_exit+0x0 (type R_RISCV_CALL_PLT)"
goes out of range
- file class ELFCLASS64 incompatible with ELFCLASS32
- final link failed: file in wrong format

rv32 linux GCC 13/14 the issue is also different and might be unrelated
FAIL: gcc.c-torture/execute/20031020-1.c   -O0  (test for excess errors)
Testing execute/20031020-1.c,   -O1
Executing on host:
/scratch/ewlu/ci/triage/torture/build/build-gcc-linux-stage2/gcc/xgcc
-B/scratch/ewlu/ci/triage/torture/build/build-gcc-linux-stage2/gcc/ 
/scratch/ewlu/ci/triage/torture/gcc/gcc/testsuite/gcc.c-torture/execute/20031020-1.c
 -march=rv32gc -mabi=ilp32d -mcmodel=medlow   -fdiagnostics-plain-output    -O1
 -w      -lm  -o ./20031020-1.exe    (timeout = 600)
output is In file included from
/scratch/ewlu/ci/triage/torture/build/sysroot/usr/include/features.h:515,
                 from
/scratch/ewlu/ci/triage/torture/build/sysroot/usr/include/bits/libc-header-start.h:33,
                 from
/scratch/ewlu/ci/triage/torture/build/sysroot/usr/include/limits.h:26,
                 from
/scratch/ewlu/ci/triage/torture/build/lib/gcc/riscv64-unknown-linux-gnu/14.0.0/include/limits.h:205,
                 from
/scratch/ewlu/ci/triage/torture/build/build-gcc-linux-stage2/gcc/include/limits.h:205,
                 from
/scratch/ewlu/ci/triage/torture/build/build-gcc-linux-stage2/gcc/include/syslimits.h:7,
                 from
/scratch/ewlu/ci/triage/torture/build/build-gcc-linux-stage2/gcc/include/limits.h:34,
                 from
/scratch/ewlu/ci/triage/torture/gcc/gcc/testsuite/gcc.c-torture/execute/20031020-1.c:6:
/scratch/ewlu/ci/triage/torture/build/sysroot/usr/include/gnu/stubs.h:11:11:
fatal error: gnu/stubs-ilp32d.h: No such file or directory
compilation terminated.
 status 1
Checking pattern "sparc-*-sunos*" with x86_64-pc-linux-gnu
Checking pattern "alpha*-*-*" with x86_64-pc-linux-gnu
Checking pattern "hppa*-*-hpux*" with x86_64-pc-linux-gnu
compiler exited with status 1

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

* [Bug testsuite/110951] [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d'
  2023-08-08 21:21 [Bug testsuite/110951] New: [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d' ewlu at rivosinc dot com
  2023-08-08 21:29 ` [Bug testsuite/110951] " ewlu at rivosinc dot com
@ 2023-09-28 20:42 ` ewlu at rivosinc dot com
  2023-10-01 12:01 ` amylaar at gcc dot gnu.org
  2023-10-02 16:06 ` patrick at rivosinc dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ewlu at rivosinc dot com @ 2023-09-28 20:42 UTC (permalink / raw)
  To: gcc-bugs

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

Edwin Lu <ewlu at rivosinc dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Edwin Lu <ewlu at rivosinc dot com> ---
Found the problem was with testing environment and not testsuite

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

* [Bug testsuite/110951] [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d'
  2023-08-08 21:21 [Bug testsuite/110951] New: [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d' ewlu at rivosinc dot com
  2023-08-08 21:29 ` [Bug testsuite/110951] " ewlu at rivosinc dot com
  2023-09-28 20:42 ` ewlu at rivosinc dot com
@ 2023-10-01 12:01 ` amylaar at gcc dot gnu.org
  2023-10-02 16:06 ` patrick at rivosinc dot com
  3 siblings, 0 replies; 5+ messages in thread
From: amylaar at gcc dot gnu.org @ 2023-10-01 12:01 UTC (permalink / raw)
  To: gcc-bugs

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

Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amylaar at gcc dot gnu.org

--- Comment #3 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> ---
I see something like this come up randomly (i.e. not strictly reproducible)
with gcc14 about one to three times per million tests, in parts like gcc.dg.
I wonder if it could be related?  What was your testing environment problem?

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

* [Bug testsuite/110951] [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d'
  2023-08-08 21:21 [Bug testsuite/110951] New: [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d' ewlu at rivosinc dot com
                   ` (2 preceding siblings ...)
  2023-10-01 12:01 ` amylaar at gcc dot gnu.org
@ 2023-10-02 16:06 ` patrick at rivosinc dot com
  3 siblings, 0 replies; 5+ messages in thread
From: patrick at rivosinc dot com @ 2023-10-02 16:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Patrick O'Neill <patrick at rivosinc dot com> ---
The root cause of the problem was that we were moving files between containers
after the build before the testsuite run and forgot to preserve the symlinks.

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

end of thread, other threads:[~2023-10-02 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-08 21:21 [Bug testsuite/110951] New: [13/14] RISCV: rv32 newlib gcc.c-torture testsuite fails with xgcc: fatal error: Cannot find suitable multilib set for '-march=rv32imafdc_zicsr_zifencei'/'-mabi=ilp32d' ewlu at rivosinc dot com
2023-08-08 21:29 ` [Bug testsuite/110951] " ewlu at rivosinc dot com
2023-09-28 20:42 ` ewlu at rivosinc dot com
2023-10-01 12:01 ` amylaar at gcc dot gnu.org
2023-10-02 16:06 ` patrick at rivosinc dot com

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).