-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
how can i relate releases with riscv-gcc version #1552
Comments
I think that might be tricky as you would have to identify all of the relevant repositories and branches/tags to collate all the correct sources for all of the components for a GCC 11.0 toolchain build. Especially since older versions of What about using a binary build like @ilg-ul's xPack GNU RISC-V Embedded GCC? Alternatively there may be a CI build of a GCC 11.0 toolchain in the Releases section but again you might have to do some digging: |
You can download any past GCC release directly from GNU (or any mirror): |
Yes, but I suspect that back in the GCC 11.0 days a lot of the RISC-V support development/enhancement was being done here (in the |
agree, support for RISC-V was upstreamed gradually, and old GCC releases may not include all the desired features. |
GCC 11 (11.1 - there's no 11.0 listed here but I think that GCC doesn't do releases with a '0' minor version?) was released April 27th 2021: This is the first I didn't check further but there are probably subsequent CI builds that are also based on 11.x. Why do you want to build/use such an old toolchain? A more recent one will have much better, more complete, and more stable RISC-V support. |
My development environment is that J-Link(embedded system tool in Windows) loads riscv bin to my device(compiled in Linux with riscv32-unknown-elf-gcc, the version of which is 11.1.0), and i need to use J-Link tool as a gdb-server and a gdb client to debug my device.Therefore, i need a riscv toolchain which 11.1.0 in Windows, and i find no executable program, which is exactly the same version. Do i make a correct method to solve this promble? Maybe i am wrong |
Does it mean that riscv32-unknown-elf toolchain(may arm cc as well?) is built with GNU toolchain only if complie it with correct parameter? I am also confused that how can i compile the source code to get the same toolchain as Linux in Windows |
Why do you specifically need GCC 11 here? In any case, trying to use such an old version of the toolchain when RISC-V support was much less complete/stable is probably not a great idea. I don't understand why there is a dependency on GCC 11 specifically here?
The CI builds on this repo are only for Linux.
I don't understand what you mean here - please clarify. |
Sorry, I don't understand what exactly you're trying to ask here. Maybe you can clarify. I would not try to use a GCC 11 binary build from the upstream GCC FTP server for RISC-V development because at the time that GCC 11 was released much of the RISC-V development/enhancment was done here in this and related repos and not upstream. But, as I've said several times already, I wouldn't even use GCC 11 at all for RISC-V development because it's so out of date. You would be much better advised to use a more recent build of the toolchain - at least 13.2.0 from this repo or maybe even 14.2.0 built from upstream sources. |
i thought it should be used the same version of toolchain to debug and it seems that i am wrong |
i will try this. Thank you |
i've never tried to build GNU toolchain in Windows with the source code before. Therefore, my method to solve this problem may be wrong. |
GDB 15.1 can be used to debug any ELF executable program - including one that was originally compiled using GCC 11. |
i want to build riscv32-unknown-elf-gcc 11.0 in Windows with source code, but i have no idea which release should i download. Is there any relation between release date with gcc version?
The text was updated successfully, but these errors were encountered: