Package/libs/gettext-full [host] failed to build

gcc -DHAVE_CONFIG_H -I. -I..  -I. -I. -I.. -I.. -Iglib -DIN_LIBTEXTSTYLE -DLIBXML_STATIC    -I./libcroco  -DDEPENDS_ON_LIBICONV=1 -I/home/sil/openwrt/staging_dir/host/include -I/home/sil/openwrt/staging_dir/hostpkg/include -I/home/sil/openwrt/staging_dir/target-mipsel_24kc_musl/host/include  -O2 -I/home/sil/openwrt/staging_dir/host/include -I/home/sil/openwrt/staging_dir/hostpkg/include -I/home/sil/openwrt/staging_dir/target-mipsel_24kc_musl/host/include -DPIC -fPIC -c html-styled-ostream.c
gcc -DHAVE_CONFIG_H -I. -I..  -I. -I. -I.. -I.. -Iglib -DIN_LIBTEXTSTYLE -DLIBXML_STATIC    -I./libcroco  -DDEPENDS_ON_LIBICONV=1 -I/home/sil/openwrt/staging_dir/host/include -I/home/sil/openwrt/staging_dir/hostpkg/include -I/home/sil/openwrt/staging_dir/target-mipsel_24kc_musl/host/include  -O2 -I/home/sil/openwrt/staging_dir/host/include -I/home/sil/openwrt/staging_dir/hostpkg/include -I/home/sil/openwrt/staging_dir/target-mipsel_24kc_musl/host/include -DPIC -fPIC -c ialloc.c
gcc -DHAVE_CONFIG_H -I. -I..  -I. -I. -I.. -I.. -Iglib -DIN_LIBTEXTSTYLE -DLIBXML_STATIC    -I./libcroco  -DDEPENDS_ON_LIBICONV=1 -I/home/sil/openwrt/staging_dir/host/include -I/home/sil/openwrt/staging_dir/hostpkg/include -I/home/sil/openwrt/staging_dir/target-mipsel_24kc_musl/host/include  -O2 -I/home/sil/openwrt/staging_dir/host/include -I/home/sil/openwrt/staging_dir/hostpkg/include -I/home/sil/openwrt/staging_dir/target-mipsel_24kc_musl/host/include -DPIC -fPIC -c iconv-ostream.c
iconv-ostream.c:255:3: error: initialization of 'void (*)(struct any_ostream_representation *, ostream_flush_scope_t)' from incompatible pointer type 'void (*)(struct any_ostream_representation *)' [-Wincompatible-pointer-types]
  255 |   iconv_ostream__flush,
      |   ^~~~~~~~~~~~~~~~~~~~
iconv-ostream.c:255:3: note: (near initialization for 'iconv_ostream_vtable.flush')
make[8]: *** [Makefile:5928: config.h] Error 1
make[8]: Leaving directory '/home/sil/openwrt/build_dir/hostpkg/gettext-0.21.1/libtextstyle/lib'
make[7]: *** [Makefile:1834: all-recursive] Error 1
make[7]: Leaving directory '/home/sil/openwrt/build_dir/hostpkg/gettext-0.21.1/libtextstyle'
make[6]: *** [Makefile:1762: all] Error 2
make[6]: Leaving directory '/home/sil/openwrt/build_dir/hostpkg/gettext-0.21.1/libtextstyle'
make[5]: *** [Makefile:406: all-recursive] Error 1
make[5]: Leaving directory '/home/sil/openwrt/build_dir/hostpkg/gettext-0.21.1'
make[4]: *** [Makefile:362: all] Error 2
make[4]: Leaving directory '/home/sil/openwrt/build_dir/hostpkg/gettext-0.21.1'
make[3]: *** [Makefile:188: /home/sil/openwrt/build_dir/hostpkg/gettext-0.21.1/.built] Error 2
make[3]: Leaving directory '/home/sil/openwrt/package/libs/gettext-full'
time: package/libs/gettext-full/host-compile#3.91#1.31#5.71
    ERROR: package/libs/gettext-full [host] failed to build.
make[2]: *** [package/Makefile:127: package/libs/gettext-full/host/compile] Error 1
make[2]: Leaving directory '/home/sil/openwrt'
make[1]: *** [package/Makefile:123: /home/sil/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/sil/openwrt'
make: *** [/home/sil/openwrt/include/toplevel.mk:232: world] Error 2

Same on two different machines compiling v23.05.3 for Netgear R6220 (ramips).

Any thoughts?

1 Like

I am experiencing the same issue compiling on v23.05.3 for an Unifi AC Mesh (ath79).

There's not really been any changes there for a while though so not sure: https://github.com/openwrt/openwrt/tree/openwrt-23.05/package/libs/gettext-full

Any help is appreciated :nerd_face:

iconv-ostream.c:255:3: error: initialization of 'void (*)(struct any_ostream_representation *, ostream_flush_scope_t)' from incompatible pointer type 'void (*)(struct any_ostream_representation *)' [-Wincompatible-pointer-types]
  255 |   iconv_ostream__flush,
      |   ^~~~~~~~~~~~~~~~~~~~
iconv-ostream.c:255:3: note: (near initialization for 'iconv_ostream_vtable.flush')

v23.05.3 compiles perfectly for NanoPi-r2s (rockchip armv8).

1 Like

As I said, v23.05.3 does compile for NanoPi-r2s (rockchip armv8).

But a few months later it's running v22.03.3 again because turns out the NanoPi-r2s crashed every 24 days approx. It became completely unresponsive by any port or even ping. Useless.

v22.03.3 runs like a charm.

1 Like