i am trying to build os-image using bitbake in yocto project. i got the following error.
../util-linux-2.28.1/schedutils/chrt.c:88:17: error: ‘__NR_sched_setattr’ undeclared (first use in this function)
i followed the instructions given in Mega Manual of yocto. how to resolve this build error?
It's probably finding ncurses headers from your host machine when it should only be looking in the Yocto sysroot. There's a patch that fixes this, it will probably end up in master soon. Either use the patch locally for now or as a workaround remove libncurses6 and libncursesw6 development packages from your build host.