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