lmbench icon indicating copy to clipboard operation
lmbench copied to clipboard

doesn't compile

Open dodona2 opened this issue 7 years ago • 2 comments

make {result} causes: l at_fs_open_close.c:63:9: warning: implicit declaration of function ‘get_quota_n’ [-Wimplicit-function-declaration] ret = get_quota_n(state->filename, ^~~~~~~~~~~ lat_fs_open_close.c: In function ‘main’: lat_fs_open_close.c:177:2: warning: implicit declaration of function ‘mili_op’ [-Wimplicit-function-declaration] mili_op("res ", get_n(), parallel); ^~~~~~~ /tmp/cceBaAKC.o: In function initialize': lat_fs_open_close.c:(.text+0x12c): undefined reference to benchmp_childid_gid' lat_fs_open_close.c:(.text+0x13d): undefined reference to `benchmp_childid_uid' collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:339: ../bin/x86_64-linux-gnu/lat_fs_open_close] Error 1 gmake[2]: Leaving directory '/usr/local/src/tools/lmbench/trunk/src' make[1]: *** [Makefile:121: lmbench] Error 2 make[1]: Leaving directory '/usr/local/src/tools/lmbench/trunk/src' make: *** [Makefile:23: results] Error 2

dodona2 avatar Feb 14 '18 18:02 dodona2

+1

hckuo2 avatar Apr 17 '18 03:04 hckuo2

I had the exact problem on a wandboard device.

I don't know what the function tobenchmp_childid_gid does. By the name, it appears it changes the child gid or group id, which i assume refers to linux's userland groups.

But opening each file that fails to compile (in your case lat_fs_open_close), and commenting the undefined functions seems to do the trick. You'll also have to comment the functions for uid, which i assume change the process user id. Those are easy to find as the compilation will simply fail.

It's hard to tell if the results are still correct but i still manage to execute lmbench.

SilverOnemi avatar May 22 '18 22:05 SilverOnemi