Open cnlohr opened 5 days ago
Any idea what flags is missing when configuring gcc? I'll have a look, but any hint is (very) welcome :)
I have not personally built it with this, but a collegue has provided the following (They use Nix but I am guessing you don't. Should be fine).
https://github.com/cleverca22/nixpkgs/blob/riscv-uclibc/lib/systems/examples.nix#L141
gcc.abi = "ilp32";
which nix then turns into:
"--with-abi=${p.abi}"
so just build gcc with --with-abi=ilp32
Ok, thanks. I'll try to have a look in the coming weeks (don't expect anything from me until august I think).
Describe the bug
When compiling for non-D targets of RISC-V GCC on version on godbolt of newer than 12.1.0, the compiler is missing ilp32 ABIs, required for most microcontrollers.
This is likely because GCC may not be being built with full RISC-V support.
Steps to reproduce
-g -Os -march=rv32imac -mabi=ilp32
Expected behavior
Expected program to compile normally, as it does on older GCC versions.
Reproduction link
https://godbolt.org/z/G6jrWW6W3
Screenshots
Not applicable
Operating System
N/A
Browser version
N/A