Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/lmbench: bump version
@ 2026-01-02 16:14 Bernd Kuhls
  2026-01-17  8:55 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Kuhls @ 2026-01-02 16:14 UTC (permalink / raw)
  To: buildroot

Last release dates back to 2007, switch _SITE to active fork:
https://sourceforge.net/p/lmbench/patches/3/#4472

Removed patch 0009 which is included in this bump.

Rebased remaining patches.

Sent some existing patches to new active upstream repo and added
Upstream: tags.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 .checkpackageignore                           |  1 -
 ...bage-pointer-for-lat_rpc-S-localhost.patch |  2 +
 ...build-make-it-possible-to-set-LDLIBS.patch |  5 +-
 ...-Add-signum-param-to-signal-handlers.patch |  3 +-
 ...7-scripts-build-int-return-type-main.patch | 97 +++++++------------
 .../0008-Fixup-function-declarations.patch    |  8 +-
 .../0009-src-bench.h-include-string.h.patch   | 36 -------
 .../0009-src-lat_sig.c-fix-build.patch        | 49 ++++++++++
 .../0010-src-memsize.c-fix-build.patch        | 34 +++++++
 .../0011-src-lat_unix.c-fix-build.patch       | 34 +++++++
 .../0012-src-lat_usleep.c-fix-build.patch     | 34 +++++++
 package/lmbench/Config.in                     |  2 +-
 package/lmbench/lmbench.hash                  |  2 +-
 package/lmbench/lmbench.mk                    |  5 +-
 14 files changed, 202 insertions(+), 110 deletions(-)
 delete mode 100644 package/lmbench/0009-src-bench.h-include-string.h.patch
 create mode 100644 package/lmbench/0009-src-lat_sig.c-fix-build.patch
 create mode 100644 package/lmbench/0010-src-memsize.c-fix-build.patch
 create mode 100644 package/lmbench/0011-src-lat_unix.c-fix-build.patch
 create mode 100644 package/lmbench/0012-src-lat_usleep.c-fix-build.patch

diff --git a/.checkpackageignore b/.checkpackageignore
index 6a6f599311..e5994e52a1 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -614,7 +614,6 @@ package/lm-sensors/0002-no-host-ldconfig.patch lib_patch.Upstream
 package/lmbench/0001-scripts-build-use-bin-bash-as-shell.patch lib_patch.Upstream
 package/lmbench/0002-src-Makefile-add-lmbench-to-list-of-executables.patch lib_patch.Upstream
 package/lmbench/0003-TOO_LONG-100-usec-to-prevent-memsize-from-timingout-.patch lib_patch.Upstream
-package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch lib_patch.Upstream
 package/localedef/0002-relax-dependency-on-GCC-to-4.8-and-binutils-to-2.24.patch lib_patch.Upstream
 package/lockdev/0001-Makefile-install-static-library-and-headers-separate.patch lib_patch.Upstream
 package/lockfile-progs/0001-sus3v-legacy.patch lib_patch.Sob lib_patch.Upstream
diff --git a/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch b/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch
index 619ec38614..0de9beda7c 100644
--- a/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch
+++ b/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch
@@ -3,6 +3,8 @@ From: Vineet Gupta <vgupta@synopsys.com>
 Date: Fri, 8 May 2015 11:35:58 +0530
 Subject: [PATCH] Fix garbage pointer for lat_rpc -S localhost
 
+Upstream: https://github.com/intel/lmbench/pull/45
+
 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
 ---
  src/lat_rpc.c | 1 +
diff --git a/package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch b/package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch
index 6d5599763e..5e758f2ec2 100644
--- a/package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch
+++ b/package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch
@@ -6,7 +6,8 @@ Subject: [PATCH] scripts/build: make it possible to set LDLIBS
 LDLIBS is currently unconditionnally set to '-lm', but doesn't allow
 the user to provide additional libraries to link with.
 
-Upstream: dead, last release in 2006
+Upstream: https://github.com/intel/lmbench/pull/44
+
 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
 ---
  scripts/build | 2 +-
@@ -20,7 +21,7 @@ index 60b755c..4820d80 100755
  
  trap 'rm -f ${BASE}$$.s ${BASE}$$.c ${BASE}$$.o ${BASE}$$; exit 1' 1 2 15
  
--LDLIBS=-lm
+-LDLIBS="-lm"
 +LDLIBS="${LDLIBS} -lm"
  
  # check for HP-UX's ANSI compiler
diff --git a/package/lmbench/0006-Add-signum-param-to-signal-handlers.patch b/package/lmbench/0006-Add-signum-param-to-signal-handlers.patch
index 261a2bf8f9..55b2b7c581 100644
--- a/package/lmbench/0006-Add-signum-param-to-signal-handlers.patch
+++ b/package/lmbench/0006-Add-signum-param-to-signal-handlers.patch
@@ -6,7 +6,8 @@ Subject: [PATCH] Add signum param to signal handlers
 A signal handler is required to have a signum parameter that is an
 integer.
 
-Upstream: dead
+Upstream: https://github.com/intel/lmbench/pull/43
+
 Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
 ---
  src/lat_udp.c |  4 ++--
diff --git a/package/lmbench/0007-scripts-build-int-return-type-main.patch b/package/lmbench/0007-scripts-build-int-return-type-main.patch
index 17a4517f72..23e3c44435 100644
--- a/package/lmbench/0007-scripts-build-int-return-type-main.patch
+++ b/package/lmbench/0007-scripts-build-int-return-type-main.patch
@@ -11,23 +11,24 @@ Some compilers (such as the bootlin riscv64-lp64d glibc bleeding-edge
 error at "return type defaults to ‘int’ [-Wimplicit-int]". Add types
 to these main() functions to allow this dependency tracking to work.
 
-Upstream: dead
+Upstream: https://github.com/intel/lmbench/pull/43
+
 Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
 ---
  scripts/build | 42 +++++++++++++++++++++---------------------
  1 file changed, 21 insertions(+), 21 deletions(-)
 
 diff --git a/scripts/build b/scripts/build
-index 4820d80..2c8a50a 100755
+index b2c4274..7f28c82 100755
 --- a/scripts/build
 +++ b/scripts/build
 @@ -51,14 +51,14 @@ fi
- 
+ 	
  # check for bcopy (optionally set the SYS5 flag)
  echo "#include <string.h>" > ${BASE}$$.c
 -echo "main() { char a[256], b[256]; bcopy(a, b, 256); }" >> ${BASE}$$.c
 +echo "int main() { char a[256], b[256]; bcopy(a, b, 256); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	|| CFLAGS="${CFLAGS} -DSYS5"
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
  
@@ -35,168 +36,140 @@ index 4820d80..2c8a50a 100755
  echo "#include <stdlib.h>" > ${BASE}$$.c
 -echo "main() { char* buf = valloc(123); }" >> ${BASE}$$.c
 +echo "int main() { char* buf = valloc(123); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	|| CFLAGS="${CFLAGS} -Dvalloc=malloc"
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -67,7 +67,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <sys/types.h>" >> ${BASE}$$.c
- echo "#include <unistd.h>" >> ${BASE}$$.c
--echo "main() { off64_t off; }" >> ${BASE}$$.c
-+echo "int main() { off64_t off; }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_off64_t"
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -76,7 +76,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <sys/types.h>" >> ${BASE}$$.c
- echo "#include <unistd.h>" >> ${BASE}$$.c
--echo "main() { int fd = 0; off64_t off = 0; off = lseek64(fd, off, SEEK_SET); }" >> ${BASE}$$.c
-+echo "int main() { int fd = 0; off64_t off = 0; off = lseek64(fd, off, SEEK_SET); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_lseek64"
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -88,7 +88,7 @@ echo "#include <sys/resource.h>" >> ${BASE}$$.c
+@@ -70,7 +70,7 @@ echo "#include <sys/resource.h>" >> ${BASE}$$.c
  echo "#ifndef RUSAGE_SELF" >> ${BASE}$$.c
  echo "#define RUSAGE_SELF 0" >> ${BASE}$$.c
  echo "#endif /* RUSAGE_SELF */" >> ${BASE}$$.c
 -echo "main() { struct rusage ru; getrusage(RUSAGE_SELF, &ru); }" >> ${BASE}$$.c
 +echo "int main() { struct rusage ru; getrusage(RUSAGE_SELF, &ru); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DRUSAGE"
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -136,13 +136,13 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
+@@ -118,13 +118,13 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
  
  # check for OSs that have S_IFFIFO instead of S_IFIFO
  echo "#include <sys/stat.h>" > ${BASE}$$.c
 -echo "main() { return (S_IFIFO); }" >> ${BASE}$$.c
 +echo "int main() { return (S_IFIFO); }" >> ${BASE}$$.c
- if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL}; then
+ if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL}; then
  	true;
  else
  	rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
  	echo "#include <sys/stat.h>" > ${BASE}$$.c
 -	echo "main() { return (S_IFFIFO); }" >> ${BASE}$$.c
 +	echo "int main() { return (S_IFFIFO); }" >> ${BASE}$$.c
- 	${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ 	${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  		|| CFLAGS="${CFLAGS} -DS_IFIFO=S_IFFIFO"
  fi
-@@ -151,7 +151,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
+@@ -133,7 +133,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
  # check that we have uint
  echo "#include <stdlib.h>" > ${BASE}$$.c
  echo "#include <sys/types.h>" >> ${BASE}$$.c
 -echo "main() { uint i = 0; return (i); }" >> ${BASE}$$.c
 +echo "int main() { uint i = 0; return (i); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_uint=1";
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -161,7 +161,7 @@ HAVE_uint64=0
+@@ -143,7 +143,7 @@ HAVE_uint64=0
  echo "#include <stdlib.h>" > ${BASE}$$.c
  echo "#include <sys/types.h>" >> ${BASE}$$.c
  echo "#include <rpc/types.h>" >> ${BASE}$$.c
 -echo "main() { uint64 i = 0; return (int)(i); }" >> ${BASE}$$.c
 +echo "int main() { uint64 i = 0; return (int)(i); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_uint64=1" && HAVE_uint64=1;
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -170,7 +170,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
+@@ -152,7 +152,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
  if [ ${HAVE_uint64} = 0 ]; then
      echo "#include <stdlib.h>" > ${BASE}$$.c
      echo "#include <sys/types.h>" >> ${BASE}$$.c
 -    echo "main() { uint64_t i = 0; return (int)(i); }" >> ${BASE}$$.c
 +    echo "int main() { uint64_t i = 0; return (int)(i); }" >> ${BASE}$$.c
-     ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+     ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_uint64_t=1";
      rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -181,7 +181,7 @@ HAVE_int64=0
+@@ -163,7 +163,7 @@ HAVE_int64=0
  echo "#include <stdlib.h>" > ${BASE}$$.c
  echo "#include <sys/types.h>" >> ${BASE}$$.c
  echo "#include <rpc/types.h>" >> ${BASE}$$.c
 -echo "main() { int64 i = 0; return (int)(i); }" >> ${BASE}$$.c
 +echo "int main() { int64 i = 0; return (int)(i); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_int64=1" && HAVE_int64=1;
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -190,7 +190,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
+@@ -172,7 +172,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
  if [ ${HAVE_int64} = 0 ]; then
      echo "#include <stdlib.h>" > ${BASE}$$.c
      echo "#include <sys/types.h>" >> ${BASE}$$.c
 -    echo "main() { int64_t i = 0; return (int)(i); }" >> ${BASE}$$.c
 +    echo "int main() { int64_t i = 0; return (int)(i); }" >> ${BASE}$$.c
-     ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+     ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_int64_t=1";
      rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -209,15 +209,15 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <sys/types.h>" >> ${BASE}$$.c
- echo "#include <sys/socket.h>" >> ${BASE}$$.c
--echo "main() { int s; struct sockaddr dest; socklen_t len; getsockname(s, &dest, &len); }" >> ${BASE}$$.c
--${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
-+echo "int main() { int s; struct sockaddr dest; socklen_t len; getsockname(s, &dest, &len); }" >> ${BASE}$$.c
-+${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_socklen_t"
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- 
+@@ -181,7 +181,7 @@ fi
  # check that we have drand48 and srand48
  HAVE_RANDOM=0
  echo "#include <stdlib.h>" > ${BASE}$$.c
 -echo "main() { srand48(973); return (int)(1.0E9 * drand48()); }" >> ${BASE}$$.c
 +echo "int main() { srand48(973); return (int)(1.0E9 * drand48()); }" >> ${BASE}$$.c
- if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL}; then
+ if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL}; then
  	CFLAGS="${CFLAGS} -DHAVE_DRAND48"
  	HAVE_RANDOM=1
-@@ -226,7 +226,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
+@@ -190,7 +190,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
  
  if [ ${HAVE_RANDOM} -eq 0 ]; then
      echo "#include <stdlib.h>" > ${BASE}$$.c
 -    echo "main() { srand(973); return (10 * rand()) / RAND_MAX; }" >> ${BASE}$$.c
 +    echo "int main() { srand(973); return (10 * rand()) / RAND_MAX; }" >> ${BASE}$$.c
-     if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL}; then
+     if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL}; then
  	CFLAGS="${CFLAGS} -DHAVE_RAND"
  	HAVE_RANDOM=1
-@@ -236,7 +236,7 @@ fi
+@@ -200,7 +200,7 @@ fi
  
  if [ ${HAVE_RANDOM} -eq 0 ]; then
      echo "#include <stdlib.h>" > ${BASE}$$.c
 -    echo "main() { srandom(973); return (10 * random()) / RAND_MAX; }" >> ${BASE}$$.c
 +    echo "int main() { srandom(973); return (10 * random()) / RAND_MAX; }" >> ${BASE}$$.c
-     if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL}; then
+     if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL}; then
  	CFLAGS="${CFLAGS} -DHAVE_RANDOM"
  	HAVE_RANDOM=1
-@@ -247,7 +247,7 @@ fi
+@@ -211,7 +211,7 @@ fi
  # check that we have sysmp
  echo "#include <sys/types.h>" > ${BASE}$$.c
  echo "#include <sys/sysmp.h>" >> ${BASE}$$.c
 -echo "main() { return (int)sysmp(MP_NPROCS); }" >> ${BASE}$$.c
 +echo "int main() { return (int)sysmp(MP_NPROCS); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_SYSMP=1";
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -257,7 +257,7 @@ echo "#include <stdlib.h>" > ${BASE}$$.c
+@@ -221,7 +221,7 @@ echo "#include <stdlib.h>" > ${BASE}$$.c
  echo "#include <unistd.h>" >> ${BASE}$$.c
  echo "#include <sys/types.h>" >> ${BASE}$$.c
  echo "#include <sys/processor.h>" >> ${BASE}$$.c
 -echo "main() { return bindprocessor(BINDPROCESS, getpid(), 0); }" >> ${BASE}$$.c
 +echo "int main() { return bindprocessor(BINDPROCESS, getpid(), 0); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_BINDPROCESSOR=1";
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -267,7 +267,7 @@ echo "#include <stdlib.h>" > ${BASE}$$.c
+@@ -231,7 +231,7 @@ echo "#include <stdlib.h>" > ${BASE}$$.c
  echo "#include <sys/types.h>" >> ${BASE}$$.c
  echo "#include <sys/processor.h>" >> ${BASE}$$.c
  echo "#include <sys/procset.h>" >> ${BASE}$$.c
 -echo "main() { return processor(P_PID, P_MYPID, 0, NULL); }" >> ${BASE}$$.c
 +echo "int main() { return processor(P_PID, P_MYPID, 0, NULL); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_BINDPROCESSOR=1";
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -276,7 +276,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
+@@ -240,7 +240,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
  echo "#include <stdlib.h>" > ${BASE}$$.c
  echo "#include <unistd.h>" >> ${BASE}$$.c
  echo "#include <sched.h>" >> ${BASE}$$.c
 -echo "main() { unsigned long mask = 1; return sched_setaffinity(0, sizeof(unsigned long), &mask); }" >> ${BASE}$$.c
 +echo "int main() { unsigned long mask = 1; return sched_setaffinity(0, sizeof(unsigned long), &mask); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c ${LDLIBS} 1>${NULL} 2>${NULL} \
+ ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
  	&& CFLAGS="${CFLAGS} -DHAVE_SCHED_SETAFFINITY=1";
  rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
 -- 
diff --git a/package/lmbench/0008-Fixup-function-declarations.patch b/package/lmbench/0008-Fixup-function-declarations.patch
index 03c14a3490..ef15cbde7d 100644
--- a/package/lmbench/0008-Fixup-function-declarations.patch
+++ b/package/lmbench/0008-Fixup-function-declarations.patch
@@ -5,7 +5,8 @@ Subject: [PATCH] Fixup function declarations
 
 GCC-15 requires function declarations to be properly typed.
 
-Upstream: dead
+Upstream: https://github.com/intel/lmbench/pull/43
+
 Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
 ---
  src/bench.h   |  4 ++--
@@ -17,7 +18,7 @@ diff --git a/src/bench.h b/src/bench.h
 index 597d068..b1624c5 100644
 --- a/src/bench.h
 +++ b/src/bench.h
-@@ -345,7 +345,7 @@ extern int sched_pin(int cpu);
+@@ -325,8 +325,8 @@ extern int handle_scheduler(int childno, int benchproc, int nbenchprocs);
  #define XACT_VERS ((u_long)1)
  #define RPC_XACT ((u_long)1)
  #define RPC_EXIT ((u_long)2)
@@ -26,7 +27,8 @@ index 597d068..b1624c5 100644
 +extern char *rpc_xact_1(char *msg, register SVCXPRT *transp);
 +extern char *client_rpc_xact_1(char *argp, CLIENT *clnt);
  
- #endif /* _BENCH_H */
+ void lmbench_usage(int argc, char *argv[], char* usage);
+ 
 diff --git a/src/lat_rpc.c b/src/lat_rpc.c
 index ff4380f..dcc24df 100644
 --- a/src/lat_rpc.c
diff --git a/package/lmbench/0009-src-bench.h-include-string.h.patch b/package/lmbench/0009-src-bench.h-include-string.h.patch
deleted file mode 100644
index 0c82a58b59..0000000000
--- a/package/lmbench/0009-src-bench.h-include-string.h.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 30a95099f4711d7c5a59526a84e2c73701af3c3c Mon Sep 17 00:00:00 2001
-From: Bernd Kuhls <bernd@kuhls.net>
-Date: Tue, 25 Nov 2025 22:57:21 +0100
-Subject: [PATCH] src/bench.h: include string.h
-
-Fixes build error with newer gcc, detected by buildroot autobuilders:
-https://autobuild.buildroot.net/results/189/189219853fbe1b7daf0aaad29279858c6e60507b//build-end.log
-
-lib_unix.c: In function 'unix_server':
-lib_unix.c:29:9: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
-   29 |         strcpy(s.sun_path, path);
-      |         ^~~~~~
-lib_unix.c:10:1: note: include '<string.h>' or provide a declaration of 'strcpy'
-
-Upstream: https://github.com/intel/lmbench/pull/41
-
-Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
----
- src/bench.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/bench.h b/src/bench.h
-index 3b25a47..f0fd6b7 100644
---- a/src/bench.h
-+++ b/src/bench.h
-@@ -27,6 +27,7 @@ typedef unsigned char bool_t;
- #ifndef WIN32
- #include        <strings.h>
- #endif
-+#include        <string.h>
- #include        <sys/types.h>
- #ifndef WIN32
- #include        <sys/mman.h>
--- 
-2.47.3
-
diff --git a/package/lmbench/0009-src-lat_sig.c-fix-build.patch b/package/lmbench/0009-src-lat_sig.c-fix-build.patch
new file mode 100644
index 0000000000..ce8366e5ce
--- /dev/null
+++ b/package/lmbench/0009-src-lat_sig.c-fix-build.patch
@@ -0,0 +1,49 @@
+From 868256b43ee7ab597319982645ca1e5e00502224 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Fri, 5 Dec 2025 17:59:00 +0100
+Subject: [PATCH] src/lat_sig.c: fix build
+
+lat_sig.c:42:31: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
+   42 |                 sa.sa_handler = handler;
+      |                               ^
+lat_sig.c:23:9: note: 'handler' declared here
+   23 | void    handler() { }
+
+lat_sig.c:95:23: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
+   95 |         sa.sa_handler = prot;
+      |                       ^
+lat_sig.c:72:1: note: 'prot' declared here
+   72 | prot() {
+
+Upstream: https://github.com/intel/lmbench/pull/43
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/lat_sig.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/lat_sig.c b/src/lat_sig.c
+index 46aef0e..5913c48 100644
+--- a/src/lat_sig.c
++++ b/src/lat_sig.c
+@@ -20,7 +20,7 @@ char	*id = "$Id$\n";
+ 
+ uint64	caught, n;
+ double	adj;
+-void	handler() { }
++void	handler(int) { }
+ jmp_buf	prot_env;
+ 
+ void
+@@ -69,7 +69,7 @@ struct _state {
+ };
+ 
+ void
+-prot() {
++prot(int) {
+ 	if (++caught == n) {
+ 		caught = 0;
+ 		n = benchmp_interval(benchmp_getstate());
+-- 
+2.47.3
+
diff --git a/package/lmbench/0010-src-memsize.c-fix-build.patch b/package/lmbench/0010-src-memsize.c-fix-build.patch
new file mode 100644
index 0000000000..3a5cb8d45c
--- /dev/null
+++ b/package/lmbench/0010-src-memsize.c-fix-build.patch
@@ -0,0 +1,34 @@
+From 7dad44effa3e3456bede6c5c2325bfdf4dec94d3 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Fri, 5 Dec 2025 18:01:15 +0100
+Subject: [PATCH] src/memsize.c: fix build
+
+memsize.c:167:23: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
+  167 |         sa.sa_handler = gotalarm;
+      |                       ^
+memsize.c:154:1: note: 'gotalarm' declared here
+  154 | gotalarm()
+
+Upstream: https://github.com/intel/lmbench/pull/43
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/memsize.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/memsize.c b/src/memsize.c
+index e1d05be..902132a 100644
+--- a/src/memsize.c
++++ b/src/memsize.c
+@@ -151,7 +151,7 @@ test_malloc(size_t size)
+ }
+ 
+ void
+-gotalarm()
++gotalarm(int)
+ {
+ 	alarm_triggered = 1;
+ }
+-- 
+2.47.3
+
diff --git a/package/lmbench/0011-src-lat_unix.c-fix-build.patch b/package/lmbench/0011-src-lat_unix.c-fix-build.patch
new file mode 100644
index 0000000000..ff4c716386
--- /dev/null
+++ b/package/lmbench/0011-src-lat_unix.c-fix-build.patch
@@ -0,0 +1,34 @@
+From 88bb985d400ccaddf1a61fba1aa0602c3506a047 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Fri, 5 Dec 2025 18:02:10 +0100
+Subject: [PATCH] src/lat_unix.c: fix build
+
+lat_unix.c:85:17: error: too many arguments to function 'exit'; expected 0, have 1
+   85 |                 exit(1);
+      |                 ^~~~ ~
+lat_unix.c:74:17: note: declared here
+   74 |         void    exit();
+
+Upstream: https://github.com/intel/lmbench/pull/43
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/lat_unix.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/lat_unix.c b/src/lat_unix.c
+index 1e321f8..9a062c1 100644
+--- a/src/lat_unix.c
++++ b/src/lat_unix.c
+@@ -71,7 +71,7 @@ void
+ initialize(iter_t iterations, void* cookie)
+ {
+ 	struct _state* pState = (struct _state*)cookie;
+-	void	exit();
++	void	exit(int);
+ 
+ 	if (iterations) return;
+ 
+-- 
+2.47.3
+
diff --git a/package/lmbench/0012-src-lat_usleep.c-fix-build.patch b/package/lmbench/0012-src-lat_usleep.c-fix-build.patch
new file mode 100644
index 0000000000..71b76bac8e
--- /dev/null
+++ b/package/lmbench/0012-src-lat_usleep.c-fix-build.patch
@@ -0,0 +1,34 @@
+From 3a57a2d54631df15d876147cf738d4ea033645a8 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Fri, 5 Dec 2025 18:04:07 +0100
+Subject: [PATCH] src/lat_usleep.c: fix build
+
+lat_usleep.c:125:19: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
+  125 |     sa.sa_handler = interval;
+      |                   ^
+lat_usleep.c:102:1: note: 'interval' declared here
+  102 | interval()
+
+Upstream: https://github.com/intel/lmbench/pull/43
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/lat_usleep.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/lat_usleep.c b/src/lat_usleep.c
+index d18d0c8..842ad06 100755
+--- a/src/lat_usleep.c
++++ b/src/lat_usleep.c
+@@ -99,7 +99,7 @@ bench_pselect(iter_t iterations, void *cookie)
+ #endif /* _POSIX_SELECT */
+ 
+ void
+-interval()
++interval(int)
+ {
+     if (++caught == n) {
+ 	caught = 0;
+-- 
+2.47.3
+
diff --git a/package/lmbench/Config.in b/package/lmbench/Config.in
index 33778e4d97..d6dd52551a 100644
--- a/package/lmbench/Config.in
+++ b/package/lmbench/Config.in
@@ -7,7 +7,7 @@ config BR2_PACKAGE_LMBENCH
 	  LMbench is a suite of simple, portable,
 	  ANSI/C microbenchmarks for UNIX/POSIX.
 
-	  http://sourceforge.net/projects/lmbench/
+	  https://github.com/intel/lmbench
 
 comment "lmbench needs a toolchain w/ threads"
 	depends on BR2_USE_MMU
diff --git a/package/lmbench/lmbench.hash b/package/lmbench/lmbench.hash
index 25c150f4d7..b5487ee5d6 100644
--- a/package/lmbench/lmbench.hash
+++ b/package/lmbench/lmbench.hash
@@ -1,4 +1,4 @@
 # Locally computed:
-sha256  cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551  lmbench-3.0-a9.tgz
+sha256  920ab1fee83d7a33d41e040c067dfec2ed2362a5c32e09e509c7a6501c33b7b4  lmbench-8b3ddfa52ee4a886abe5af4550f404142966eb88.tar.gz
 sha256  91df39d1816bfb17a4dda2d3d2c83b1f6f2d38d53e53e41e8f97ad5ac46a0cad  COPYING
 sha256  3be7a155efa448db90071a95fbf81796f8f90edf9204f0463cfd23402dc90a72  COPYING-2
diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk
index 3d942779ad..633f267d73 100644
--- a/package/lmbench/lmbench.mk
+++ b/package/lmbench/lmbench.mk
@@ -4,9 +4,8 @@
 #
 ################################################################################
 
-LMBENCH_VERSION = 3.0-a9
-LMBENCH_SOURCE = lmbench-$(LMBENCH_VERSION).tgz
-LMBENCH_SITE = http://downloads.sourceforge.net/project/lmbench/development/lmbench-$(LMBENCH_VERSION)
+LMBENCH_VERSION = 8b3ddfa52ee4a886abe5af4550f404142966eb88
+LMBENCH_SITE = $(call github,intel,lmbench,$(LMBENCH_VERSION))
 LMBENCH_LICENSE = lmbench license (based on GPL-2.0)
 LMBENCH_LICENSE_FILES = COPYING COPYING-2
 
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/lmbench: bump version
  2026-01-02 16:14 [Buildroot] [PATCH 1/1] package/lmbench: bump version Bernd Kuhls
@ 2026-01-17  8:55 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-17  8:55 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

Hello,

On Fri, Jan 02, 2026 at 05:14:47PM +0100, Bernd Kuhls wrote:
> Last release dates back to 2007, switch _SITE to active fork:
> https://sourceforge.net/p/lmbench/patches/3/#4472
> 
> Removed patch 0009 which is included in this bump.
> 
> Rebased remaining patches.
> 
> Sent some existing patches to new active upstream repo and added
> Upstream: tags.
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Applied, thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/lmbench: bump version
@ 2026-06-20 13:36 Bernd Kuhls
  0 siblings, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2026-06-20 13:36 UTC (permalink / raw)
  To: buildroot

Removed patches 0005-0012 which are included in this bump.

Added patches 0005-0007 to fix build errors with older toolchains as
detected by the Gitlab pipelines.

Fixes:
https://autobuild.buildroot.net/results/f9b/f9b22be910361f0a9f020831c6e960cbf21289da/

Added build fix for sparc and disable the package for or1k to fix build
errors introduced by this version bump with upstream commit
https://github.com/intel/lmbench/commit/b42a669a4c5a41606440b67c5c434b981801daed

sparc:
/builds/bkuhls/buildroot/br-test-pkg/bootlin-sparc-uclibc/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/14.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
 /tmp/ccuY4OLe.o: in function `pingpong_cas':
 lat_mem_pingpong.c:(.text+0xb4):
 undefined reference to `__atomic_compare_exchange_4'

or1k:
lat_mem_pingpong.c: Assembler messages:
lat_mem_pingpong.c:130: Error: unrecognized instruction `nop'

bw_mem64d.c: Assembler messages:
bw_mem64d.c:154: Error: unrecognized instruction `nop'

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/9225eeaadd868d25e15d0a2eb88a0081d9e3337e

 ...build-make-it-possible-to-set-LDLIBS.patch |  31 ---
 ...src-lat_sig.c-fix-build-with-gcc-9.x.patch |  48 +++++
 ...-Add-signum-param-to-signal-handlers.patch | 131 -------------
 ...-lat_usleep.c-fix-build-with-gcc-9.x.patch |  35 ++++
 ...7-scripts-build-int-return-type-main.patch | 177 ------------------
 ...src-memsize.c-fix-build-with-gcc-9.x.patch |  35 ++++
 .../0008-Fixup-function-declarations.patch    | 117 ------------
 .../0009-src-lat_sig.c-fix-build.patch        |  49 -----
 .../0010-src-memsize.c-fix-build.patch        |  34 ----
 .../0011-src-lat_unix.c-fix-build.patch       |  34 ----
 .../0012-src-lat_usleep.c-fix-build.patch     |  34 ----
 package/lmbench/Config.in                     |   2 +
 package/lmbench/lmbench.hash                  |   2 +-
 package/lmbench/lmbench.mk                    |   7 +-
 14 files changed, 127 insertions(+), 609 deletions(-)
 delete mode 100644 package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch
 create mode 100644 package/lmbench/0005-src-lat_sig.c-fix-build-with-gcc-9.x.patch
 delete mode 100644 package/lmbench/0006-Add-signum-param-to-signal-handlers.patch
 create mode 100644 package/lmbench/0006-src-lat_usleep.c-fix-build-with-gcc-9.x.patch
 delete mode 100644 package/lmbench/0007-scripts-build-int-return-type-main.patch
 create mode 100644 package/lmbench/0007-src-memsize.c-fix-build-with-gcc-9.x.patch
 delete mode 100644 package/lmbench/0008-Fixup-function-declarations.patch
 delete mode 100644 package/lmbench/0009-src-lat_sig.c-fix-build.patch
 delete mode 100644 package/lmbench/0010-src-memsize.c-fix-build.patch
 delete mode 100644 package/lmbench/0011-src-lat_unix.c-fix-build.patch
 delete mode 100644 package/lmbench/0012-src-lat_usleep.c-fix-build.patch

diff --git a/package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch b/package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch
deleted file mode 100644
index 5e758f2ec2..0000000000
--- a/package/lmbench/0005-scripts-build-make-it-possible-to-set-LDLIBS.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 2c7ff6989bc6161d8a2cc823d3aa7c9cb1deca80 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-Date: Wed, 4 Dec 2024 22:59:31 +0100
-Subject: [PATCH] scripts/build: make it possible to set LDLIBS
-
-LDLIBS is currently unconditionnally set to '-lm', but doesn't allow
-the user to provide additional libraries to link with.
-
-Upstream: https://github.com/intel/lmbench/pull/44
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
----
- scripts/build | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/scripts/build b/scripts/build
-index 60b755c..4820d80 100755
---- a/scripts/build
-+++ b/scripts/build
-@@ -18,7 +18,7 @@ done
- 
- trap 'rm -f ${BASE}$$.s ${BASE}$$.c ${BASE}$$.o ${BASE}$$; exit 1' 1 2 15
- 
--LDLIBS="-lm"
-+LDLIBS="${LDLIBS} -lm"
- 
- # check for HP-UX's ANSI compiler
- echo "main(int ac, char *av[]) { int i; }" > ${BASE}$$.c
--- 
-2.47.0
-
diff --git a/package/lmbench/0005-src-lat_sig.c-fix-build-with-gcc-9.x.patch b/package/lmbench/0005-src-lat_sig.c-fix-build-with-gcc-9.x.patch
new file mode 100644
index 0000000000..087d9e8ae7
--- /dev/null
+++ b/package/lmbench/0005-src-lat_sig.c-fix-build-with-gcc-9.x.patch
@@ -0,0 +1,48 @@
+From d4ba47cef388acb3a91eb39de4d9329a3810f140 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sat, 20 Jun 2026 14:35:32 +0200
+Subject: [PATCH] src/lat_sig.c: fix build with gcc 9.x
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+lat_sig.c: In function ‘handler’:
+lat_sig.c:23:1: error: parameter name omitted
+ void handler(int) { }
+
+lat_sig.c: In function ‘prot’:
+lat_sig.c:72:1: error: parameter name omitted
+ prot(int) {
+
+Upstream: https://github.com/intel/lmbench/pull/60
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/lat_sig.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/lat_sig.c b/src/lat_sig.c
+index 5913c48..96d3f20 100644
+--- a/src/lat_sig.c
++++ b/src/lat_sig.c
+@@ -20,7 +20,7 @@ char	*id = "$Id$\n";
+ 
+ uint64	caught, n;
+ double	adj;
+-void	handler(int) { }
++void	handler(__attribute__((unused)) int unused) { }
+ jmp_buf	prot_env;
+ 
+ void
+@@ -69,7 +69,7 @@ struct _state {
+ };
+ 
+ void
+-prot(int) {
++prot(__attribute__((unused)) int unused) {
+ 	if (++caught == n) {
+ 		caught = 0;
+ 		n = benchmp_interval(benchmp_getstate());
+-- 
+2.47.3
+
diff --git a/package/lmbench/0006-Add-signum-param-to-signal-handlers.patch b/package/lmbench/0006-Add-signum-param-to-signal-handlers.patch
deleted file mode 100644
index 55b2b7c581..0000000000
--- a/package/lmbench/0006-Add-signum-param-to-signal-handlers.patch
+++ /dev/null
@@ -1,131 +0,0 @@
-From ed4f31bb09bc6355b2b642a89a1f1017de46f26e Mon Sep 17 00:00:00 2001
-From: Charlie Jenkins <charlie@rivosinc.com>
-Date: Fri, 4 Apr 2025 15:35:08 -0700
-Subject: [PATCH] Add signum param to signal handlers
-
-A signal handler is required to have a signum parameter that is an
-integer.
-
-Upstream: https://github.com/intel/lmbench/pull/43
-
-Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
----
- src/lat_udp.c |  4 ++--
- src/lmdd.c    | 14 +++++++-------
- src/lmhttp.c  |  4 ++--
- 3 files changed, 11 insertions(+), 11 deletions(-)
-
-diff --git a/src/lat_udp.c b/src/lat_udp.c
-index cdd2e9b..4b4441b 100644
---- a/src/lat_udp.c
-+++ b/src/lat_udp.c
-@@ -19,7 +19,7 @@ char	*id = "$Id$\n";
- 
- void	client_main(int ac, char **av);
- void	server_main();
--void	timeout();
-+void	timeout(int signum);
- void	init(iter_t iterations, void* cookie);
- void	cleanup(iter_t iterations, void* cookie);
- void    doit(iter_t iterations, void* cookie);
-@@ -164,7 +164,7 @@ cleanup(iter_t iterations, void* cookie)
- }
- 
- void
--timeout()
-+timeout(int signum)
- {
- 	fprintf(stderr, "Recv timed out\n");
- 	exit(1);
-diff --git a/src/lmdd.c b/src/lmdd.c
-index dee37b4..529ae21 100644
---- a/src/lmdd.c
-+++ b/src/lmdd.c
-@@ -148,7 +148,7 @@ char   *cmds[] = {
- 
- 
- void error(char *);
--void    done();
-+void    done(int signum);
- #ifdef	DBG
- extern int dbg;
- #endif
-@@ -332,7 +332,7 @@ main(int ac, char **av)
- 		register int moved;
- 
- 		if (gotcnt && count-- <= 0) {
--			done();
-+			done(0);
- 		}
- 
- 		/*
-@@ -445,7 +445,7 @@ main(int ac, char **av)
- 			perror("read");
- 		}
- 		if (moved <= 0) {
--			done();
-+			done(0);
- 		}
- 		if (inpat != -1) {
- 			register int foo, cnt;
-@@ -458,7 +458,7 @@ main(int ac, char **av)
- 					    (uint)(off + foo*sizeof(int)),
- 					    buf[foo]);
- 					if (mismatch != -1 && --misses == 0) {
--						done();
-+						done(0);
- 					}
- 				}
- 			}
-@@ -523,7 +523,7 @@ main(int ac, char **av)
- 			if (moved2 != moved) {
- 				fprintf(stderr, "write: wanted=%d got=%d\n",
- 				    moved, moved2);
--				done();
-+				done(0);
- 			}
- 			if ((Wtmax != -1) || (Wtmin != -1)) {
- 				int mics = stop(&start_tv, &stop_tv);
-@@ -560,7 +560,7 @@ main(int ac, char **av)
- 				perror("write");
- 			}
- 			if (moved2 != moved) {
--				done();
-+				done(0);
- 			}
- 
- 			if (touch) {
-@@ -626,7 +626,7 @@ chkarg(char *arg)
- }
- 
- void 
--done(void)
-+done(int signum)
- {
- 	int	i;
- 	int	step;
-diff --git a/src/lmhttp.c b/src/lmhttp.c
-index 41d9949..9b5d665 100644
---- a/src/lmhttp.c
-+++ b/src/lmhttp.c
-@@ -26,7 +26,7 @@ char	*buf;
- char	*bufs[3];
- int	Dflg, dflg, nflg, lflg, fflg, zflg;
- int	data, logfile;
--void	die();
-+void	die(int signum);
- void	worker();
- char	*http_time(void);
- char	*date(time_t *tt);
-@@ -387,7 +387,7 @@ logit(int sock, char *name, int size)
- 	nbytes += len;
- }
- 
--void die()
-+void die(int signum)
- {
- 	if (nbytes) {
- 		write(logfile, logbuf, nbytes);
--- 
-2.43.0
-
diff --git a/package/lmbench/0006-src-lat_usleep.c-fix-build-with-gcc-9.x.patch b/package/lmbench/0006-src-lat_usleep.c-fix-build-with-gcc-9.x.patch
new file mode 100644
index 0000000000..d62e3c3370
--- /dev/null
+++ b/package/lmbench/0006-src-lat_usleep.c-fix-build-with-gcc-9.x.patch
@@ -0,0 +1,35 @@
+From 5e120b740857d6b58036af1a5530d2d817ee32b9 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sat, 20 Jun 2026 14:36:01 +0200
+Subject: [PATCH] src/lat_usleep.c: fix build with gcc 9.x
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+lat_usleep.c: In function ‘interval’:
+lat_usleep.c:102:1: error: parameter name omitted
+ interval(int)
+
+Upstream: https://github.com/intel/lmbench/pull/60
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/lat_usleep.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/lat_usleep.c b/src/lat_usleep.c
+index 842ad06..0e17a46 100755
+--- a/src/lat_usleep.c
++++ b/src/lat_usleep.c
+@@ -99,7 +99,7 @@ bench_pselect(iter_t iterations, void *cookie)
+ #endif /* _POSIX_SELECT */
+ 
+ void
+-interval(int)
++interval(__attribute__((unused)) int unused)
+ {
+     if (++caught == n) {
+ 	caught = 0;
+-- 
+2.47.3
+
diff --git a/package/lmbench/0007-scripts-build-int-return-type-main.patch b/package/lmbench/0007-scripts-build-int-return-type-main.patch
deleted file mode 100644
index 23e3c44435..0000000000
--- a/package/lmbench/0007-scripts-build-int-return-type-main.patch
+++ /dev/null
@@ -1,177 +0,0 @@
-From 3340c9552cc6e7d77adf39becbc6be52233d80c0 Mon Sep 17 00:00:00 2001
-From: Charlie Jenkins <charlie@rivosinc.com>
-Date: Thu, 10 Apr 2025 13:25:07 -0700
-Subject: [PATCH] scripts/build: int return type main()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Some compilers (such as the bootlin riscv64-lp64d glibc bleeding-edge
-2024.05-1 toolchain) fail to run the dependency checking scripts and
-error at "return type defaults to ‘int’ [-Wimplicit-int]". Add types
-to these main() functions to allow this dependency tracking to work.
-
-Upstream: https://github.com/intel/lmbench/pull/43
-
-Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
----
- scripts/build | 42 +++++++++++++++++++++---------------------
- 1 file changed, 21 insertions(+), 21 deletions(-)
-
-diff --git a/scripts/build b/scripts/build
-index b2c4274..7f28c82 100755
---- a/scripts/build
-+++ b/scripts/build
-@@ -51,14 +51,14 @@ fi
- 	
- # check for bcopy (optionally set the SYS5 flag)
- echo "#include <string.h>" > ${BASE}$$.c
--echo "main() { char a[256], b[256]; bcopy(a, b, 256); }" >> ${BASE}$$.c
-+echo "int main() { char a[256], b[256]; bcopy(a, b, 256); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	|| CFLAGS="${CFLAGS} -DSYS5"
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- 
- # check for valloc
- echo "#include <stdlib.h>" > ${BASE}$$.c
--echo "main() { char* buf = valloc(123); }" >> ${BASE}$$.c
-+echo "int main() { char* buf = valloc(123); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	|| CFLAGS="${CFLAGS} -Dvalloc=malloc"
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -70,7 +70,7 @@ echo "#include <sys/resource.h>" >> ${BASE}$$.c
- echo "#ifndef RUSAGE_SELF" >> ${BASE}$$.c
- echo "#define RUSAGE_SELF 0" >> ${BASE}$$.c
- echo "#endif /* RUSAGE_SELF */" >> ${BASE}$$.c
--echo "main() { struct rusage ru; getrusage(RUSAGE_SELF, &ru); }" >> ${BASE}$$.c
-+echo "int main() { struct rusage ru; getrusage(RUSAGE_SELF, &ru); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DRUSAGE"
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -118,13 +118,13 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- 
- # check for OSs that have S_IFFIFO instead of S_IFIFO
- echo "#include <sys/stat.h>" > ${BASE}$$.c
--echo "main() { return (S_IFIFO); }" >> ${BASE}$$.c
-+echo "int main() { return (S_IFIFO); }" >> ${BASE}$$.c
- if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL}; then
- 	true;
- else
- 	rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- 	echo "#include <sys/stat.h>" > ${BASE}$$.c
--	echo "main() { return (S_IFFIFO); }" >> ${BASE}$$.c
-+	echo "int main() { return (S_IFFIFO); }" >> ${BASE}$$.c
- 	${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 		|| CFLAGS="${CFLAGS} -DS_IFIFO=S_IFFIFO"
- fi
-@@ -133,7 +133,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- # check that we have uint
- echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <sys/types.h>" >> ${BASE}$$.c
--echo "main() { uint i = 0; return (i); }" >> ${BASE}$$.c
-+echo "int main() { uint i = 0; return (i); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_uint=1";
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -143,7 +143,7 @@ HAVE_uint64=0
- echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <sys/types.h>" >> ${BASE}$$.c
- echo "#include <rpc/types.h>" >> ${BASE}$$.c
--echo "main() { uint64 i = 0; return (int)(i); }" >> ${BASE}$$.c
-+echo "int main() { uint64 i = 0; return (int)(i); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_uint64=1" && HAVE_uint64=1;
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -152,7 +152,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- if [ ${HAVE_uint64} = 0 ]; then
-     echo "#include <stdlib.h>" > ${BASE}$$.c
-     echo "#include <sys/types.h>" >> ${BASE}$$.c
--    echo "main() { uint64_t i = 0; return (int)(i); }" >> ${BASE}$$.c
-+    echo "int main() { uint64_t i = 0; return (int)(i); }" >> ${BASE}$$.c
-     ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_uint64_t=1";
-     rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -163,7 +163,7 @@ HAVE_int64=0
- echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <sys/types.h>" >> ${BASE}$$.c
- echo "#include <rpc/types.h>" >> ${BASE}$$.c
--echo "main() { int64 i = 0; return (int)(i); }" >> ${BASE}$$.c
-+echo "int main() { int64 i = 0; return (int)(i); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_int64=1" && HAVE_int64=1;
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -172,7 +172,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- if [ ${HAVE_int64} = 0 ]; then
-     echo "#include <stdlib.h>" > ${BASE}$$.c
-     echo "#include <sys/types.h>" >> ${BASE}$$.c
--    echo "main() { int64_t i = 0; return (int)(i); }" >> ${BASE}$$.c
-+    echo "int main() { int64_t i = 0; return (int)(i); }" >> ${BASE}$$.c
-     ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_int64_t=1";
-     rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -181,7 +181,7 @@ fi
- # check that we have drand48 and srand48
- HAVE_RANDOM=0
- echo "#include <stdlib.h>" > ${BASE}$$.c
--echo "main() { srand48(973); return (int)(1.0E9 * drand48()); }" >> ${BASE}$$.c
-+echo "int main() { srand48(973); return (int)(1.0E9 * drand48()); }" >> ${BASE}$$.c
- if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL}; then
- 	CFLAGS="${CFLAGS} -DHAVE_DRAND48"
- 	HAVE_RANDOM=1
-@@ -190,7 +190,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- 
- if [ ${HAVE_RANDOM} -eq 0 ]; then
-     echo "#include <stdlib.h>" > ${BASE}$$.c
--    echo "main() { srand(973); return (10 * rand()) / RAND_MAX; }" >> ${BASE}$$.c
-+    echo "int main() { srand(973); return (10 * rand()) / RAND_MAX; }" >> ${BASE}$$.c
-     if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL}; then
- 	CFLAGS="${CFLAGS} -DHAVE_RAND"
- 	HAVE_RANDOM=1
-@@ -200,7 +200,7 @@ fi
- 
- if [ ${HAVE_RANDOM} -eq 0 ]; then
-     echo "#include <stdlib.h>" > ${BASE}$$.c
--    echo "main() { srandom(973); return (10 * random()) / RAND_MAX; }" >> ${BASE}$$.c
-+    echo "int main() { srandom(973); return (10 * random()) / RAND_MAX; }" >> ${BASE}$$.c
-     if ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL}; then
- 	CFLAGS="${CFLAGS} -DHAVE_RANDOM"
- 	HAVE_RANDOM=1
-@@ -211,7 +211,7 @@ fi
- # check that we have sysmp
- echo "#include <sys/types.h>" > ${BASE}$$.c
- echo "#include <sys/sysmp.h>" >> ${BASE}$$.c
--echo "main() { return (int)sysmp(MP_NPROCS); }" >> ${BASE}$$.c
-+echo "int main() { return (int)sysmp(MP_NPROCS); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_SYSMP=1";
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -221,7 +221,7 @@ echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <unistd.h>" >> ${BASE}$$.c
- echo "#include <sys/types.h>" >> ${BASE}$$.c
- echo "#include <sys/processor.h>" >> ${BASE}$$.c
--echo "main() { return bindprocessor(BINDPROCESS, getpid(), 0); }" >> ${BASE}$$.c
-+echo "int main() { return bindprocessor(BINDPROCESS, getpid(), 0); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_BINDPROCESSOR=1";
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -231,7 +231,7 @@ echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <sys/types.h>" >> ${BASE}$$.c
- echo "#include <sys/processor.h>" >> ${BASE}$$.c
- echo "#include <sys/procset.h>" >> ${BASE}$$.c
--echo "main() { return processor(P_PID, P_MYPID, 0, NULL); }" >> ${BASE}$$.c
-+echo "int main() { return processor(P_PID, P_MYPID, 0, NULL); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_BINDPROCESSOR=1";
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
-@@ -240,7 +240,7 @@ rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
- echo "#include <stdlib.h>" > ${BASE}$$.c
- echo "#include <unistd.h>" >> ${BASE}$$.c
- echo "#include <sched.h>" >> ${BASE}$$.c
--echo "main() { unsigned long mask = 1; return sched_setaffinity(0, sizeof(unsigned long), &mask); }" >> ${BASE}$$.c
-+echo "int main() { unsigned long mask = 1; return sched_setaffinity(0, sizeof(unsigned long), &mask); }" >> ${BASE}$$.c
- ${CC} ${CFLAGS} -o ${BASE}$$ ${BASE}$$.c 1>${NULL} 2>${NULL} \
- 	&& CFLAGS="${CFLAGS} -DHAVE_SCHED_SETAFFINITY=1";
- rm -f ${BASE}$$ ${BASE}$$.o ${BASE}$$.c
--- 
-2.43.0
-
diff --git a/package/lmbench/0007-src-memsize.c-fix-build-with-gcc-9.x.patch b/package/lmbench/0007-src-memsize.c-fix-build-with-gcc-9.x.patch
new file mode 100644
index 0000000000..996d96f311
--- /dev/null
+++ b/package/lmbench/0007-src-memsize.c-fix-build-with-gcc-9.x.patch
@@ -0,0 +1,35 @@
+From 555185f6321aba2b82fab5a40c20dda45da58fe1 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sat, 20 Jun 2026 14:36:36 +0200
+Subject: [PATCH] src/memsize.c: fix build with gcc 9.x
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+memsize.c: In function ‘gotalarm’:
+memsize.c:154:1: error: parameter name omitted
+ gotalarm(int)
+
+Upstream: https://github.com/intel/lmbench/pull/60
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/memsize.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/memsize.c b/src/memsize.c
+index 902132a..3be8a7a 100644
+--- a/src/memsize.c
++++ b/src/memsize.c
+@@ -151,7 +151,7 @@ test_malloc(size_t size)
+ }
+ 
+ void
+-gotalarm(int)
++gotalarm(__attribute__((unused)) int unused)
+ {
+ 	alarm_triggered = 1;
+ }
+-- 
+2.47.3
+
diff --git a/package/lmbench/0008-Fixup-function-declarations.patch b/package/lmbench/0008-Fixup-function-declarations.patch
deleted file mode 100644
index ef15cbde7d..0000000000
--- a/package/lmbench/0008-Fixup-function-declarations.patch
+++ /dev/null
@@ -1,117 +0,0 @@
-From 6255495abf4ea516aad3b447cc32d1b244229878 Mon Sep 17 00:00:00 2001
-From: Charlie Jenkins <charlie@rivosinc.com>
-Date: Fri, 4 Apr 2025 15:48:07 -0700
-Subject: [PATCH] Fixup function declarations
-
-GCC-15 requires function declarations to be properly typed.
-
-Upstream: https://github.com/intel/lmbench/pull/43
-
-Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
----
- src/bench.h   |  4 ++--
- src/lat_rpc.c | 18 +++++++-----------
- src/lmdd.c    |  4 ++--
- 3 files changed, 11 insertions(+), 15 deletions(-)
-
-diff --git a/src/bench.h b/src/bench.h
-index 597d068..b1624c5 100644
---- a/src/bench.h
-+++ b/src/bench.h
-@@ -325,8 +325,8 @@ extern int handle_scheduler(int childno, int benchproc, int nbenchprocs);
- #define XACT_VERS ((u_long)1)
- #define RPC_XACT ((u_long)1)
- #define RPC_EXIT ((u_long)2)
--extern char *rpc_xact_1();
--extern char *client_rpc_xact_1();
-+extern char *rpc_xact_1(char *msg, register SVCXPRT *transp);
-+extern char *client_rpc_xact_1(char *argp, CLIENT *clnt);
- 
- void lmbench_usage(int argc, char *argv[], char* usage);
- 
-diff --git a/src/lat_rpc.c b/src/lat_rpc.c
-index ff4380f..dcc24df 100644
---- a/src/lat_rpc.c
-+++ b/src/lat_rpc.c
-@@ -187,16 +187,14 @@ client_rpc_xact_1(char *argp, CLIENT *clnt)
-  */
- /* ARGSUSED */
- char	*
--rpc_xact_1(msg, transp)
--     	char	*msg;
--	register SVCXPRT *transp;
-+rpc_xact_1(char *msg, register SVCXPRT *transp)
- {
- 	static char r = 123;
- 
- 	return &r;
- }
- 
--static void xact_prog_1();
-+static void xact_prog_1(struct svc_req *rqstp, register SVCXPRT *transp);
- 
- void
- server_main()
-@@ -234,16 +232,14 @@ server_main()
- }
- 
- static void
--xact_prog_1(rqstp, transp)
--	struct svc_req *rqstp;
--	register SVCXPRT *transp;
-+xact_prog_1(struct svc_req *rqstp, register SVCXPRT *transp)
- {
- 	union {
- 		char rpc_xact_1_arg;
- 	} argument;
- 	char *result;
--	bool_t (*xdr_argument)(), (*xdr_result)();
--	char *(*local)();
-+	bool_t (*xdr_argument)(XDR *, char *), (*xdr_result)(XDR *, char *);
-+	char *(*local)(char *, struct svc_req *);
- 
- 	switch (rqstp->rq_proc) {
- 	case NULLPROC:
-@@ -253,7 +249,7 @@ xact_prog_1(rqstp, transp)
- 	case RPC_XACT:
- 		xdr_argument = xdr_char;
- 		xdr_result = xdr_char;
--		local = (char *(*)()) rpc_xact_1;
-+		local = (char *(*)(char *, struct svc_req *)) rpc_xact_1;
- 		break;
- 
- 	case RPC_EXIT:
-@@ -270,7 +266,7 @@ xact_prog_1(rqstp, transp)
- 		svcerr_decode(transp);
- 		return;
- 	}
--	result = (*local)(&argument, rqstp);
-+	result = (*local)((char *)&argument, rqstp);
- 	if (result != NULL && !svc_sendreply(transp, (xdrproc_t)xdr_result, result)) {
- 		svcerr_systemerr(transp);
- 	}
-diff --git a/src/lmdd.c b/src/lmdd.c
-index 529ae21..197ac46 100644
---- a/src/lmdd.c
-+++ b/src/lmdd.c
-@@ -76,7 +76,7 @@ int	norepeats = -1;
- 	bds_msg	*m1, *m2;
- #endif
- 
--uint64	getarg();
-+uint64	getarg(char *s, int ac, char **av);
- int	been_there(uint64 off);
- int	getfile(char *s, int ac, char **av);
- 
-@@ -162,7 +162,7 @@ main(int ac, char **av)
- 	int     Fork, misses, mismatch, outpat, inpat, in, timeopen, gotcnt;
- 	int	slp;
- 	uint64	skip, size, count;
--	void	chkarg();
-+	void	chkarg(char *arg);
- 	int     i;
- 	uint64	off = 0;
- 	int	touch;
--- 
-2.43.0
-
diff --git a/package/lmbench/0009-src-lat_sig.c-fix-build.patch b/package/lmbench/0009-src-lat_sig.c-fix-build.patch
deleted file mode 100644
index ce8366e5ce..0000000000
--- a/package/lmbench/0009-src-lat_sig.c-fix-build.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 868256b43ee7ab597319982645ca1e5e00502224 Mon Sep 17 00:00:00 2001
-From: Bernd Kuhls <bernd@kuhls.net>
-Date: Fri, 5 Dec 2025 17:59:00 +0100
-Subject: [PATCH] src/lat_sig.c: fix build
-
-lat_sig.c:42:31: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
-   42 |                 sa.sa_handler = handler;
-      |                               ^
-lat_sig.c:23:9: note: 'handler' declared here
-   23 | void    handler() { }
-
-lat_sig.c:95:23: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
-   95 |         sa.sa_handler = prot;
-      |                       ^
-lat_sig.c:72:1: note: 'prot' declared here
-   72 | prot() {
-
-Upstream: https://github.com/intel/lmbench/pull/43
-
-Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
----
- src/lat_sig.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/lat_sig.c b/src/lat_sig.c
-index 46aef0e..5913c48 100644
---- a/src/lat_sig.c
-+++ b/src/lat_sig.c
-@@ -20,7 +20,7 @@ char	*id = "$Id$\n";
- 
- uint64	caught, n;
- double	adj;
--void	handler() { }
-+void	handler(int) { }
- jmp_buf	prot_env;
- 
- void
-@@ -69,7 +69,7 @@ struct _state {
- };
- 
- void
--prot() {
-+prot(int) {
- 	if (++caught == n) {
- 		caught = 0;
- 		n = benchmp_interval(benchmp_getstate());
--- 
-2.47.3
-
diff --git a/package/lmbench/0010-src-memsize.c-fix-build.patch b/package/lmbench/0010-src-memsize.c-fix-build.patch
deleted file mode 100644
index 3a5cb8d45c..0000000000
--- a/package/lmbench/0010-src-memsize.c-fix-build.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 7dad44effa3e3456bede6c5c2325bfdf4dec94d3 Mon Sep 17 00:00:00 2001
-From: Bernd Kuhls <bernd@kuhls.net>
-Date: Fri, 5 Dec 2025 18:01:15 +0100
-Subject: [PATCH] src/memsize.c: fix build
-
-memsize.c:167:23: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
-  167 |         sa.sa_handler = gotalarm;
-      |                       ^
-memsize.c:154:1: note: 'gotalarm' declared here
-  154 | gotalarm()
-
-Upstream: https://github.com/intel/lmbench/pull/43
-
-Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
----
- src/memsize.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/memsize.c b/src/memsize.c
-index e1d05be..902132a 100644
---- a/src/memsize.c
-+++ b/src/memsize.c
-@@ -151,7 +151,7 @@ test_malloc(size_t size)
- }
- 
- void
--gotalarm()
-+gotalarm(int)
- {
- 	alarm_triggered = 1;
- }
--- 
-2.47.3
-
diff --git a/package/lmbench/0011-src-lat_unix.c-fix-build.patch b/package/lmbench/0011-src-lat_unix.c-fix-build.patch
deleted file mode 100644
index ff4c716386..0000000000
--- a/package/lmbench/0011-src-lat_unix.c-fix-build.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 88bb985d400ccaddf1a61fba1aa0602c3506a047 Mon Sep 17 00:00:00 2001
-From: Bernd Kuhls <bernd@kuhls.net>
-Date: Fri, 5 Dec 2025 18:02:10 +0100
-Subject: [PATCH] src/lat_unix.c: fix build
-
-lat_unix.c:85:17: error: too many arguments to function 'exit'; expected 0, have 1
-   85 |                 exit(1);
-      |                 ^~~~ ~
-lat_unix.c:74:17: note: declared here
-   74 |         void    exit();
-
-Upstream: https://github.com/intel/lmbench/pull/43
-
-Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
----
- src/lat_unix.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/lat_unix.c b/src/lat_unix.c
-index 1e321f8..9a062c1 100644
---- a/src/lat_unix.c
-+++ b/src/lat_unix.c
-@@ -71,7 +71,7 @@ void
- initialize(iter_t iterations, void* cookie)
- {
- 	struct _state* pState = (struct _state*)cookie;
--	void	exit();
-+	void	exit(int);
- 
- 	if (iterations) return;
- 
--- 
-2.47.3
-
diff --git a/package/lmbench/0012-src-lat_usleep.c-fix-build.patch b/package/lmbench/0012-src-lat_usleep.c-fix-build.patch
deleted file mode 100644
index 71b76bac8e..0000000000
--- a/package/lmbench/0012-src-lat_usleep.c-fix-build.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 3a57a2d54631df15d876147cf738d4ea033645a8 Mon Sep 17 00:00:00 2001
-From: Bernd Kuhls <bernd@kuhls.net>
-Date: Fri, 5 Dec 2025 18:04:07 +0100
-Subject: [PATCH] src/lat_usleep.c: fix build
-
-lat_usleep.c:125:19: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
-  125 |     sa.sa_handler = interval;
-      |                   ^
-lat_usleep.c:102:1: note: 'interval' declared here
-  102 | interval()
-
-Upstream: https://github.com/intel/lmbench/pull/43
-
-Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
----
- src/lat_usleep.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/lat_usleep.c b/src/lat_usleep.c
-index d18d0c8..842ad06 100755
---- a/src/lat_usleep.c
-+++ b/src/lat_usleep.c
-@@ -99,7 +99,7 @@ bench_pselect(iter_t iterations, void *cookie)
- #endif /* _POSIX_SELECT */
- 
- void
--interval()
-+interval(int)
- {
-     if (++caught == n) {
- 	caught = 0;
--- 
-2.47.3
-
diff --git a/package/lmbench/Config.in b/package/lmbench/Config.in
index d6dd52551a..b167d3a9ef 100644
--- a/package/lmbench/Config.in
+++ b/package/lmbench/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_LMBENCH
 	bool "lmbench"
 	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	depends on BR2_USE_MMU # fork()
+	depends on !BR2_or1k # nop
 	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	help
 	  LMbench is a suite of simple, portable,
@@ -11,4 +12,5 @@ config BR2_PACKAGE_LMBENCH
 
 comment "lmbench needs a toolchain w/ threads"
 	depends on BR2_USE_MMU
+	depends on !BR2_or1k
 	depends on !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
diff --git a/package/lmbench/lmbench.hash b/package/lmbench/lmbench.hash
index b5487ee5d6..8cc6338398 100644
--- a/package/lmbench/lmbench.hash
+++ b/package/lmbench/lmbench.hash
@@ -1,4 +1,4 @@
 # Locally computed:
-sha256  920ab1fee83d7a33d41e040c067dfec2ed2362a5c32e09e509c7a6501c33b7b4  lmbench-8b3ddfa52ee4a886abe5af4550f404142966eb88.tar.gz
+sha256  7769d4758dcbdfb54b443b2e44d65bd0b6c47d49efa87380d83fd12d5ad36f76  lmbench-a33716428dc2e717ce3e7dfce767302583eb8fdc.tar.gz
 sha256  91df39d1816bfb17a4dda2d3d2c83b1f6f2d38d53e53e41e8f97ad5ac46a0cad  COPYING
 sha256  3be7a155efa448db90071a95fbf81796f8f90edf9204f0463cfd23402dc90a72  COPYING-2
diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk
index 633f267d73..bf5df4c3cb 100644
--- a/package/lmbench/lmbench.mk
+++ b/package/lmbench/lmbench.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LMBENCH_VERSION = 8b3ddfa52ee4a886abe5af4550f404142966eb88
+LMBENCH_VERSION = a33716428dc2e717ce3e7dfce767302583eb8fdc
 LMBENCH_SITE = $(call github,intel,lmbench,$(LMBENCH_VERSION))
 LMBENCH_LICENSE = lmbench license (based on GPL-2.0)
 LMBENCH_LICENSE_FILES = COPYING COPYING-2
@@ -21,6 +21,11 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101915),y)
 LMBENCH_CFLAGS += -O0
 endif
 
+# Uses __atomic_compare_exchange_4
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+LMBENCH_LDLIBS += -latomic
+endif
+
 LMBENCH_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
 
 define LMBENCH_CONFIGURE_CMDS
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-20 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-02 16:14 [Buildroot] [PATCH 1/1] package/lmbench: bump version Bernd Kuhls
2026-01-17  8:55 ` Thomas Petazzoni via buildroot
  -- strict thread matches above, loose matches on Subject: below --
2026-06-20 13:36 Bernd Kuhls

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox