Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RISC-V toolchain package #1

Open
maxgerhardt opened this issue Feb 19, 2023 · 12 comments
Open

Add RISC-V toolchain package #1

maxgerhardt opened this issue Feb 19, 2023 · 12 comments
Assignees

Comments

@maxgerhardt
Copy link
Member

maxgerhardt commented Feb 19, 2023

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 maxgerhardt changed the title Add RISC-V toolchain pacakge Add RISC-V toolchain package Feb 19, 2023
@maxgerhardt
Copy link
Member Author

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

@maxgerhardt
Copy link
Member Author

A temporary work-around has been implemented in ce56da0

@microcai
Copy link

microcai commented Feb 2, 2024

any update on this?

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

@maxgerhardt maxgerhardt self-assigned this Feb 3, 2024
@maxgerhardt
Copy link
Member Author

maxgerhardt commented Feb 3, 2024

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.

@maxgerhardt
Copy link
Member Author

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?

@microcai
Copy link

microcai commented Feb 7, 2024

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

@microcai
Copy link

microcai commented Feb 7, 2024

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
Copy link

microcai commented Feb 7, 2024

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.

@maxgerhardt
Copy link
Member Author

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

@vihor3
Copy link

vihor3 commented Feb 21, 2024

我会让 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

@microcai
Copy link

microcai commented Mar 5, 2024

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.

@maxgerhardt
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants