Open zhuzhzh opened 4 years ago
I had the same issue. I found out that latest riscv64-unknown-elf-gcc version is not compatible with spike which is in this repo. You can use SiFive's prebuilt GNU Embedded Tool chain. It's version working with spike pk without an error.
I had the same issue,And solved it by https://github.com/riscv/riscv-pk/issues/170 which explains tree-loop-distribute-patterns
@shitianbushuijiao thanks, it works with the change as riscv/riscv-pk#170
I still encounter this error. Using da01ba455ce3802ffa84fdca3a089079996dbfc3 commit of(HEAD -> rvv-next, origin/rvv-next) I need to test some simple vector instructions so using rvv-next branch riscv-gnu-toolchain$ git submodule status 9826b03b747b841f5fc6de2054bf1ef3f5c4bdf3 glibc (glibc-2.33) -85e0e3519655220688e757b9d5bfd314923548bd musl 415fdd4279b85eeec9d54775ce13c5c412451e08 newlib (newlib-4.1.0) -553032db17440f8de011390e5a1cfddd13751b0b qemu b51c2fec1da205ea3e7354cbb3e253018d64873c riscv-binutils (binutils-2_39) -4ea498a8e1fafeb568530d84db1880066478c86b riscv-dejagnu +eb96155f49deefcde0b054f6c02aa67c607ac482 riscv-gcc (remotes/origin/riscv-gcc-rvv-next) 5da071ef0965b8054310d8dde9975037b0467311 riscv-gdb (remotes/origin/fsf-gdb-10.1-with-sim)
But am unable to execute prorams (sclara and vector) with spike pk,
I have tried some permuations between riscv32-unknown-elf-gcc andriscv64-unknown-elf-gcc
But although program always compiles, I encounter error described here
Compiled a simple program with riscv32-unknown-elf-gcc -march=rv32gcv hello.c -o hello
Invoked PK in two ways -
I follows the guide to build riscv-gnu-toolchain first. then build riscv-tools on CentOS7.8.
Everything looks fine.
riscv64-unknown-elf-gcc -o hello helloworld.c
which pk
andwhich bbl
can be found.I tried with qemu-riscv64. It's okay.
Do you know why spike pk doesn't work?