Skip to contentSkip to conversation

package/check: disable static build

PATCH Applied Fabrice Fontaine 2 participants 3 messages Sep 16, 2023 – Jul 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/check: disable static build

check can't be built statically since switch to cmake in commit 6dfc789f4f21367bc5f4b5454db0922821a765bc:

/home/autobuild/autobuild/instance-2/output-1/host/lib/gcc/mipsel-buildroot-linux-uclibc/12.3.0/../../../../mipsel-buildroot-linux-uclibc/bin/ld: libcheck.so.0.15.2: hidden symbol `__fini_array_end' isn't defined

Fixes:
- http://autobuild.buildroot.org/results/0d6/0d6fcbedef29bf0d6a1d9ecb8e4d82b4ad06cfa8

---
 package/check/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/check/Config.in +4 -0
index 2312fbf81c..a3a7ff1f11 100644
@@ -1,6 +1,10 @@
 config BR2_PACKAGE_CHECK
 	bool "check"
+	depends on !BR2_STATIC_LIBS
 	help
 	  Check is a unit testing framework for C.
 
 	  https://libcheck.github.io/check/
+
+comment "check needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
Signature · 6 lines
2.40.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines · Fabrice Fontaine

check can't be built statically since switch to cmake in commit 6dfc789f4f21367bc5f4b5454db0922821a765bc:

/home/autobuild/autobuild/instance-2/output-1/host/lib/gcc/mipsel-buildroot-linux-uclibc/12.3.0/../../../../mipsel-buildroot-linux-uclibc/bin/ld: libcheck.so.0.15.2: hidden symbol `__fini_array_end' isn't defined

Fixes:
- http://autobuild.buildroot.org/results/0d6/0d6fcbedef29bf0d6a1d9ecb8e4d82b4ad06cfa8

Applied to master, thanks.

Regards,
Arnout

Quoted 9 lines
---
  package/check/Config.in | 4 ++++
  1 file changed, 4 insertions(+)
package/check/Config.in +0 -0
index 2312fbf81c..a3a7ff1f11 100644

package/check/Config.in line 10

Quoted 10 lines
package/check/Config.in +4 -0
@@ -1,6 +1,10 @@
  config BR2_PACKAGE_CHECK
  	bool "check"
+	depends on !BR2_STATIC_LIBS
  	help
  	  Check is a unit testing framework for C.
 
  	  https://libcheck.github.io/check/
+
+comment "check needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS

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

#2 lore raw
Quoted 6 lines · On Fri, 12 Jul 2024 22:12:33 +0200 Arnout Vandecappelle via buildroot…
Quoted 4 lines

Fixes:
- http://autobuild.buildroot.org/results/0d6/0d6fcbedef29bf0d6a1d9ecb8e4d82b4ad06cfa8

Applied to master, thanks.

And I reverted because I actually fixed the issue:

https://gitlab.com/buildroot.org/buildroot/-/commit/526b89b981cb3fa3da7644482d1f140f1fb25e27

And also did a fix for noMMU builds:

https://gitlab.com/buildroot.org/buildroot/-/commit/d10bee42012103fe7974c5e20be3af81e3c1c250

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