Wind River Support Network

HomeDefectsLINCD-138
Fixed

LINCD-138 : Failed to complie nfs-utils with PACKAGECONFIG 'nfsv4'

Created: Aug 22, 2019    Updated: Apr 9, 2020
Resolved Date: Mar 26, 2020
Previous ID: LIN1019-2284
Found In Version: 10.20.3.0
Fix Version: 10.20.15.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

1). setup.sh --machines intel-x86-64 --dl-layers --distro wrlinux 

2). Add the following line in local.conf
      PACKAGECONFIG_append_pn-nfs-utils = ' nfsv4'

3). bitbake nfs-utils


Error message:

x86_64-wrs-linux-gcc -m64 -march=nehalem -mtune=generic -mfpmath=sse -msse4.2 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../support/include -I/buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0/recipe-sysroot/usr/include/tirpc -I ../../support/nfsidmap -D_GNU_SOURCE -pipe -Wall -Wextra -Werror=strict-prototypes -Wmissing-prototypes -Werror=missing-declarations -Werror=format=2 -Werror=undef -Werror=missing-include-dirs -Werror=strict-aliasing=2 -Werror=init-self -Werror=implicit-function-declaration -Werror=return-type -Werror=switch -Werror=overflow -Werror=parentheses -Werror=aggregate-return -Werror=unused-result -fno-strict-aliasing -Werror=format-overflow=2 -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=misleading-indentation -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0=/usr/src/debug/nfs-utils/2.3.3-r0 -fdebug-prefix-map=/buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0=/usr/src/debug/nfs-utils/2.3.3-r0 -fdebug-prefix-map=/buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0/recipe-sysroot= -fdebug-prefix-map=/buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0/recipe-sysroot-native= -Wno-error=format-overflow -c -o nfsidmap.o nfsidmap.c
| nfsidmap.c: In function 'main':
| nfsidmap.c:404:4: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
| 404 | xlog_warn(usage, progname);
| | ^~~~~~~~~
| nfsidmap.c:436:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
| 436 | xlog_warn(usage, progname);
| | ^~~~~~~~~
| nfsidmap.c:454:23: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'key_serial_t' \\{aka 'int'} [-Werror=format=]
| 454 | xlog_warn("key: 0x%lx type: %s value: %s timeout %ld",
| | ~~^
| | |
| | long unsigned int
| | %x
| 455 | key, type, value, timeout);
| | ~~~
| | |
| | key_serial_t \\{aka int}
| nfsidmap.c:454:54: error: format '%ld' expects argument of type 'long int', but argument 5 has type 'int' [-Werror=format=]
| 454 | xlog_warn("key: 0x%lx type: %s value: %s timeout %ld",
| | ~~^
| | |
| | long int
| | %d
| 455 | key, type, value, timeout);
| | ~~~~~~~
| | |
| | int
| cc1: some warnings being treated as errors
| make[2]: *** [Makefile:503: nfsidmap.o] Error 1
| make[2]: Leaving directory '/buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0/nfs-utils-2.3.3/utils/nfsidmap'
| make[1]: *** [Makefile:432: all-recursive] Error 1
| make[1]: Leaving directory '/buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0/nfs-utils-2.3.3/utils'
| make: *** [Makefile:456: all-recursive] Error 1
| WARNING: /buildarea/build/tmp-glibc/work/corei7-64-wrs-linux/nfs-utils/2.3.3-r0/temp/run.do_compile.92879:1 exit 1 from 'exit 1'
| 
ERROR: Task (/buildarea/layers/oe-core/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1459 tasks of which 1456 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
 /buildarea/layers/oe-core/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Steps to Reproduce

1)   --dl-layers --template feature/linux-yocto-dev,feature/userspace-next,feature/toolchain-next --distro wrlinux-graphics  --machines intel-x86-64

2)in local.conf

PACKAGECONFIG_append_pn-nfs-utils = ' nfsv4'

3) bitbake nfs-utils
Live chat
Online