I've managed to get lmbench to build with gcc 8.2.1 20180801 by changing the seekto() function in disk.c to use lseek64 rather than llseek.
I am not sure what the correct long term solution would be or if this is even an issue others might encounter or specific to my build environment but perhaps someone more familiar with Linux development than me can take a look a the disk.c source (specifically the seekto() function) and suggest the correct version of lseek to use.
Once lmbench builds the performance tests run ok and pass.
This update has been submitted for testing by labbott.
This update has been pushed to testing.
pbrobinson edited this update.
New build(s):
Removed build(s):
Karma has been reset.
This update has been submitted for testing by pbrobinson.
Default kernel regression test runs and all tests pass however the performance test does not run correctly due to compilation errors.
[shecks@red-dwarf kernel-tests]$ sudo ./runtests.sh -t performance Test suite called with performance /usr/bin/ld: /tmp/ccAtyTfV.o: in function
seekto': disk.c:(.text+0x2f): undefined reference to
llseek' collect2: error: ld returned 1 exit status gmake[2]: [Makefile:321: ../bin/x86_64-linux-gnu/disk] Error 1 make[1]: [Makefile:114: lmbench] Error 2 make: [Makefile:20: build] Error 2 /usr/bin/ld: /tmp/ccwga1DW.o: in functionseekto': disk.c:(.text+0x2f): undefined reference to
llseek' collect2: error: ld returned 1 exit status gmake[2]: [Makefile:321: ../bin/x86_64-linux-gnu/disk] Error 1 make[1]: [Makefile:114: lmbench] Error 2 make: [Makefile:23: results] Error 2 ./performance/lmbench3 PASSTest suite complete PASS
I am still looking into the cause of the issue to see if I can provide better feedback.
I've managed to get lmbench to build with gcc 8.2.1 20180801 by changing the seekto() function in disk.c to use lseek64 rather than llseek.
I am not sure what the correct long term solution would be or if this is even an issue others might encounter or specific to my build environment but perhaps someone more familiar with Linux development than me can take a look a the disk.c source (specifically the seekto() function) and suggest the correct version of lseek to use.
Once lmbench builds the performance tests run ok and pass.
Update: Just discovered that this a known issue with the kernel-test suite and that jforbes is looking into it.
https://pagure.io/kernel-tests/issue/25
This update has been pushed to testing.
Tested on Carbon X1g6, UP², mustang, Pine64, BBone Black, RPi2, RPi3 and RPi3B+ inc WiFi, Rock960, firefly3399, MacBin, OrangePi PC and likely others.
This update has been submitted for batched by labbott.
This update has been submitted for stable by labbott.
works fine for me on i7-5820K. regression tests passed.
This update has been pushed to stable.
Work for me.