I compiled nbench using riscv64-unknown-linux-gnu-gcc.
riscv64-unknown-linux-gnu-gcc -s -static -Wall -O3 pointer.c -o pointer
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3\
-o pointer pointer.c
rm -f pointer.h
if [ "4" = `./pointer` ] ; then touch pointer.h ;\
else echo "#define LONG64" >pointer.h ; fi
/bin/sh: 2: [: bbl: unexpected operator
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3\
-c emfloat.c
emfloat.c: In function 'AddSubInternalFPF':
emfloat.c:649:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
649 | else
| ^~~~
emfloat.c:673:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
673 | if (locx.sign ^ locy.sign ^ operation)
| ^~
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3\
-c misc.c
./sysinfo.sh
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3\
-c nbench0.c
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3\
-c nbench1.c
nbench1.c: In function 'DoNNET':
nbench1.c:3149:7: warning: variable 'errorcontext' set but not used [-Wunused-but-set-variable]
3149 | char *errorcontext;
| ^~~~~~~~~~~~
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3\
-c sysspec.c
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3\
-c hardware.c
riscv64-unknown-linux-gnu-gcc -DLINUX -s -static -Wall -O3 \
emfloat.o misc.o nbench0.o nbench1.o sysspec.o hardware.o\
-o nbench -lm
Then I run the below command.
$ spike pk nbench
But it didn't work.
Actually I succeed last time. I rebuilt riscv-tools and riscv-gnu-toolchain, and it occurred errors this time. I built in the same way, so I didn't know which step was wrong.
I will appreciate if you can give some advice about that. Thank you so much!
I compiled nbench using riscv64-unknown-linux-gnu-gcc.
Then I run the below command.
$ spike pk nbench
But it didn't work.Actually I succeed last time. I rebuilt riscv-tools and riscv-gnu-toolchain, and it occurred errors this time. I built in the same way, so I didn't know which step was wrong. I will appreciate if you can give some advice about that. Thank you so much!