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

Installing the toolchain #69

Open
Aaronyap2002 opened this issue Dec 18, 2023 · 1 comment
Open

Installing the toolchain #69

Aaronyap2002 opened this issue Dec 18, 2023 · 1 comment

Comments

@Aaronyap2002
Copy link

Aaronyap2002 commented Dec 18, 2023

Hello, I downloaded and extracted the toolchain version gcc-rv32imc-20210412-1, but I weren't able to install it. What did I do wrong here?

aaron@aaron-TravelMate-P238-M:~/Downloads$ cd /home/aaron/Downloads/lowrisc-toolchain-gcc-rv32imc-20210412-1
aaron@aaron-TravelMate-P238-M:~/Downloads/lowrisc-toolchain-gcc-rv32imc-20210412-1$ sudo ./configure --prefix=/home/aaron/new1/ --with-arch=rv32gc --with-abi=ilp32d--disable-float--disable-atomic
aaron@aaron-TravelMate-P238-M:~/Downloads/lowrisc-toolchain-gcc-rv32imc-20210412-1$ sudo ./configure 
sudo: ./configure: command not found
aaron@aaron-TravelMate-P238-M:~/Downloads/lowrisc-toolchain-gcc-rv32imc-20210412-1$ sudo ./configure 
sudo: ./configure: command not found
aaron@aaron-TravelMate-P238-M:~/Downloads/lowrisc-toolchain-gcc-rv32imc-20210412-1$ make install
make: *** No rule to make target 'install'.  Stop.
aaron@aaron-TravelMate-P238-M:~/Downloads/lowrisc-toolchain-gcc-rv32imc-20210412-1$ make
make: *** No targets specified and no makefile found.  Stop.
aaron@aaron-TravelMate-P238-M:~/Downloads/lowrisc-toolchain-gcc-rv32imc-20210412-1$ ./build.sh
bash: ./build.sh: No such file or directory
@jwnrt
Copy link
Contributor

jwnrt commented Jan 4, 2024

Hi, if you downloaded the toolchain tarball through GitHub releases, you should get the pre-built binaries, data files, libraries etc. so there's no need to configure or make anything.

You'll need to copy those files somewhere that's in your PATH and library lookup directories.

As an example, this command will extract the tarball into your ~/.local/bin, ~/.local/lib etc. directories:

tar -xf lowrisc-toolchain-gcc-rv32imc-20210412-1.tar.xz --strip-components=1 -C ~/.local

If ~/.local/bin/ is in your PATH, then you should be able to run riscv32-unknown-elf-gcc etc.

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

No branches or pull requests

2 participants