[Slackbuilds-users] lbench
Willy Sudiarto Raharjo
willysr at slackbuilds.org
Thu Feb 17 05:25:34 UTC 2022
> The lbench benchmark program is one SlackBuild that doesn't compile for
> me on Slackware 15 or 15+current from SBo-git. Here's what it says
>
> lbench-3.7/Makefile
> g++ -O2 -fPIC -Wall -g -rdynamic -O0 -Wno-format-truncation -c
> `pkg-config --cflags gtk+-3.0` -o lbench.o lbench-3.7.cc
> lbench-3.7.cc: In function ‘void* matrix_thread(void*)’:
> lbench-3.7.cc:1424:23: warning: empty parentheses were disambiguated
> as a function declaration [-Wvexing-parse]
> 1424 | int matrix_function();
> | ^~
> lbench-3.7.cc:1424:23: note: remove parentheses to
> default-initialize a variable
> 1424 | int matrix_function();
> | ^~
> | --
> lbench-3.7.cc:1424:23: note: or replace parentheses with braces to
> value-initialize a variable
> lbench-3.7.cc: In function ‘void* linpack_thread(void*)’:
> lbench-3.7.cc:2189:27: warning: empty parentheses were disambiguated
> as a function declaration [-Wvexing-parse]
> 2189 | double linpack_function();
> | ^~
> lbench-3.7.cc:2189:27: note: remove parentheses to
> default-initialize a variable
> 2189 | double linpack_function();
> | ^~
> | --
> lbench-3.7.cc:2189:27: note: or replace parentheses with braces to
> value-initialize a variable
> g++ -O2 -fPIC -Wall -g -rdynamic -O0 -Wno-format-truncation -c
> `pkg-config --cflags gtk+-3.0` zfuncs.cc \
> -D PREFIX=\"/usr\" -D DOCDIR=\"/usr/doc/lbench-3.7\"
> zfuncs.cc: In function ‘int zinitapp(const char*, const char*)’:
> zfuncs.cc:5001:9: warning: ‘int ftime(timeb*)’ is deprecated: Use
> gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
> 5001 | ftime(&startime); // app startup time
> | ~~~~~^~~~~~~~~~~
> In file included from zfuncs.h:24,
> from zfuncs.cc:23:
> /usr/include/sys/timeb.h:29:12: note: declared here
> 29 | extern int ftime (struct timeb *__timebuf)
> | ^~~~~
> zfuncs.cc: At global scope:
> zfuncs.cc:10935:6: error: ambiguating new declaration of ‘void
> popup_report_timeout(zdialog*)’
> 10935 | void popup_report_timeout(zdialog *zd)
> | ^~~~~~~~~~~~~~~~~~~~
> zfuncs.cc:10921:8: note: old declaration ‘int
> popup_report_timeout(zdialog*)’
> 10921 | int popup_report_timeout(zdialog *zd);
> | ^~~~~~~~~~~~~~~~~~~~
> make: *** [Makefile:34: zfuncs.o] Error 1
>
> I hope it will be updated but I also hope to see a version that
> works on X/TWM, not only Wayland/GNOME. The lbench author told me GNOME
> might take up 1% or 2% CPU system resources, but for me, that's too
> much. When I run benchmarks I turn off all but certain hardware &
> logging daemons... I guess because I'm more interested in mathematics
> than engineering, that I want an accurate benchmark--to five numerical
> places (as in science and professional engineering) not an approximation
> to 98%.
> Does the maintainer use this listserv, and what do they or anyone
> think about that?
It built fine on 15.0 VM also on my -current desktop
--
Willy Sudiarto Raharjo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220217/0ff3af2b/attachment.asc>
More information about the SlackBuilds-users
mailing list