geerlingguy / raspberry-pi-dramble

DEPRECATED - Raspberry Pi Kubernetes cluster that runs HA/HP Drupal 8
http://www.pidramble.com/
MIT License
1.67k stars 260 forks source link

microsd-benchmark iozone compile error #221

Closed jaui closed 2 years ago

jaui commented 2 years ago

running $ sudo ./microsd-benchmarks.sh under the latest Raspberry Pi OS based on bullseye (debian 11) raises an error during compilation of iozone

/usr/bin/ld: libbif.o:(.bss+0x0): multiple definition of `junk'; iozone_linux-arm.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [makefile:221: linux-arm] Error 1

The hint from wesite https://github.com/phoronix-test-suite/test-profiles/issues/139 add a CFLAGS=-fcommon statement to make helped.

$ make CFLAGS=-fcommon linux-arm runs smootly.

Would you please add this fix to make of iozone.

geerlingguy commented 2 years ago

@jaui - I've just been testing this on two different builds of Raspberry Pi OS Bullseye over the past week, and haven't had any trouble building—though that was on the disk-benchmarks.sh script. Maybe the iozone version defined in the microsd script is old and needs updating?

2sls commented 2 years ago

I had same issue - for me, updating the version from 489 to 492 in the microsd-benchmark.sh file fixed everything

geerlingguy commented 2 years ago

Bumped the version in all three files to 492 :)