RISCV riscv-tools build issue lowrisc-chip/riscv-tools/riscv64-unknown-elf/bin/as: unrecognized option '--64'
by Peter Van Doren
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
I'm following the instructions on
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.
unrecognized option '--64'
gmake: *** [build/version.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** wait: No child processes. Stop.
gmake: *** [all-gcc] Error 2
gmake: *** [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?
7 years, 8 months
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
and do "docker build ."
7 years, 8 months