I'm currently having issues building for the past 24 hrs (using latest master as of this writing). My builds are failing when it tries to build gnutls 3.7.8 for x86 (x86_64) and ramips (mipsel_24kc).
As for trying to figure out the issue, I tried compiling the package manually using
make package/feeds/packages/gnutls/{clean,compile} V=sc
Error output for x86
make[3]: Entering directory '/home/xxxxxxxx/openwrt/openwrt/build_dir/target-x86_64_musl/gnutls-3.7.8'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/xxxxxxxx/openwrt/openwrt/build_dir/target-x86_64_musl/gnutls-3.7.8/build-aux/missing aclocal-1.16 -I m4 -I src/gl/m4 -I lib/unistring/m4 --install
m4/gnulib-comp.m4:427: warning: macro 'AM_STDBOOL_H' not found in library
src/gl/m4/gnulib-comp.m4:802: warning: macro 'AM_STDBOOL_H' not found in library
lib/unistring/m4/gnulib-comp.m4:166: warning: macro 'AM_STDBOOL_H' not found in library
missing file gl/stdio-read.c
configure.ac:480: error: expected source file, required through AC_LIBSOURCES, not found
./lib/autoconf/general.m4:2437: AC_FATAL is expanded from...
m4/gnulib-comp.m4:180: gl_INIT is expanded from...
configure.ac:480: the top level
autom4te: error: /home/xxxxxxxx/openwrt/openwrt/staging_dir/host/bin/m4 failed with exit status: 1
aclocal.real: error: autom4te failed with exit status: 1
make[3]: *** [Makefile:2217: aclocal.m4] Error 1
make[3]: Leaving directory '/home/xxxxxxxx/openwrt/openwrt/build_dir/target-x86_64_musl/gnutls-3.7.8'
make[2]: *** [Makefile:269: /home/xxxxxxxx/openwrt/openwrt/build_dir/target-x86_64_musl/gnutls-3.7.8/.built] Error 2
make[2]: Leaving directory '/home/xxxxxxxx/openwrt/openwrt/feeds/packages/libs/gnutls'
time: package/feeds/packages/gnutls/compile#58.77#18.47#74.77
ERROR: package/feeds/packages/gnutls failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/gnutls/compile] Error 1
make[1]: Leaving directory '/home/xxxxxxxx/openwrt/openwrt'
make: *** [/home/xxxxxxxx/openwrt/openwrt/include/toplevel.mk:231: package/feeds/packages/gnutls/compile] Error 2
Error output for ramips
make[3]: Entering directory '/home/xxxxxxxx/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/gnutls-3.7.8'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/xxxxxxxx/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/gnutls-3.7.8/build-aux/missing aclocal-1.16 -I m4 -I src/gl/m4 -I lib/unistring/m4 --install
m4/gnulib-comp.m4:427: warning: macro 'AM_STDBOOL_H' not found in library
src/gl/m4/gnulib-comp.m4:802: warning: macro 'AM_STDBOOL_H' not found in library
lib/unistring/m4/gnulib-comp.m4:166: warning: macro 'AM_STDBOOL_H' not found in library
missing file gl/stdio-read.c
configure.ac:480: error: expected source file, required through AC_LIBSOURCES, not found
./lib/autoconf/general.m4:2437: AC_FATAL is expanded from...
m4/gnulib-comp.m4:180: gl_INIT is expanded from...
configure.ac:480: the top level
autom4te: error: /home/xxxxxxxx/openwrt/openwrt/staging_dir/host/bin/m4 failed with exit status: 1
aclocal.real: error: autom4te failed with exit status: 1
make[3]: *** [Makefile:2217: aclocal.m4] Error 1
make[3]: Leaving directory '/home/xxxxxxxx/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/gnutls-3.7.8'
make[2]: *** [Makefile:269: /home/xxxxxxxx/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/gnutls-3.7.8/.built] Error 2
make[2]: Leaving directory '/home/xxxxxxxx/openwrt/openwrt/feeds/packages/libs/gnutls'
time: package/feeds/packages/gnutls/compile#59.34#18.28#74.60
ERROR: package/feeds/packages/gnutls failed to build.
make[1]: *** [package/Makefile:116: package/feeds/packages/gnutls/compile] Error 1
make[1]: Leaving directory '/home/xxxxxxxx/openwrt/openwrt'
make: *** [/home/xxxxxxxx/openwrt/openwrt/include/toplevel.mk:231: package/feeds/packages/gnutls/compile] Error 2
I've even tried a couple of times deleting all build related directories (tmp, bin, build_dir, and staging_dir) but same error is happening. I'm stomped on what to do.
But latest observation, the more you try to do a clean build (doing make clean or clearing out build dirs) the more the build error happens. I'll do a post in the github issue to explain this.
at some point I will be looking to remove the patch for gnutls and other m4 patches since they won't be necessary now that gnulib is in master. it shouldn't be necessary to run autoreconf on it at all since that was the only patch it seems. it might build successfully just by removing the patch and fixup in the Makefile before the bump to 3.8
@mpratt14 - Other packages (zile) dependent on gnulib are not building either. What patches should we be looking at to fix these problems. I haven't looked at the full package build output for other failures because of this change but this particular one affects me.
is it failing in a normal buildroot or SDK? as far as I know the only problem is when using SDK right now, other than the error that was first posted here.
do you mean it's dependent on gettext? only things dependent on gnulib right now are the tools that were committed to recently
Same error as OP (see below) using buildroot. Only difference is the line number in configure.ac. If I get some time, I comb all the buildbot logs for other packages failing.
missing file gl/stdio-read.c
configure.ac:480: error: expected source file, required through AC_LIBSOURCES, not found
./lib/autoconf/general.m4:2437: AC_FATAL is expanded from...
m4/gnulib-comp.m4:180: gl_INIT is expanded from...
configure.ac:480: the top level