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, 2 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
>> /usr/local/bin
>
> 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.
>
> Nice
>
> Thanks a lot, I'll dig into it !
>
> Reinoud
>
8 years, 2 months