platform-ch32v icon indicating copy to clipboard operation
platform-ch32v copied to clipboard

Add RISC-V toolchain package

Open maxgerhardt opened this issue 2 years ago • 12 comments

PIO only has the SiFive variant but we want https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases to be same as the the MounRiverStudio at least.

Toolchain can still be upgraded from that.

Currently uses Windows-only packaging of toolchain fromr MounRiverStudio.

maxgerhardt avatar Feb 19 '23 00:02 maxgerhardt

The packages have been submitted to the PIO Registry for review under the community-ch32v organization and are waiting for approval.

maxgerhardt avatar Feb 19 '23 19:02 maxgerhardt

A temporary work-around has been implemented in ce56da04f343377acdd305ae24fcd279e2ac0cc0

maxgerhardt avatar Mar 04 '23 19:03 maxgerhardt

any update on this?

how to use latest toolchain? c++23 is needed.

microcai avatar Feb 02 '24 08:02 microcai

Attempted in ab4dafc5eea660b38659dc52b1c4dbbe01e6265a, 83666d585f308ad25ef66d73acbffa3b89ea76e8 and 9b032a19b9595f6c08de0a18dd3bbd2f9bd9ae0f.

The update to GCC12 was a massive failure. The Windows toolchain works fine. The Linux toolchain misses the libprintf.a file that the OpenWCH Arduino core requires and thus fails building. The Mac toolchain fails catastrophically and can't even compile core_riscv.c.

I've disabled the usage of GCC12 again in c4d8867cbaf22ab95bea08894bd7817530802afb after the failed upgrade attempt. I've emailed support about these issues already and am awaiting another toolchain update, in, maybe a month, optimistically. This needs to work properly on all OSes, not only Windows. Until then, it's not done.

maxgerhardt avatar Feb 03 '24 22:02 maxgerhardt

Hello, thank you for using and providing feedback. We will launch a new Linux community version and macOS, Linux toolchain package after the Spring Festival.

MounRiver Studio

Okay, that sounds.. soon?

maxgerhardt avatar Feb 04 '24 12:02 maxgerhardt

does that means, if i use nonos-sdk, then gcc-12 is fine?

microcai avatar Feb 07 '24 03:02 microcai

Attempted in ab4dafc, 83666d5 and 9b032a1.

The update to GCC12 was a massive failure. The Windows toolchain works fine. The Linux toolchain misses the libprintf.a file that the OpenWCH Arduino core requires and thus fails building. The Mac toolchain fails catastrophically and can't even compile core_riscv.c.

I've disabled the usage of GCC12 again in c4d8867 after the failed upgrade attempt. I've emailed support about these issues already and am awaiting another toolchain update, in, maybe a month, optimistically. This needs to work properly on all OSes, not only Windows. Until then, it's not done.

riscv-windows privode riscv-none-embed while risc-linux-bin provide riscv-none-elf.

microcai avatar Feb 07 '24 11:02 microcai

copy toolchain-riscv-windows/riscv-none-embed/lib/rv32imacxw/ilp32/libprintf.a to toolchain-riscv/riscv-none-elf/lib/rv32imac_xw/ilp32/ and build success.

microcai avatar Feb 07 '24 11:02 microcai

I'll let MounRiver sort this one out so that we can do a clean update.

maxgerhardt avatar Feb 07 '24 19:02 maxgerhardt

我会让 MounRiver 解决这个问题,以便我们可以进行干净的更新。

Currently, Linux and macos toolchains have been updated. I successfully compiled the firmware and ran it under macos using the toolchain of cmake and mousriver studio

vihor3 avatar Feb 21 '24 05:02 vihor3

I'll let MounRiver sort this one out so that we can do a clean update.

mainly because platform-build.py problem, force to add -lprintf flag。 and the result binary is way bigger than usual.

microcai avatar Mar 05 '24 03:03 microcai

The latest MacOS GCC12 toolchain is still broken. An Email has been sent to support.

maxgerhardt avatar Sep 15 '24 13:09 maxgerhardt