When cross compiling rpcgen is compiled with the cross compiler although it is executed during compile time only. This leads to errors like: ../../tools/rpcgen/rpcgen -l -o mount_clnt.c mount.x ../../tools/rpcgen/rpcgen -c -i 0 -o mount_xdr.c mount.x ../../tools/rpcgen/rpcgen -h -o mount.h mount.x /lib/ld-linux-armhf.so.3: No such file or directory /lib/ld-linux-armhf.so.3: No such file or directory /lib/ld-linux-armhf.so.3: No such file or directory Since e61775d1 ("rpcgen: bump to latest version") rpcgen is compiled with the target compiler, prior to that it was correctly compiled with the host compiler. Fix that by using $(CC_FOR_BUILD) as CC explicitly as it was before. buildroot works around this by compiling a host version first, then a target version --with-rpcgen=$(HOST_DIR)/bin/rpcgen [1]. That does not look like it is intended by nfs-utils. [1] https://git.busybox.net/buildroot/tree/package/nfs-utils/nfs-utils.mk#n25 Signed-off-by: Bastian Krause <bst@xxxxxxxxxxxxxx> --- tools/rpcgen/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/rpcgen/Makefile.am b/tools/rpcgen/Makefile.am index 457cd507..f122cd9d 100644 --- a/tools/rpcgen/Makefile.am +++ b/tools/rpcgen/Makefile.am @@ -1,5 +1,7 @@ CLEANFILES = *~ +CC=$(CC_FOR_BUILD) + bin_PROGRAMS = rpcgen man_MANS = rpcgen.1 -- 2.20.1