Skip to contentSkip to conversation

package/crucible: needs NPTL

PATCH Applied Bernd Kuhls 2 participants 2 messages May 31

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/crucible: needs NPTL

gcc_stack_unix.c: In function 'x_cgo_getstackbound':
gcc_stack_unix.c:28:9: error: implicit declaration of function 'pthread_getattr_np';
did you mean 'pthread_attr_init'? [-Wimplicit-function-declaration]
28 | pthread_getattr_np(pthread_self(), &attr); // GNU extension

Fixes:
https://autobuild.buildroot.net/results/e07/e07198d7864331027d21cd2109054d86e7ac1c3d/

The build error also occured in Oct 2024 so a backport to buildroot LTS branches should be considered:
https://autobuild.buildroot.net/results/ebb/ebbd051010c27f97fafc0b203b22c8b0af7e5ccd/

---
v2: Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/b600aef918fe6b2f9c65b6fd267426f7ca70f76d

 package/crucible/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/crucible/Config.in +4 -0
index 1e1b29c3df..e18e393a05 100644
@@ -1,9 +1,13 @@
 config BR2_PACKAGE_CRUCIBLE
 	bool "crucible"
 	depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_getattr_np()
 	select BR2_PACKAGE_HOST_GO
 	help
 	  Crucible is a One-Time-Programmable (OTP) fusing tool for the
 	  i.MX family.
 
 	  https://github.com/usbarmory/crucible
+
+comment "crucible needs a toolchain w/ NPTL"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
Signature · 6 lines
2.47.3

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

Hello,

Quoted 5 lines · Bernd Kuhls

gcc_stack_unix.c: In function 'x_cgo_getstackbound':
gcc_stack_unix.c:28:9: error: implicit declaration of function 'pthread_getattr_np';
did you mean 'pthread_attr_init'? [-Wimplicit-function-declaration]
28 | pthread_getattr_np(pthread_self(), &attr); // GNU extension

Quoted 8 lines

Fixes:
https://autobuild.buildroot.net/results/e07/e07198d7864331027d21cd2109054d86e7ac1c3d/

The build error also occured in Oct 2024 so a backport to buildroot LTS branches should be considered:
https://autobuild.buildroot.net/results/ebb/ebbd051010c27f97fafc0b203b22c8b0af7e5ccd/

Thanks, applied to master, after fixing one small thing.

package/crucible/Config.in line 3

Quoted 8 lines
package/crucible/Config.in +0 -0
index 1e1b29c3df..e18e393a05 100644
@@ -1,9 +1,13 @@
 config BR2_PACKAGE_CRUCIBLE
 	bool "crucible"
 	depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS

You forgot to replicate this dependency...

package/crucible/Config.in line 12

Quoted 9 lines
package/crucible/Config.in +3 -0
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_getattr_np()
 	select BR2_PACKAGE_HOST_GO
 	help
 	  Crucible is a One-Time-Programmable (OTP) fusing tool for the
 	  i.MX family.
 
 	  https://github.com/usbarmory/crucible
+
+comment "crucible needs a toolchain w/ NPTL"

...here.

package/crucible/Config.in line 13

Quoted 1 line
package/crucible/Config.in +1 -0
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL

Fixed while applying.

Thanks again!

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