Troubles building cross-compiler; target 64-bit RISC-V

Segher Boessenkool segher@kernel.crashing.org
Sun Aug 4 21:19:00 GMT 2019


Hi,

On Sun, Aug 04, 2019 at 10:34:51PM +0200, 64m@tutamail.com wrote:
> Configured with: ../gcc-9.1.0/configure --target=riscv64-elf --prefix=/home/borys/devel/riscv64 --disable-nls --enable-languages=c --without-headers CC=ntvgcc CXX=ntvg++

> /home/borys/src/rvgcc/./gcc/xgcc -B/home/borys/src/rvgcc/./gcc/ -B/home/borys/devel/riscv64/riscv64-elf/bin/ -B/home/borys/devel/riscv64/riscv64-elf/lib/ -isystem /home/borys/devel/riscv64/riscv64-elf/include -isystem /home/borys/devel/riscv64/riscv64-elf/sys-include    -o conftest -g -O2   conftest.c  >&5
> /home/borys/src/rvgcc/./gcc/as: 106: exec: -march=rv64gc: not found

No assembler for your target was found.  An easy way to arrange this
is to install it in the same $PREFIX, and put $PREFIX/bin in your path
before configuring and building GCC.  Look earlier in the log file to
see where it searched for an assembler (and failed to find one?)

Good luck,


Segher



More information about the Gcc-help mailing list