Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

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

Open
amitgargmentor opened this issue Oct 3, 2019 · 7 comments
Open

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

amitgargmentor opened this issue Oct 3, 2019 · 7 comments

Comments

@amitgargmentor
Copy link

amitgargmentor commented Oct 3, 2019

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

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

@Miskatop
Copy link

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

@IvanVnucec
Copy link

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

@ZhangPeterGree
Copy link

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

@jim-wilson
Copy link
Collaborator

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

@jim-wilson thanks, I successfully build

@IvanVnucec
Copy link

IvanVnucec commented Oct 11, 2021 via email

@ghost ghost mentioned this issue Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants