riscvarchive / riscv-gcc

GNU General Public License v2.0
361 stars 274 forks source link

how to install riscv64-unknown-elf-gcc #171

Open amitgargmentor opened 5 years ago

amitgargmentor commented 5 years ago

Hi, I downloaded the source code from repository but not able to install.

i am looking to install gcc for riscv64-unknown-elf-gcc.

what are the steps ? can someone please help ?

Thanks

kito-cheng commented 5 years ago

You can use riscv-gnu-toolchain if you want build from source, or you can download pre-built version from SiFive.

Miskatop commented 3 years ago

You can install riscv64-unknown-elf-gcc in ubuntu using apt : sudo apt install gcc-riscv64-unknown-elf

IvanVnucec commented 3 years ago

@Miskatop Only on Ubuntu 20.04 and up if im not wrong: https://packages.ubuntu.com/search?keywords=gcc-riscv64-unknown-elf

ZhangPeterGree commented 3 years ago

Screenshot 2021-10-10 181637 Hi guys, I has issue. compiling error, Can't find heard file. I tried #include and "stdio.h". but is fatal error. So can give idea.

jim-wilson commented 3 years ago

Did you build riscv-gnu-toolchain or install an OS package? What OS and version do you have? The Ubuntu 20.04 package is known to be incomplete and hence useless. It is apparently complete and working in Ubuntu 21.04. If you built riscv-gnu-toolchain yourself, then there was a build error that you missed, and you need to go back and check your build log if you have it, or else rebuild it from scratch.

Miskatop commented 3 years ago

@jim-wilson thanks, I successfully build

IvanVnucec commented 3 years ago

Can you explain what the issue was and how did you managed to fix it?

On Mon, Oct 11, 2021, 19:33 Mikhayil @.***> wrote:

@jim-wilson https://github.com/jim-wilson thanks, I successfully build

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/riscv-collab/riscv-gcc/issues/171#issuecomment-940219534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMB7OPX737KAA5PXK23P5E3UGMNV3ANCNFSM4I5I2LBA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.