lowrisc-toolchains icon indicating copy to clipboard operation
lowrisc-toolchains copied to clipboard

Installing the toolchain

Open Aaronyap2002 opened this issue 2 years ago • 2 comments

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

Aaronyap2002 avatar Dec 18 '23 09:12 Aaronyap2002

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.

jwnrt avatar Jan 04 '24 15:01 jwnrt