Wind River Support Network

HomeDefectsLIN9-2504
Fixed

LIN9-2504 : util-linux_2.28.1.bb do_compile failed

Created: Dec 2, 2016    Updated: Dec 3, 2018
Resolved Date: Jul 31, 2017
Found In Version: unknown
Fix Version: 9.0.0.4
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Userspace

Description

Building util-linux 2.28.1, we would sometime meet the following error.

| In file included from /usr/include/x86_64-linux-gnu/sys/syscall.h:31:0,
|                  from ../util-linux-2.28.1/schedutils/chrt.c:63:
| ../util-linux-2.28.1/schedutils/chrt.c: In function sched_setattr:
| ../util-linux-2.28.1/schedutils/chrt.c:88:17: error: __NR_sched_setattr undeclared (first use in this function)
|   return syscall(SYS_sched_setattr, pid, attr, flags);
|                  ^
| ../util-linux-2.28.1/schedutils/chrt.c:88:17: note: each undeclared identifier is reported only once for each function it appears in
| ../util-linux-2.28.1/schedutils/chrt.c: In function sched_getattr:
| ../util-linux-2.28.1/schedutils/chrt.c:93:17: error: __NR_sched_getattr undeclared (first use in this function)
|   return syscall(SYS_sched_getattr, pid, attr, size, flags);
|                  ^
| ../util-linux-2.28.1/schedutils/chrt.c: In function sched_setattr:
| ../util-linux-2.28.1/schedutils/chrt.c:89:1: warning: control reaches end of non-void function [-Wreturn-type]
|  }
|  ^
| ../util-linux-2.28.1/schedutils/chrt.c: In function sched_getattr:
| ../util-linux-2.28.1/schedutils/chrt.c:94:1: warning: control reaches end of non-void function [-Wreturn-type]
|  }
|  ^
| make[2]: *** [Makefile:7407: schedutils/chrt.o] Error 1
| make[2]: *** Waiting for unfinished jobs....

Steps to Reproduce

1)   /buildarea1/product/WRL90_GIT/wrlinux-9/setup.sh --machines=qemux86-64 --kernel=standard --dl-layers && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
2)  bitbake -k world

Other Downloads


Live chat
Online