building bbl fails
I ran the following commands: ../configure --prefix=$RISCV --host=riscv64-unknown-linux-gnu --with-payload=../../riscv-linux/vmlinux make
The build fails with the following error:
riscv64-unknown-linux-gnu-gcc -nostartfiles -nostdlib -static -o pk pk.o -L. -lpk -lmachine -lsoftfloat -lutil -lgcc -T ../pk/pk.lds
pk.o: In function .L16': pk.c:(.text+0x23c): undefined reference to __riscv_flush_icache'
collect2: error: ld returned 1 exit status
Makefile:302: recipe for target 'pk' failed
make: *** [pk] Error 1
I encountered the same problem, have you solved it?
No, I have not solved it yet. Is this the problem with the riscv-gnu-toolchain?