Yesterday I tried to build the new version of OpenWrt, but the build has failed for ntpd package.
The error I'm getting is the following:
$ make V=sc package/ntpd/compile
make[2]: Entering directory '/home/user/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/user/openwrt/scripts/config'
make[1]: Entering directory '/home/user/openwrt'
+ mkdir -p /home/user/openwrt/staging_dir/target-mipsel_24kc_musl
+ cd /home/user/openwrt/staging_dir/target-mipsel_24kc_musl
+ mkdir -p bin lib stamp usr/include usr/lib
mkdir -p /home/user/openwrt/build_dir/target-mipsel_24kc_musl/stamp
touch /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/.prepared
make[2]: Entering directory '/home/user/openwrt/package/libs/toolchain'
echo "libc" >> /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libatomic" >> /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/user/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.23#0.04#0.26
make[2]: Entering directory '/home/user/openwrt/package/libs/libcap'
echo "libcap" >> /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/libcap.default.install
make[2]: Leaving directory '/home/user/openwrt/package/libs/libcap'
time: package/libs/libcap/compile#0.20#0.05#0.24
make[2]: Entering directory '/home/user/openwrt/package/libs/openssl'
Package/openssl/add-module 1='provider'; 2='legacy'; 3='/usr/lib/ossl-modules' 4=''
MOD_TYPE='provider'; MOD_NAME='legacy'; MOD_DIR='/usr/lib/ossl-modules' OSSL_PKG='libopenssl-legacy'
Package/openssl/add-module 1='engine'; 2='afalg'; 3='/usr/lib/engines-3' 4=''
MOD_TYPE='engine'; MOD_NAME='afalg'; MOD_DIR='/usr/lib/engines-3' OSSL_PKG='libopenssl-afalg'
Package/openssl/add-module 1='engine'; 2='devcrypto'; 3='/usr/lib/engines-3' 4=''
MOD_TYPE='engine'; MOD_NAME='devcrypto'; MOD_DIR='/usr/lib/engines-3' OSSL_PKG='libopenssl-devcrypto'
Package/openssl/add-module 1='engine'; 2='padlock'; 3='/usr/lib/engines-3' 4=''
MOD_TYPE='engine'; MOD_NAME='padlock'; MOD_DIR='/usr/lib/engines-3' OSSL_PKG='libopenssl-padlock'
echo "libopenssl" >> /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/openssl.default.install
make[2]: Leaving directory '/home/user/openwrt/package/libs/openssl'
time: package/libs/openssl/compile#0.27#0.08#0.31
make[2]: Entering directory '/home/user/openwrt/package/libs/libevent2'
echo "libevent2-core" >> /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/libevent2.default.install
echo "libevent2-pthreads" >> /home/user/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/libevent2.default.install
make[2]: Leaving directory '/home/user/openwrt/package/libs/libevent2'
time: package/libs/libevent2/compile#0.18#0.06#0.23
make[2]: Entering directory '/home/user/openwrt/feeds/packages/net/ntpd'
rm -f /home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/.built
touch /home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/.built_check
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17=ntp-4.2.8p17 -mips16 -minterlink-mips16 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17=ntp-4.2.8p17 -mips16 -minterlink-mips16 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -mips16 -minterlink-mips16 -I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include " LDFLAGS="-L/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/lib -L/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib -znow -zrelro " make -C /home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/. AR="mipsel-openwrt-linux-musl-gcc-ar" AS="ccache mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17=ntp-4.2.8p17 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="ccache mipsel-openwrt-linux-musl-gcc" GCC="ccache mipsel-openwrt-linux-musl-gcc" CXX="ccache mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-" ARCH="mipsel" ;
make[3]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17'
cd ./html && \
../scripts/build/checkHtmlFileDates
cd . && \
./scripts/build/checkChangeLog
make all-recursive
make[4]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17'
Making all in scripts
make[5]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts'
Making all in build
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/build'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/build'
Making all in calc_tickadj
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/calc_tickadj'
make all-am
make[7]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/calc_tickadj'
make[7]: Nothing to be done for 'all-am'.
make[7]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/calc_tickadj'
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/calc_tickadj'
Making all in ntp-wait
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/ntp-wait'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/ntp-wait'
Making all in ntpsweep
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/ntpsweep'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/ntpsweep'
Making all in ntptrace
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/ntptrace'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/ntptrace'
Making all in lib
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/lib'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/lib'
Making all in update-leap
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/update-leap'
Makefile:937: warning: overriding recipe for target 'update-leap'
Makefile:549: warning: ignoring old recipe for target 'update-leap'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts/update-leap'
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts'
make[5]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/scripts'
Making all in include
make[5]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/include'
Making all in isc
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/include/isc'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/include/isc'
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/include'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/include'
make[5]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/include'
Making all in libntp
make[5]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/libntp'
make all-am
make[6]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/libntp'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/libntp'
make[5]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/libntp'
Making all in sntp
make[5]: Entering directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/sntp'
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --disable-option-checking --prefix=/usr --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --program-prefix= --program-suffix= --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-all-clocks --disable-parse-clocks --without-ntpsnmpd --without-lineeditlibs --enable-NMEA --enable-LOCAL-CLOCK --enable-SHM --enable-ATOM --enable-linuxcaps --with-yielding-select=yes --with-crypto --with-sntp --with-openssl-incdir=/home/user/openwrt/staging_dir/target-mipsel_24kc_musl/usr/include --with-openssl-libdir=/home/user/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib build_alias=x86_64-pc-linux-gnu host_alias=mipsel-openwrt-linux target_alias=mipsel-openwrt-linux CC=ccache mipsel-openwrt-linux-musl-gcc CFLAGS=-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17=ntp-4.2.8p17 -mips16 -minterlink-mips16 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro LDFLAGS=-L/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/lib -L/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/lib -znow -zrelro CPPFLAGS=-I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/usr/include -I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include/fortify -I/home/user/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-12.3.0_musl/include --cache-file=/dev/null --srcdir=. --no-create --no-recursion
configure: loading site script /home/user/openwrt/include/site/mipsel
checking for a BSD-compatible install... /home/user/openwrt/staging_dir/host/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-openwrt-linux-strip... mipsel-openwrt-linux-musl-strip
checking for a race-free 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 make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... mipsel-openwrt-linux-gnu
checking whether make supports the include directive... yes (GNU style)
checking for mipsel-openwrt-linux-cc... ccache mipsel-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether ccache mipsel-openwrt-linux-musl-gcc accepts -g... yes
checking for ccache mipsel-openwrt-linux-musl-gcc option to enable C11 features... none needed
checking whether ccache mipsel-openwrt-linux-musl-gcc understands -c and -o together... yes
checking dependency style of ccache mipsel-openwrt-linux-musl-gcc... none
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for vfork.h... no
checking for sys/time.h... yes
checking for stdarg.h... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking how to run the C preprocessor... ccache mipsel-openwrt-linux-musl-gcc -E
checking for grep that handles long lines and -e... /home/user/openwrt/staging_dir/host/bin/grep
checking for egrep... /home/user/openwrt/staging_dir/host/bin/grep -E
checking whether ccache mipsel-openwrt-linux-musl-gcc needs -traditional... no
checking if ccache mipsel-openwrt-linux-musl-gcc can handle #warning... yes
checking if ccache mipsel-openwrt-linux-musl-gcc supports __attribute__((...))... yes
checking if ccache mipsel-openwrt-linux-musl-gcc can handle -Wstrict-overflow... yes
checking if ccache mipsel-openwrt-linux-musl-gcc can handle -Winit-self... yes
checking if ccache mipsel-openwrt-linux-musl-gcc can handle -Wno-format... yes
checking if linker supports omitting unused code and data... no
checking additional compiler flags... none needed
checking additional linker flags... none needed
checking whether byte ordering is bigendian... (cached) no
checking for working volatile... yes
checking how to run the C preprocessor... ccache mipsel-openwrt-linux-musl-gcc -E
checking for compile/link hardening flags... in file harden/linux
checking for install dir and man conventions... in file loc/legacy
checking for mipsel-openwrt-linux-ar... mipsel-openwrt-linux-musl-gcc-ar
checking the archiver (mipsel-openwrt-linux-musl-gcc-ar) interface... ar
checking for a sed that does not truncate output... /home/user/openwrt/staging_dir/host/bin/sed
checking for fgrep... /home/user/openwrt/staging_dir/host/bin/grep -F
checking how to print strings... printf
checking for pid_t... yes
checking for fork... yes
checking for vfork... yes
checking for vprintf... yes
checking for size_t... yes
checking for ccache mipsel-openwrt-linux-musl-gcc options needed to detect all undeclared functions... none needed
checking whether strerror_r is declared... yes
checking for unsigned long long int... yes
checking for vsnprintf... (cached) yes
checking whether vsnprintf is C99 compliant... no
checking if C99-snprintf replacement vsnprintf will be used... yes
checking for inttypes.h... (cached) yes
checking for locale.h... no
checking for stddef.h... no
checking for stdint.h... (cached) yes
checking for struct lconv.decimal_point... yes
checking for struct lconv.thousands_sep... yes
checking for long double... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking for size_t... (cached) yes
checking for intmax_t... no
checking for uintmax_t... no
checking for uintptr_t... no
checking for ptrdiff_t... no
checking for localeconv... yes
checking for an ANSI C-conforming const... yes
checking for snprintf... yes
checking whether snprintf is C99 compliant... no
checking if C99-snprintf replacement snprintf will be used... yes
checking for ld used by ccache mipsel-openwrt-linux-musl-gcc... mipsel-openwrt-linux-musl-ld
checking if the linker (mipsel-openwrt-linux-musl-ld) is GNU ld... yes
checking for directory path separator... '/'
checking line editing libraries... no
checking for library containing cos... none required
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether strerror_r returns char *... no
checking for library containing clock_gettime... none required
checking for clock_getres... yes
checking for clock_gettime... yes
checking for clock_settime... yes
checking for getclock... no
checking for stime... yes
checking for timegm... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for library containing snprintb... no
checking for errno.h... no
checking for sys/socket.h... no
checking for sys/types.h... (cached) yes
checking for time.h... no
checking for net/if.h... yes
checking for linux/if_addr.h... yes
checking for arpa/nameser.h... no
checking for sys/param.h... no
checking for sys/time.h... (cached) yes
checking for sys/timers.h... no
checking for sys/sysctl.h... no
checking for netinet/in_system.h... no
checking for netinet/in_systm.h... no
checking for netinet/in.h... no
checking for resolv.h... no
checking for net/if_var.h... no
checking for netinet/ip.h... no
checking for netinet/in_var.h... no
checking for library containing inet_pton... none required
checking for library containing inet_ntop... none required
checking for library containing setsockopt... none required
checking for recvmsg... yes
checking for inline... inline
checking size of time_t... 0
checking whether char is unsigned... yes
checking size of signed char... 0
checking for s_char... no
checking for long long... no
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
configure: error: No way to specify a signed character!
make[5]: *** [Makefile:717: config.status] Error 1
make[5]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/sntp'
make[4]: *** [Makefile:665: all-recursive] Error 1
make[4]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17'
make[3]: *** [Makefile:597: all] Error 2
make[3]: Leaving directory '/home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17'
make[2]: *** [Makefile:162: /home/user/openwrt/build_dir/target-mipsel_24kc_musl/ntp-4.2.8p17/.built] Error 2
make[2]: Leaving directory '/home/user/openwrt/feeds/packages/net/ntpd'
time: package/feeds/packages/ntpd/compile#2.55#1.26#3.59
ERROR: package/feeds/packages/ntpd failed to build.
make[1]: *** [package/Makefile:129: package/feeds/packages/ntpd/compile] Error 1
make[1]: Leaving directory '/home/user/openwrt'
make: *** [/home/user/openwrt/include/toplevel.mk:233: package/ntpd/compile] Error 2
It looks like something may be misconfigured? On the other hand, official buildbot just built this package 8 hours ago from when I'm writing this with no problems. The only difference I observed is that I am trying to build ntpd-4.2.8p17, while official package index has ntpd-4.2.8p17-1. I already tried to delete everything and start from scratch without success.
I am trying to build for mt76x8, I am on openwrt.git tag v23.05.5, feeds for packages are currently set at packages.git^b5ed85f6e94aa08de1433272dc007550f4a28201. I see there are some commits concerning ntpd on the master branch for packages, but I'm not sure if its ok to switch branches.
Is anyone experiencing similar issues? Does anyone have any advice for me?