ThomasKaiser / sbc-bench

Simple benchmark for single board computers
BSD 3-Clause "New" or "Revised" License
627 stars 78 forks source link

sbc-bench.sh with MODE=extensive: cpuminer build error #50

Closed slowrunner closed 1 year ago

slowrunner commented 1 year ago

On RaspberryPi 4B 2GB, on Ubuntu Server LTS 22.04 (64-bit) spc-bench.sh with MODE=extensive reports:

... (can't build cpuminer) Done.

System:

Linux ROS2HH 5.15.0-1016-raspi #18-Ubuntu SMP PREEMPT Wed Sep 28 12:15:55 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

$ cd /usr/local/src/cpuminer-multi $ sudo ./build.sh

...
crypto/blake2s.c: In function ‘blake2s’:
crypto/blake2s.c:326:9: error: size of array element is not a multiple of its alignment
  326 |         blake2s_state S[1];
      |         ^~~~~~~~~~~~~
make[2]: *** [Makefile:1645: crypto/cpuminer-blake2s.o] Error 1
ThomasKaiser commented 1 year ago

If you're on Debian 11 please try this https://github.com/ThomasKaiser/sbc-bench/issues/43#issuecomment-1161562449

Should've read better. Ubuntu Jammy it is. No idea whether that CC=gcc-10 workaround fixes it but also not paying much attention to cpuminer issues since I consider it more of a load generator /throttling tester than a useful benchmark score: https://github.com/ThomasKaiser/sbc-bench/blob/master/README.md#cpuminer

ThomasKaiser commented 1 year ago

...

slowrunner commented 1 year ago

No problem - I sent the Rock 4 SE back for a refund and managed to snag another Raspberry Pi4B at PiMoroni, so I'm set for a while.

Thanks for the "support" with benchmarking the Rock SE - sbc-bench was exactly what I needed.