Continuing the discussion from Build Failure with Ubuntu 22.04:
I got the same error, after applying the advice, the build ends like this:
Executing (target): /home/metium/CoreELEC/build.CoreELEC-Amlogic-ne.arm-20/build/nfs-utils-2.6.1/configure --host=armv8a-libreelec-linux-gnueabihf --build=x86_6
4-linux-gnu --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --disable-static
--enable-shared --with-systemd=/usr/lib/systemd/system --with-nfsconfig=/storage/.config/nfs.conf --with-statduser=metium --with-statedir=/run/nfs --with-rpcgen
=/home/metium/CoreELEC/build.CoreELEC-Amlogic-ne.arm-20/build/nfs-utils-2.6.1/tools/rpcgen/rpcgen --enable-nfsv4 --enable-nfsv41 --enable-tirpc --enable-uuid --
disable-gss --disable-ipv6 --without-tcp-wrappers
checking build system type... x86_64-pc-linux-gnu
checking host system type... armv8a-libreelec-linux-gnueabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for armv8a-libreelec-linux-gnueabihf-strip... /home/metium/CoreELEC/build.CoreELEC-Amlogic-ne.arm-20/toolchain/bin/armv8a-libreelec-linux-gnueabihf-str
ip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for armv8a-libreelec-linux-gnueabihf-gcc... /home/metium/CoreELEC/build.CoreELEC-Amlogic-ne.arm-20/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc
checking whether the C compiler works... no
configure: error: in `/home/metium/CoreELEC/build.CoreELEC-Amlogic-ne.arm-20/build/nfs-utils-2.6.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
.[1;31mFAILURE: scripts/build nfs-utils:target during configure_target (default).[0m
*********** FAILED COMMAND ***********
${PKG_CONFIGURE_SCRIPT} ${TARGET_CONFIGURE_OPTS} ${PKG_CONFIGURE_OPTS_TARGET}
**************************************
*********** FAILED COMMAND ***********
${SCRIPTS}/build "${1}" "${PARENT_PKG}"
**************************************
.[1;31mFAILURE: scripts/install nfs-utils:target has failed!.[0m