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
Re: [lowrisc-dev] docker images
by Justin Cormack
On 1 July 2015 at 20:03, Reinoud Zandijk <reinoud(a)netbsd.org> wrote:
> Hi Justin,
> On Tue, Jun 30, 2015 at 04:17:43PM +0100, Justin Cormack wrote:
>> 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
> Neat! It worked here out-of-the-box on Ubuntu. Can't test it yet on NetBSD
> though :-/ I might have to create a package for docker first :-/
Docker is alas not portable outside Linux. But adding the riscv tools
to pkgsrc is an excellent idea, will do that.
>> This image contains spike, the riscv64-unknown-elf-* toolchain, etc, all in
> But it doesn't include vi nor vim, nor any other editor I know of! Hacking on it
> then has to rely on the knowledge where it stores the files of the image.
Very good point! I have just added vim and it should be rebuilt shortly.
>> 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.
> Thanks a lot, I'll dig into it !
7 years, 8 months