Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/zlib-ng: disable riscv with uclibc
@ 2024-03-20 22:13 Fabrice Fontaine
  2024-03-24 16:33 ` Arnout Vandecappelle via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2024-03-20 22:13 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Disable riscv with uclibc to avoid the following build failure with
uclibc-ng < 1.0.43 raised since bump to version 2.1.6 in commit
47b6737e841baf8b666ea9f37edc5f169652e88d and
https://github.com/zlib-ng/zlib-ng/commit/6ff8b52cefe56a824fae1d53fdd687bcde2e53c9:

/home/autobuild/autobuild/instance-2/output-1/build/zlib-ng-2.1.6/arch/riscv/riscv_features.c:4:10: fatal error: sys/auxv.h: No such file or directory
    4 | #include <sys/auxv.h>
      |          ^~~~~~~~~~~~

Indeed, upstream is reluctant to avoid calling getauxval if is not
available: https://github.com/zlib-ng/zlib-ng/pull/1700

Fixes: 47b6737e841baf8b666ea9f37edc5f169652e88d
 - http://autobuild.buildroot.org/results/06a7d8e59ec4de7c711d3f4a4624f67b97d78afe

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/zlib/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/zlib/Config.in b/package/zlib/Config.in
index 3a486376ac..346202c8bf 100644
--- a/package/zlib/Config.in
+++ b/package/zlib/Config.in
@@ -7,7 +7,7 @@ config BR2_PACKAGE_ZLIB_NG_ARCH_SUPPORTS
 	default y if BR2_aarch64
 	default y if BR2_i386
 	default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
-	default y if BR2_riscv
+	default y if BR2_riscv && !BR2_TOOLCHAIN_USES_UCLIBC
 	default y if BR2_s390x
 	default y if BR2_x86_64
 
-- 
2.43.0

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

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

end of thread, other threads:[~2024-03-25 21:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-20 22:13 [Buildroot] [PATCH 1/1] package/zlib-ng: disable riscv with uclibc Fabrice Fontaine
2024-03-24 16:33 ` Arnout Vandecappelle via buildroot
2024-03-24 16:46   ` Thomas Petazzoni via buildroot
2024-03-25 21:11   ` Yann E. MORIN

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