embench / embench-iot

The main Embench repository
https://www.embench.org/
GNU General Public License v3.0
248 stars 101 forks source link

Unable to run benchmark-speed #158

Open richunorman-1 opened 2 years ago

richunorman-1 commented 2 years ago

I have used the following configuration to run ./build.py

./build_all.py --arch riscv32 --chip generic --board ri5cyverilator --cc riscv64-unknown-elf-gcc --cflags="-c -O2 -ffunction-sections -march=rv64imac_zba_zbb_zbc_zbs_zicsr_zifencei -mabi=lp64" --ldflags="-Wl,-gc-sections" --user-libs="-lm"

and build sucessfully build-2022-03-07-141006.log Then I tried to find benchmark speed using the following.

./benchmark_speed.py --absolute --target-module run_gdbserver_sim --gdb-command riscv32-unknown-elf-gdb --gdbserver-command riscv32-gdbserver --gdbserver-target ri5cy

But I was not able to get the desired output.

Benchmark           Speed
---------           -----
aha-mont64               
crc32                    
cubic                    
edn                      
huffbench                
matmult-int              
md5sum                   
minver                   
nbody                    
nettle-aes               
nettle-sha256            
nsichneu                 
picojpeg                 
primecount               
qrduino                  
sglib-combined           
slre                     
st                       
statemate                
tarfind                  
ud                       
wikisort                 
ERROR: Failed to compute speed benchmarks

This is the obtained log.


Warning: Failed to find return code
Args to subprocess:
riscv32-unknown-elf-gdb -ex 'set confirm off' -ex 'set style enabled off' -ex 'set height 0' -ex 'file aha-mont64' -ex 'target remote | riscv32-gdbserver -c ri5cy --stdin' -ex 'stepi' -ex 'stepi' -ex 'load' -ex 'break start_trigger' -ex 'break stop_trigger' -ex 'break _exit' -ex 'jump *_start' -ex 'monitor cyclecount' -ex 'continue' -ex 'monitor cyclecount' -ex 'continue' -ex 'print $a0' -ex 'detach' -ex 'quit'
GNU gdb (GDB) 12.0.50.20211007-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=riscv32-unknown-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Reading symbols from aha-mont64...
(No debugging symbols found in aha-mont64)
Remote debugging using | riscv32-gdbserver -c ri5cy --stdin
Breakpoint 1 at 0x10458
Breakpoint 2 at 0x1045c
Breakpoint 3 at 0x1070c

/bin/bash: riscv32-gdbserver: command not found
Remote communication error.  Target disconnected.: Connection reset by peer.
The program is not being run.
The program is not being run.
You can't do that when your target is `exec'
The program is not being run.
"monitor" command not supported by this target.
The program is not being run.
"monitor" command not supported by this target.
The program is not being run.
No registers.
The program is not being run.

Warning: Failed to find return code
Args to subprocess:
riscv32-unknown-elf-gdb -ex 'set confirm off' -ex 'set style enabled off' -ex 'set height 0' -ex 'file crc32' -ex 'target remote | riscv32-gdbserver -c ri5cy --stdin' -ex 'stepi' -ex 'stepi' -ex 'load' -ex 'break start_trigger' -ex 'break stop_trigger' -ex 'break _exit' -ex 'jump *_start' -ex 'monitor cyclecount' -ex 'continue' -ex 'monitor cyclecount' -ex 'continue' -ex 'print $a0' -ex 'detach' -ex 'quit'
GNU gdb (GDB) 12.0.50.20211007-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=riscv32-unknown-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Reading symbols from crc32...
(No debugging symbols found in crc32)
Remote debugging using | riscv32-gdbserver -c ri5cy --stdin
Breakpoint 1 at 0x1023e
Breakpoint 2 at 0x10242
Breakpoint 3 at 0x10528

/bin/bash: riscv32-gdbserver: command not found
Remote communication error.  Target disconnected.: Connection reset by peer.
The program is not being run.
The program is not being run.
You can't do that when your target is `exec'
The program is not being run.
"monitor" command not supported by this target.
The program is not being run.
"monitor" command not supported by this target.
The program is not being run.
No registers.
The program is not being run.
......

speed-2022-03-07-141200.log

hirooih commented 2 years ago

/bin/bash: riscv32-gdbserver: command not found

This means you have to install riscv32-gdbserver.

I tried to build riscv32-gdbserver, but it failed. I open an issue. I hope someone will give us a clue.