Glib2 compilation error

Below is the compilation log:

make[1]: Entering directory '/home/david/work/router/hw1800/new/hw1850'
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/toolchain'
echo "libc" >> /home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/pkginfo/toolchain.default.install
echo "libgcc" >> /home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/pkginfo/toolchain.default.install
echo "libssp" >> /home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/pkginfo/toolchain.default.install
echo "libpthread" >> /home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/pkginfo/toolchain.default.install
echo "librt" >> /home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/toolchain'
time: package/libs/toolchain/compile#0.13#0.04#0.18
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/gettext'
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/gettext'
time: package/libs/gettext/compile#0.15#0.03#0.17
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/gettext-full'
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/gettext-full'
time: package/libs/gettext-full/host-compile#0.21#0.06#0.23
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/libffi'
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/libffi'
time: package/libs/libffi/host-compile#0.09#0.02#0.11
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/libiconv'
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/libiconv'
time: package/libs/libiconv/host-compile#0.13#0.07#0.19
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/glib2'
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/glib2'
time: package/libs/glib2/host-compile#0.19#0.09#0.25
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/libffi'
echo "libffi" >> /home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/pkginfo/libffi.default.install
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/libffi'
time: package/libs/libffi/compile#0.16#0.08#0.23
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/zlib'
echo "zlib" >> /home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/pkginfo/zlib.default.install
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/zlib'
time: package/libs/zlib/compile#0.11#0.02#0.13
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/utils/attr'
echo "libattr" >> /home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/pkginfo/attr.default.install
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/utils/attr'
time: package/utils/attr/compile#0.13#0.05#0.18
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/libiconv'
make[2]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/package/libs/libiconv'
time: package/libs/libiconv/compile#0.15#0.01#0.15
make[2]: Entering directory '/home/david/work/router/hw1800/new/hw1850/package/libs/glib2'
rm -f /home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/.built
touch /home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1:glib-2.58.1 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libiconv-stub/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libintl-stub/include -Wno-error=implicit-function-declaration  -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_glibc_eabi/usr/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_glibc_eabi/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libiconv-stub/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libintl-stub/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1:glib-2.58.1 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libiconv-stub/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libintl-stub/include -Wno-error=implicit-function-declaration  -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_glibc_eabi/usr/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_glibc_eabi/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libiconv-stub/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libintl-stub/include " LDFLAGS="-L/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib -L/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/lib -L/home/david/work/router/hw1800/new/hw1850/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_glibc_eabi/usr/lib -L/home/david/work/router/hw1800/new/hw1850/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_glibc_eabi/lib -znow -zrelro -L/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libiconv-stub/lib -Wl,-rpath-link=/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libiconv-stub/lib -L/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libintl-stub/lib -Wl,-rpath-link=/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libintl-stub/lib " make  -C /home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/. AR="arm-openwrt-linux-gnueabi-gcc-ar" AS="arm-openwrt-linux-gnueabi-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1:glib-2.58.1 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libiconv-stub/include -I/home/david/work/router/hw1800/new/hw1850/staging_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/usr/lib/libintl-stub/include -Wno-error=implicit-function-declaration" LD=arm-openwrt-linux-gnueabi-ld NM="arm-openwrt-linux-gnueabi-gcc-nm" CC="arm-openwrt-linux-gnueabi-gcc" GCC="arm-openwrt-linux-gnueabi-gcc" CXX="arm-openwrt-linux-gnueabi-g++" RANLIB="arm-openwrt-linux-gnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-gnueabi-strip OBJCOPY=arm-openwrt-linux-gnueabi-objcopy OBJDUMP=arm-openwrt-linux-gnueabi-objdump SIZE=arm-openwrt-linux-gnueabi-size CROSS="arm-openwrt-linux-gnueabi-" ARCH="arm" ;
make[3]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1'
make  all-recursive
make[4]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1'
Making all in .
make[5]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1'
make[5]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1'
Making all in m4macros
make[5]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/m4macros'
make  all-am
make[6]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/m4macros'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/m4macros'
make[5]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/m4macros'
Making all in glib
make[5]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib'
make  all-recursive
make[6]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib'
Making all in libcharset
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/libcharset'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/libcharset'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/libcharset'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/libcharset'
Making all in gnulib
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/gnulib'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/gnulib'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/gnulib'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/gnulib'
Making all in pcre
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/pcre'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/pcre'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/pcre'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/pcre'
Making all in update-pcre
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/update-pcre'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/update-pcre'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/update-pcre'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/update-pcre'
Making all in .
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib'
make[7]: Nothing to be done for 'all-am'.
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib'
Making all in tests
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/tests'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/tests'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/tests'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib/tests'
make[6]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib'
make[5]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/glib'
Making all in gmodule
make[5]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gmodule'
make  all-am
make[6]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gmodule'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gmodule'
make[5]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gmodule'
Making all in gthread
make[5]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gthread'
make  all-am
make[6]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gthread'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gthread'
make[5]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gthread'
Making all in gobject
make[5]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject'
make  all-recursive
make[6]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject'
Making all in .
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject'
make[7]: Nothing to be done for 'all-am'.
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject'
Making all in tests
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject/tests'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject/tests'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject/tests'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject/tests'
make[6]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject'
make[5]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gobject'
Making all in gio
make[5]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio'
make  all-recursive
make[6]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio'
Making all in gdbus-2.0/codegen
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/gdbus-2.0/codegen'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/gdbus-2.0/codegen'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/gdbus-2.0/codegen'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/gdbus-2.0/codegen'
Making all in xdgmime
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/xdgmime'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/xdgmime'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/xdgmime'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/xdgmime'
Making all in inotify
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/inotify'
make  all-am
make[8]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/inotify'
make[8]: Nothing to be done for 'all-am'.
make[8]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/inotify'
make[7]: Leaving directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio/inotify'
Making all in .
make[7]: Entering directory '/home/david/work/router/hw1800/new/hw1850/build_dir/target-arm_cortex-a7+neon-vfpv4_glibc_eabi/glib-2.58.1/gio'
  CC       gresource-gresource-tool.o
gresource-tool.c:32:10: fatal error: libelf/libelf.h: No such file or directory
 #include <libelf/libelf.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:4224: recipe for target 'gresource-gresource-tool.o' failed
make[7]: *** [gresource-gresource-tool.o] Error 1

It looks like you're missing libelf-dev.

https://openwrt.org/docs/guide-developer/build-system/install-buildsystem

The host does not need to install libelf-dev. Instead, the installation header file path generated by elfutils during compilation, which causes the compilation of glib2 to fail to recognize correctly and cause compilation failure.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.