-
Notifications
You must be signed in to change notification settings - Fork 6
Description
I have replicated everything as closely as I could. I have set up Modelsim and Pulpissiomo environment. I can run the basic "Hello" program simulation.
Now I want to set up the trace_debugger and trdb however it fails on "make make generate-tests-64" step with the following error:
$ make generate-tests-64
make -C trdb spike-traces-64
make[1]: Entering directory '/home/hartz/ML-debug/PULPissimo/pulpissimo/trace_debugger/trdb'
rm -rf riscv-tests-64
git clone https://github.com/riscv/riscv-tests/ --recursive riscv-tests-64
Cloning into 'riscv-tests-64'...
remote: Enumerating objects: 6637, done.
remote: Counting objects: 100% (280/280), done.
remote: Compressing objects: 100% (151/151), done.
remote: Total 6637 (delta 151), reused 233 (delta 127), pack-reused 6357
Receiving objects: 100% (6637/6637), 2.37 MiB | 1.53 MiB/s, done.
Resolving deltas: 100% (4467/4467), done.
Submodule 'env' (https://github.com/riscv/riscv-test-env.git) registered for path 'env'
Cloning into '/home/hartz/ML-debug/PULPissimo/pulpissimo/trace_debugger/trdb/riscv-tests-64/env'...
remote: Enumerating objects: 579, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 579 (delta 9), reused 18 (delta 7), pack-reused 552
Receiving objects: 100% (579/579), 198.67 KiB | 900.00 KiB/s, done.
Resolving deltas: 100% (302/302), done.
Submodule path 'env': checked out '0666378f353599d01fc48562b431b1dd049faab5'
cd riscv-tests-64/benchmarks && XLEN=64 make && touch build.ok
make[2]: Entering directory '/home/hartz/ML-debug/PULPissimo/pulpissimo/trace_debugger/trdb/riscv-tests-64/benchmarks'
riscv64-unknown-elf-gcc -I./../env -I./common -I./median -I./qsort -I./rsort -I./towers -I./vvadd -I./multiply -I./mm -I./dhrystone -I./spmv -I./mt-vvadd -I./mt-matmul -I./pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o median.riscv ./median/median_main.c ./median/median.c ./common/syscalls.c ./common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T ./common/test.ld
riscv64-unknown-elf-objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data median.riscv > median.riscv.dump
riscv64-unknown-elf-gcc -I./../env -I./common -I./median -I./qsort -I./rsort -I./towers -I./vvadd -I./multiply -I./mm -I./dhrystone -I./spmv -I./mt-vvadd -I./mt-matmul -I./pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o qsort.riscv ./qsort/qsort_main.c ./common/syscalls.c ./common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T ./common/test.ld
riscv64-unknown-elf-objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data qsort.riscv > qsort.riscv.dump
riscv64-unknown-elf-gcc -I./../env -I./common -I./median -I./qsort -I./rsort -I./towers -I./vvadd -I./multiply -I./mm -I./dhrystone -I./spmv -I./mt-vvadd -I./mt-matmul -I./pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o rsort.riscv ./rsort/rsort.c ./common/syscalls.c ./common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T ./common/test.ld
riscv64-unknown-elf-objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data rsort.riscv > rsort.riscv.dump
riscv64-unknown-elf-gcc -I./../env -I./common -I./median -I./qsort -I./rsort -I./towers -I./vvadd -I./multiply -I./mm -I./dhrystone -I./spmv -I./mt-vvadd -I./mt-matmul -I./pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o towers.riscv ./towers/towers_main.c ./common/syscalls.c ./common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T ./common/test.ld
riscv64-unknown-elf-objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data towers.riscv > towers.riscv.dump
riscv64-unknown-elf-gcc -I./../env -I./common -I./median -I./qsort -I./rsort -I./towers -I./vvadd -I./multiply -I./mm -I./dhrystone -I./spmv -I./mt-vvadd -I./mt-matmul -I./pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o vvadd.riscv ./vvadd/vvadd_main.c ./common/syscalls.c ./common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T ./common/test.ld
riscv64-unknown-elf-objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data vvadd.riscv > vvadd.riscv.dump
riscv64-unknown-elf-gcc -I./../env -I./common -I./median -I./qsort -I./rsort -I./towers -I./vvadd -I./multiply -I./mm -I./dhrystone -I./spmv -I./mt-vvadd -I./mt-matmul -I./pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o multiply.riscv ./multiply/multiply_main.c ./multiply/multiply.c ./common/syscalls.c ./common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T ./common/test.ld
riscv64-unknown-elf-objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data multiply.riscv > multiply.riscv.dump
riscv64-unknown-elf-gcc -I./../env -I./common -I./median -I./qsort -I./rsort -I./towers -I./vvadd -I./multiply -I./mm -I./dhrystone -I./spmv -I./mt-vvadd -I./mt-matmul -I./pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o mm.riscv ./mm/mm.c ./mm/mm_main.c ./common/syscalls.c ./common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T ./common/test.ld
riscv64-unknown-elf-objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data mm.riscv > mm.riscv.dump
riscv64-unknown-elf-gcc -I./../env -I./common -I./median -I./qsort -I./rsort -I./towers -I./vvadd -I./multiply -I./mm -I./dhrystone -I./spmv -I./mt-vvadd -I./mt-matmul -I./pmp -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -fno-tree-loop-distribute-patterns -o dhrystone.riscv ./dhrystone/dhrystone.c ./dhrystone/dhrystone_main.c ./common/syscalls.c ./common/crt.S -static -nostdlib -nostartfiles -lm -lgcc -T ./common/test.ld
./dhrystone/dhrystone.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int]
Proc_6 (Enum_Val_Par, Enum_Ref_Par)
^~~~~~
./dhrystone/dhrystone.c: In function 'Proc_6':
./dhrystone/dhrystone.c:29:9: warning: implicit declaration of function 'Func_3' [-Wimplicit-function-declaration]
if (! Func_3 (Enum_Val_Par))
^~~~~~
./dhrystone/dhrystone.c: At top level:
./dhrystone/dhrystone.c:54:1: warning: return type defaults to 'int' [-Wimplicit-int]
Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref)
^~~~~~
./dhrystone/dhrystone.c:74:1: warning: return type defaults to 'int' [-Wimplicit-int]
Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val)
^~~~~~
./dhrystone/dhrystone_main.c: In function 'main':
./dhrystone/dhrystone_main.c:120:7: warning: implicit declaration of function 'Proc_5' [-Wimplicit-function-declaration]
Proc_5();
^~~~~~
./dhrystone/dhrystone_main.c:121:7: warning: implicit declaration of function 'Proc_4' [-Wimplicit-function-declaration]
Proc_4();
^~~~~~
./dhrystone/dhrystone_main.c:127:21: warning: implicit declaration of function 'Func_2'; did you mean 'Func_1'? [-Wimplicit-function-declaration]
Bool_Glob = ! Func_2 (Str_1_Loc, Str_2_Loc);
^~~~~~
Func_1
./dhrystone/dhrystone_main.c:133:2: warning: implicit declaration of function 'Proc_7' [-Wimplicit-function-declaration]
Proc_7 (Int_1_Loc, Int_2_Loc, &Int_3_Loc);
^~~~~~
./dhrystone/dhrystone_main.c:138:7: warning: implicit declaration of function 'Proc_8' [-Wimplicit-function-declaration]
Proc_8 (Arr_1_Glob, Arr_2_Glob, Int_1_Loc, Int_3_Loc);
^~~~~~
./dhrystone/dhrystone_main.c:140:7: warning: implicit declaration of function 'Proc_1'; did you mean 'Func_1'? [-Wimplicit-function-declaration]
Proc_1 (Ptr_Glob);
^~~~~~
Func_1
./dhrystone/dhrystone_main.c:147:4: warning: implicit declaration of function 'Proc_6' [-Wimplicit-function-declaration]
Proc_6 (Ident_1, &Enum_Loc);
^~~~~~
./dhrystone/dhrystone_main.c:158:7: warning: implicit declaration of function 'Proc_2' [-Wimplicit-function-declaration]
Proc_2 (&Int_1_Loc);
^~~~~~
./dhrystone/dhrystone_main.c: At top level:
./dhrystone/dhrystone_main.c:242:1: warning: return type defaults to 'int' [-Wimplicit-int]
Proc_1 (Ptr_Val_Par)
^~~~~~
./dhrystone/dhrystone_main.c: In function 'Proc_1':
./dhrystone/dhrystone_main.c:258:3: warning: implicit declaration of function 'Proc_3'; did you mean 'Proc_1'? [-Wimplicit-function-declaration]
Proc_3 (&Next_Record->Ptr_Comp);
^~~~~~
Proc_1
./dhrystone/dhrystone_main.c: At top level:
./dhrystone/dhrystone_main.c:276:1: warning: return type defaults to 'int' [-Wimplicit-int]
Proc_2 (Int_Par_Ref)
^~~~~~
./dhrystone/dhrystone_main.c:299:1: warning: return type defaults to 'int' [-Wimplicit-int]
Proc_3 (Ptr_Ref_Par)
^~~~~~
./dhrystone/dhrystone_main.c:314:1: warning: return type defaults to 'int' [-Wimplicit-int]
Proc_4 () /* without parameters /
^~~~~~
./dhrystone/dhrystone_main.c:326:1: warning: return type defaults to 'int' [-Wimplicit-int]
Proc_5 () / without parameters */
^~~~~~
/tmp/ccPQ7o7Q.s: Assembler messages:
/tmp/ccPQ7o7Q.s:8: Error: unrecognized opcodeldu a4,Ch_1_Glob' /tmp/ccPQ7o7Q.s:119: Error: unrecognized opcodeldu a5,Ch_1_Glob'
/tmp/ccPQ7o7Q.s:379: Error: unrecognized opcodeldu a1,Ch_1_Glob' /tmp/ccPQ7o7Q.s:385: Error: unrecognized opcodeldu a1,Ch_2_Glob'
make[2]: *** [Makefile:54: dhrystone.riscv] Error 1
make[2]: Leaving directory '/home/hartz/ML-debug/PULPissimo/pulpissimo/trace_debugger/trdb/riscv-tests-64/benchmarks'
make[1]: *** [Makefile:267: riscv-tests-64/benchmarks/build.ok] Error 2
make[1]: Leaving directory '/home/hartz/ML-debug/PULPissimo/pulpissimo/trace_debugger/trdb'
make: *** [Makefile:178: generate-tests-64] Error 2
I am running a Ubuntu 20.04.3 LTS.
As I said previously, I have followed the steps as closely as possible. Also, I have tried looking into possible version mismatches or tried to understand what dhrystone entails. Additionally, I have tried configuring the toolchain differently, still, the error persists. and I do not understand what seems to be the issue.
< EDIT >
As I understand it fails during './configure --prefix=$RISCV/target' step from https://github.com/riscv-software-src/riscv-tests