Description of problem: riscv64 support was upstreamed in GCC 7.1.0, which (or higher version) is available in Fedora. Pull request is available here: https://src.fedoraproject.org/rpms/cross-gcc/pull-request/1# Fedora RISC-V efforts are described here: https://fedoraproject.org/wiki/Architectures/RISC-V
ping
Is arch support slated to go into the upstream kernel?
Yes, it's already in linux-next and should land in 4.15. linux-next: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arch/riscv?h=next-20171106 glibc changes should land in 2.27 (assuming nothing goes terrible wrong).
Okay. Anyway, I've added riscv64 support to my local repos; should be in rawhide soon and f27 in a couple of days.
I wonder if you could also do riscv32? My particular interest is compiling programs for PicoRV32, but there's also a reasonable chance that in the next year we'll have 64 bit RISC-V hardware which will have RV32 special-purpose cores included (for doing firmware-ish things like power management) and we'd like to compile software for those. I am currently doing a local build which was made using the obvious changes (ie. searching the spec files of cross-binutils & cross-gcc for /riscv64/ and adding similar lines for riscv32).
Created attachment 1409528 [details] 0001-Add-riscv32-architecture.patch Patch to cross-binutils.
Created attachment 1409530 [details] 0001-Fix-broken-case-statement.patch Patch to cross-gcc to fix broken case statement in spec file.
Created attachment 1409531 [details] 0002-Add-riscv32-architecture.patch Patch to cross-gcc to add riscv32 architecture.