How to run run LMbench on mac

I followed these instructions . Download lmbench3.tar.gz from lmbench3 and unzip LMbench to create a tree like this:

lmbench/
    Results/
    doc/
    scripts/
    src/

And go to the directory lmbenchand entermake results see

But the result is incorrect:

 7 warnings generated.
    gcc -O -DRUSAGE -DHAVE_uint=1 -DHAVE_uint64_t=1 -DHAVE_int64_t=1 -DHAVE_DRAND48   -c getopt.c -o ../bin/i686-apple-darwin15.6.0/getopt.o
    gcc -O -DRUSAGE -DHAVE_uint=1 -DHAVE_uint64_t=1 -DHAVE_int64_t=1 -DHAVE_DRAND48   -c lib_sched.c -o ../bin/i686-apple-darwin15.6.0/lib_sched.o
    lib_sched.c:94:3: error: non-void function 'handle_scheduler' should return a
          value [-Wreturn-type]
                    return;
                    ^
    1 error generated.
    make[2]: *** [../bin/i686-apple-darwin15.6.0/lib_sched.o] Error 1 
    make[1]: *** [lmbench] Error 2
    make: *** [build] Error 2

How to solve it?

+4
source share
1 answer

You can change the statement

return;

at

return 0;

on line 94 lib_sched.c

Then this file should compile without this error.

+2
source

Source: https://habr.com/ru/post/1649168/


All Articles