Regression on ARMv7L hi3535 arch : error: ‘__NR_sched_getattr’ undeclared (first use in this function)
After investigating I found out that cross-compiling from x86_64 with target armv7l (hi3535 arch) now generates and error. While trying to find the source I was able to confirm that last know good version for compiling is 2.63.3 and it fails immediately after at 2.63.4.
ninja: Entering directory `builddir'
[79/428] Compiling C object glib/libglib-2.0.so.0.6304.0.p/gsequence.c.o
../glib/gsequence.c: In function ‘g_sequence_move_range’:
../glib/gsequence.c:636:24: warning: ‘dest_seq’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (dest && dest_seq == src_seq &&
^
[97/428] Compiling C object glib/libglib-2.0.so.0.6304.0.p/gthread-posix.c.o
FAILED: glib/libglib-2.0.so.0.6304.0.p/gthread-posix.c.o
/home/spksrc/spksrc-meson-ninja/spksrc/toolchains/syno-hi3535-6.1/work/arm-cortexa9-linux-gnueabi/bin/arm-cortexa9-linux-gnueabi-gcc -Iglib/libglib-2.0.so.0.6304.0.p -Iglib -I../glib -I. -I.. -I/home/spksrc/spksrc-meson-ninja/spksrc/cross/glib/work-hi3535-6.1/install/usr/local/glib/include -I/home/spksrc/spksrc-meson-ninja/spksrc/toolchains/syno-hi3535-6.1/work/arm-cortexa9-linux-gnueabi/arm-cortexa9-linux-gnueabi/sysroot/usr/include -I/home/spksrc/spksrc-meson-ninja/spksrc/cross/glib/work-hi3535-6.1/install//usr/local/glib/include -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O3 -D_GNU_SOURCE -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wall -Wstrict-prototypes -Wunused -Wno-unused-parameter -Wno-bad-function-cast -Wno-pedantic -Werror=declaration-after-statement -Werror=format=2 -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -fPIC -pthread '-DG_LOG_DOMAIN="GLib"' -DGLIB_COMPILATION -fvisibility=hidden -MD -MQ glib/libglib-2.0.so.0.6304.0.p/gthread-posix.c.o -MF glib/libglib-2.0.so.0.6304.0.p/gthread-posix.c.o.d -o glib/libglib-2.0.so.0.6304.0.p/gthread-posix.c.o -c ../glib/gthread-posix.c
In file included from /home/spksrc/spksrc-meson-ninja/spksrc/toolchains/syno-hi3535-6.1/work/arm-cortexa9-linux-gnueabi/arm-cortexa9-linux-gnueabi/sysroot/usr/include/sys/syscall.h:31:0,
from ../glib/gthread-posix.c:72:
../glib/gthread-posix.c: In function ‘g_system_thread_get_scheduler_settings’:
../glib/gthread-posix.c:1187:22: error: ‘__NR_sched_getattr’ undeclared (first use in this function)
res = syscall (SYS_sched_getattr, tid, scheduler_settings->attr, size, flags);
^
../glib/gthread-posix.c:1187:22: note: each undeclared identifier is reported only once for each function it appears in
../glib/gthread-posix.c: In function ‘linux_pthread_proxy’:
../glib/gthread-posix.c:1235:22: error: ‘__NR_sched_setattr’ undeclared (first use in this function)
res = syscall (SYS_sched_setattr, tid, thread->scheduler_settings->attr, flags);
^
[110/428] Compiling C object glib/libglib-2.0.so.0.6304.0.p/gvariant.c.o
ninja: build stopped: subcommand failed.
make[1]: *** [../../mk/spksrc.cross-ninja.mk:35: ninja_compile_target] Error 1
make[1]: Leaving directory '/home/spksrc/spksrc-meson-ninja/spksrc/cross/glib'
make: [../../mk/spksrc.cross-cc.mk:82: arch-hi3535-6.1] Error 2 (ignored)
Full cross-compile log attached: build.hi3535.out