Package Details: unixbench 6.0.0-2

Git Clone URL: https://aur.archlinux.org/unixbench.git (read-only, click to copy)
Package Base: unixbench
Description: UnixBench is a simple benchmark whose purpose is to provide a basic indicator of the performance of a Unix-like system.
Upstream URL: https://github.com/kdlucas/byte-unixbench
Keywords: benchmark system tool unix
Licenses: GPL
Submitter: moonman
Maintainer: gilcu3
Last Packager: gilcu3
Votes: 33
Popularity: 0.006334
First Submitted: 2015-08-15 07:28 (UTC)
Last Updated: 2025-05-28 13:09 (UTC)

Dependencies (1)

Required by (0)

Sources (3)

Latest Comments

1 2 Next › Last »

m040601 commented on 2025-05-28 08:18 (UTC) (edited on 2025-05-28 08:19 (UTC) by m040601)

Thanks for maintaining the PKGBUILD.

pacman -Ql unixbench

unixbench /usr/bin/ubench
.....
unixbench /usr/lib/unixbench/....

tar tf unixbench-6.0.0.tar.gz

.....
byte-unixbench-6.0.0/LICENSE.txt
byte-unixbench-6.0.0/README.md
.....
 byte-unixbench-6.0.0/UnixBench/README
 byte-unixbench-6.0.0/UnixBench/USAGE
.....

Please add those files to,

/usr/share/doc/unixbench/README.md
/usr/share/doc/unixbench/README
/usr/share/doc/unixbench/USAGE
/usr/share/licenses/unixbench/LICENSE.txt

NOTE !!! The "README.md" and the "README" are different files. They serve different purposes.

Jian commented on 2025-05-27 20:32 (UTC) (edited on 2025-05-27 20:44 (UTC) by Jian)

This package can't be compiled with GCC 15. Compiling will result in the following major error.

src/timeit.c:37:25: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
   37 |         signal(SIGALRM, func);
      |                         ^~~~
      |                         |
      |                         void (*)(void)
In file included from src/timeit.c:29:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~

This issue stems from the fact that the GCC default C standard has changed to C23 from C17. It can be fixed by appending -std=gnu17 to the compiler flags. (see: https://gcc.gnu.org/gcc-15/porting_to.html#c23)

diff --git a/PKGBUILD b/PKGBUILD
index 9cb8b5f..7afe412 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,6 +25,7 @@ prepare() {
 }

 build() {
+   CFLAGS="${CFLAGS} -std=gnu17"
    cd "${srcdir}/byte-unixbench-${_gitcommit}/UnixBench"
    make
 }

mcardillo55 commented on 2024-06-13 17:14 (UTC)

@gilcu3 that fixed it. Thanks!

gilcu3 commented on 2024-06-12 12:19 (UTC)

@mcardillo55 unfortunately I kept the previous file name after updating to a recent commit. Therefore, AUR helpers do not download the file and fail. Erase the cache and it should work.

mcardillo55 commented on 2024-06-11 00:38 (UTC)

Getting checksum error for unixbench-5.1.3.tar.gz after the latest patch.

moonman commented on 2023-02-09 17:34 (UTC)

@hykilp

Why delete -march=native ? does it not build with Risc-V in this case? The test results will be skewed a little.

hykilp commented on 2023-02-09 16:18 (UTC) (edited on 2023-02-09 16:19 (UTC) by hykilp)

Just compiled successfully on the riscv64 platform. Please add the following patches to PKGBUILD:

> diff -ruN --color PKGBUILD.bak PKGBUILD  
--- PKGBUILD.bak    2023-02-09 11:18:02.000000000 -0500
+++ PKGBUILD    2023-02-09 11:14:52.295359827 -0500
@@ -5,7 +5,7 @@
 pkgver=5.1.3
 pkgrel=4
 pkgdesc='UnixBench is a simple benchmark whose purpose is to provide a  basic indicator of the performance of a Unix-like system.'
-arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
+arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'riscv64')
 license=('GPL')
 url="https://github.com/kdlucas/byte-unixbench"
 depends=('perl')
@@ -33,6 +33,8 @@
    patch -Np2 -i ${srcdir}/make_maxcopies_unbound_for_misc_and_system_suites.patch
    patch -Np1 -i ${srcdir}/unreasonable_multicore-whetstone_results_fix.patch
    patch -Np1 -i ${srcdir}/modern_compiler_optimizations.patch
+
+   sed -i 's/-march=native//g' Makefile
 }

 build() {

moonman commented on 2020-08-16 19:02 (UTC)

@shizcow patch is part of base-devel group, and you have to have it installed for building AUR packages. Nothing is missing here.

shizcow commented on 2020-08-16 17:26 (UTC)

Missing make dependency patch