RISCV riscv-tools build issue lowrisc-chip/riscv-tools/riscv64-unknown-elf/bin/as: unrecognized option '--64'
by Peter Van Doren
Hello:
I'm looking at the RISCV as a possible solution for a customer ASIC. At
this point, I'm just looking to build the FPGA and tools for the ZC706
board.
I'm following the instructions on
http://www.lowrisc.org/docs/tutorial/setup/
and have hit an error when building the RISCV tools.
Spike is generated but riscv64-uknown-elf-gcc is not.
The error message I'm receiving is:
Links are now set up to build a cross-compiler
from x86_64-unknown-linux-gnu to riscv64-unknown-elf.
/home/pvandoren/Projects/RISCV/lowrisc-chip/riscv-tools/riscv64-unknown-elf/bin/as:
unrecognized option '--64'
gmake[3]: *** [build/version.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: *** wait: No child processes. Stop.
gmake[2]: *** [all-gcc] Error 2
gmake[1]: *** [all] Error 2
gmake: *** [build-gcc-newlib] Error 2
I'm running Ubuntu 14.04 64 bit and this same error occurs on both the
RISCV project and the lowrisc project.
Did something change in the repository that broke the system, or am I
missing some other requirement?
Thanks
Pete
8 years, 5 months
docker images
by Justin Cormack
As following the instructions to build the lowrisc toolchains gets
quite tedious I decided to set up automated builds with docker:
docker pull justincormack/docker-riscv
This image contains spike, the riscv64-unknown-elf-* toolchain, etc,
all in /usr/local/bin
If you have docker installed
docker run -i -t justincormack/docker-riscv /bin/bash
will give you a shell with everything available in the path.
The second image:
docker pull justincormack/docker-riscv-linux
also builds the linux cross toolchain riscv64-unknown-linux-gnu-* and
vmlinux, and I will shortly add a root filesystem to it as well so it
is ready to go to run riscv linux.
If you want to rebuild the images yourself or modify things clone one of these
https://github.com/justincormack/docker-riscv-linux
https://github.com/justincormack/docker-riscv
and do "docker build ."
Justin
8 years, 5 months