riscv-pk icon indicating copy to clipboard operation
riscv-pk copied to clipboard

building bbl fails

Open shubhankar039 opened this issue 7 years ago • 2 comments

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

shubhankar039 avatar Sep 08 '18 07:09 shubhankar039

I encountered the same problem, have you solved it?

yonghaoXuGit avatar Sep 14 '18 06:09 yonghaoXuGit

No, I have not solved it yet. Is this the problem with the riscv-gnu-toolchain?

shubhankar039 avatar Sep 14 '18 06:09 shubhankar039