Skip to contentSkip to conversation

package/boinc: fix build error with uClibc-ng

PATCH In review Bernd Kuhls 2 participants 4 messages Sep 6 – Oct 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/boinc: fix build error with uClibc-ng

Fixes:
https://autobuild.buildroot.net/results/f10/f1015559e37d73403c396ee883d9a73fd167b9dd/

---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/6f246f65bc89cd9e146a606c60b3c9ccf19f8ec4

 ...ched.h-to-fix-build-error-with-uClib.patch | 69 +++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 package/boinc/0001-client-include-sched.h-to-fix-build-error-with-uClib.patch
package/boinc/0001-client-include-sched.h-to-fix-build-error-with-uClib.patch new file +69 -0
new file mode 100644
index 0000000000..c4f0c1f87e
@@ -0,0 +1,69 @@
+From f06b730ad648607e1a2ace0c364f6dd4a13fd159 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Sun, 6 Sep 2026 17:49:47 +0200
+Subject: [PATCH] client: include sched.h to fix build error with uClibc-ng
+
+Detected by buildroot autobuilders:
+https://autobuild.buildroot.net/results/f10/f1015559e37d73403c396ee883d9a73fd167b9dd/build-end.log
+
+In file included from /home/autobuild/autobuild/instance-6/output-1/host/i686-buildroot-linux-uclibc/sysroot/usr/include/pthread.h:20,
+                 from thread.h:23,
+                 from client_state.h:37,
+                 from cpu_sched.cpp:76:
+cpu_sched.cpp: In member function 'void PROC_RESOURCES::schedule(RESULT*, ACTIVE_TASK*, bool)':
+cpu_sched.cpp:247:30: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  247 |                 rp->project->sched_priority
+      |                              ^~~~~~~~~~~~~~
+cpu_sched.cpp: In member function 'RESULT* CLIENT_STATE::highest_prio_project_best_result()':
+cpu_sched.cpp:438:25: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  438 |         if (first || p->sched_priority > best_prio) {
+      |                         ^~~~~~~~~~~~~~
+cpu_sched.cpp:441:28: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  441 |             best_prio = p->sched_priority;
+      |                            ^~~~~~~~~~~~~~
+cpu_sched.cpp: In function 'RESULT* first_coproc_result(int)':
+cpu_sched.cpp:474:29: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  474 |         prio = rp->project->sched_priority;
+      |                             ^~~~~~~~~~~~~~
+cpu_sched.cpp: In function 'void project_priority_init(bool)':
+cpu_sched.cpp:684:16: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  684 |             p->sched_priority = 0;
+      |                ^~~~~~~~~~~~~~
+cpu_sched.cpp:690:24: error: 'struct PROJECT' has no member named '__sched_priority'; did you mean 'sched_priority'?
+  690 |                     p->sched_priority, p->resource_share_frac,
+      |                        ^~~~~~~~~~~~~~
+cpu_sched.cpp: In member function 'void PROJECT::compute_sched_priority()':
+cpu_sched.cpp:705:9: error: '__sched_priority' was not declared in this scope; did you mean 'sched_priority'?
+  705 |         sched_priority = -1e3 - rec_frac;
+      |         ^~~~~~~~~~~~~~
+cpu_sched.cpp:708:13: error: '__sched_priority' was not declared in this scope; did you mean 'sched_priority'?
+  708 |             sched_priority = - rec_frac/resource_share_frac;
+      |             ^~~~~~~~~~~~~~
+cpu_sched.cpp:710:13: error: '__sched_priority' was not declared in this scope; did you mean 'sched_priority'?
+  710 |             sched_priority = - rec_frac;
+      |             ^~~~~~~~~~~~~~
+
+Upstream: https://github.com/BOINC/boinc/pull/7282
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ client/cpu_sched.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp
+index f50b1b1785..f093c48e2c 100644
+--- a/client/cpu_sched.cpp
++++ b/client/cpu_sched.cpp
+@@ -56,6 +56,9 @@
+ #include <list>
+ #endif
+ 
++#if HAVE_SCHED_SETSCHEDULER && defined (__linux__)
++#include <sched.h>
++#endif
+ 
+ #include "coproc.h"
+ #include "error_numbers.h"
+-- 
+2.47.3
+
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/boinc: bump version to 8.2.15

https://github.com/BOINC/boinc/wiki/Client-release-notes

Upstream commit
https://github.com/BOINC/boinc/commit/72d6e36abacb0e89d9122a24ff5e44094244d022
which was first released in version 8.2.14 enabled C++17 features.

To fix a build error seen with the Gitlab pipelines with the bootlin- aarch64-glibc-old defconfig we raise the minimum gcc version to 7.

---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/0b2ae2cf0276a921cb4798ada40cf13938467d0a

 package/boinc/Config.in  | 6 +++---
 package/boinc/boinc.hash | 2 +-
 package/boinc/boinc.mk   | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
package/boinc/Config.in +3 -3
index 72d5440131..ef336a79fe 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_BOINC
 	bool "boinc"
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_STATIC_LIBS # dlfcn.h
-	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_INSTALL_LIBSTDCPP
 	select BR2_PACKAGE_LIBCURL
@@ -17,8 +17,8 @@ config BR2_PACKAGE_BOINC
 
 	  https://boinc.berkeley.edu
 
-comment "boinc needs a toolchain w/ dynamic library, C++, threads, gcc >= 4.8"
+comment "boinc needs a toolchain w/ dynamic library, C++, threads, gcc >= 7"
 	depends on BR2_USE_MMU
 	depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \
-		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
+		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
 		|| !BR2_TOOLCHAIN_HAS_THREADS
package/boinc/boinc.hash +1 -1
index ee3168b148..47ae5e4a27 100644
@@ -1,4 +1,4 @@
 # Locally computed:
-sha256  0697781686bd99f0294d639d19d7184f884e5d8b11ae8fae720b855f58bb3f5a  boinc-8.2.11.tar.gz
+sha256  59ab7ce2877e211ab627350544b0c21cd639ee46191d0b0d804320e539c246b2  boinc-8.2.15.tar.gz
 sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING
 sha256  9ccf26cfe845e0eb8bb58053e47366e7ab6b697ae010f7650978d4b71b7d1fc1  COPYING.LESSER
package/boinc/boinc.mk +1 -1
index 6227d464d2..6b9db1c727 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 BOINC_VERSION_MAJOR = 8.2
-BOINC_VERSION = $(BOINC_VERSION_MAJOR).11
+BOINC_VERSION = $(BOINC_VERSION_MAJOR).15
 BOINC_SITE = \
 	$(call github,BOINC,boinc,client_release/$(BOINC_VERSION_MAJOR)/$(BOINC_VERSION))
 BOINC_LICENSE = LGPL-3.0+
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Bernd Kuhls
Quoted 4 lines · Bernd Kuhls

Fixes:
https://autobuild.buildroot.net/results/f10/f1015559e37d73403c396ee883d9a73fd167b9dd/

Thanks, but when was this issue introduced?

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
Quoted 7 lines · Thomas Petazzoni via buildroot
Quoted 4 lines · Bernd Kuhls

Fixes:
https://autobuild.buildroot.net/results/f10/f1015559e37d73403c396ee883d9a73fd167b9dd/

Thanks, but when was this issue introduced?

Gentle ping.

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot