All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] toolchain-buildroot: glibc: Remove the default choice of built-in SunRPC
@ 2020-12-11 12:12 Veronika Kremneva
  2020-12-15 21:24 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Veronika Kremneva @ 2020-12-11 12:12 UTC (permalink / raw)
  To: buildroot

There is an error present when building lmbench with glibc-2.26 and above:
----------------------------->8---------------------------
Makefile:226: recipe for target '../bin/arc/lib_udp.o' failed
make[2]: *** [../bin/arc/lib_udp.o] Error 1
In file included from lib_unix.c:9:
bench.h:39:10: fatal error: rpc/rpc.h: No such file or directory
   39 | #include <rpc/rpc.h>
      |          ^~~~~~~~~~~
compilation terminated.
Makefile:228: recipe for target '../bin/arc/lib_unix.o' failed
make[2]: *** [../bin/arc/lib_unix.o] Error 1
In file included from lib_timing.c:17:
bench.h:39:10: fatal error: rpc/rpc.h: No such file or directory
   39 | #include <rpc/rpc.h>
      |          ^~~~~~~~~~~
compilation terminated.
----------------------------->8---------------------------
You can find more details about failed builds here:
http://autobuild.buildroot.net/?reason=lmbench-3.0-a9

This happens because native implementation of Sun RPC was removed
from glibc and moved to a separate library (libtirpc):
https://fedoraproject.org/wiki/Changes/SunRPCRemoval

Yet in Buildroot we still assume BR2_TOOLCHAIN_HAS_NATIVE_RPC
in case of glibc, which is not true.

The following patch removes the default assumption that glibc
has a built-in implementation of SunRPC.

Signed-off-by: Veronika Kremneva <kremneva@synopsys.com>
---
 toolchain/toolchain-buildroot/Config.in | 2 --
 1 file changed, 2 deletions(-)

diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
index 2058ff1eb9..74aa9abc25 100644
--- a/toolchain/toolchain-buildroot/Config.in
+++ b/toolchain/toolchain-buildroot/Config.in
@@ -59,8 +59,6 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC
 	depends on !BR2_powerpc_SPE
 	depends on BR2_RISCV_ISA_RVA || !BR2_riscv
 	select BR2_TOOLCHAIN_USES_GLIBC
-	# our glibc.mk enables RPC support
-	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	help
 	  This option selects glibc as the C library for the
 	  cross-compilation toolchain.
-- 
2.16.2

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

end of thread, other threads:[~2020-12-15 22:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 12:12 [Buildroot] [PATCH] toolchain-buildroot: glibc: Remove the default choice of built-in SunRPC Veronika Kremneva
2020-12-15 21:24 ` Arnout Vandecappelle
2020-12-15 21:42   ` Thomas Petazzoni
2020-12-15 22:15   ` Romain Naour

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.