Skip to content

Instantly share code, notes, and snippets.

@hkjn
Created September 9, 2018 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkjn/054c48b721ee8cfc346b6adb70bf8a79 to your computer and use it in GitHub Desktop.
Save hkjn/054c48b721ee8cfc346b6adb70bf8a79 to your computer and use it in GitHub Desktop.
citadel-kernel str_error_r compile error
DEBUG: Executing shell function do_compile
NOTE: KBUILD_BUILD_TIMESTAMP: Fri Nov 24 07:33:43 UTC 2017
NOTE: make -j 4 HOSTCC=gcc -isystem/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot-native/usr/lib -L/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc -E bzImage CC=x86_64-oe-linux-gcc -fuse-ld=bfd -fdebug-prefix-map=/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0=/usr/src/debug/citadel-kernel/4.9.65-r0 -fdebug-prefix-map=/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot= -fdebug-prefix-map=/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/builder/citadel/build/tmp-glibc/work-shared/intel-corei7-64/kernel-source=/usr/src/kernel -ffile-prefix-map=/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/linux-4.9.65=/kernel-source/ LD=x86_64-oe-linux-ld.bfd
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
DESCEND objtool
CC /home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/str_error_r.o
../lib/str_error_r.c: In function 'str_error_r':
CC /home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/pager.o
../lib/str_error_r.c:24:3: error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d", errnum, buf, buflen, err);
^~~~~~~~
cc1: all warnings being treated as errors
mv: cannot stat '/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/.str_error_r.o.tmp': No such file or directory
make[5]: *** [Build:18: /home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/str_error_r.o] Error 1
make[4]: *** [Makefile:40: /home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/objtool-in.o] Error 2
make[4]: *** Waiting for unfinished jobs....
pager.c: In function 'pager_preexec':
pager.c:35:12: error: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
select(1, &in, NULL, &in, NULL);
^~~ ~~~
Using /home/builder/citadel/build/tmp-glibc/work-shared/intel-corei7-64/kernel-source as source for kernel
cc1: all warnings being treated as errors
mv: cannot stat '/home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/.pager.o.tmp': No such file or directory
make[6]: *** [/home/builder/citadel/build/tmp-glibc/work-shared/intel-corei7-64/kernel-source/tools/build/Makefile.build:91: /home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/pager.o] Error 1
make[5]: *** [Makefile:45: /home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/libsubcmd-in.o] Error 2
make[4]: *** [Makefile:59: /home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/build/tools/objtool/libsubcmd.a] Error 2
make[3]: *** [Makefile:60: objtool] Error 2
make[2]: *** [/home/builder/citadel/build/tmp-glibc/work-shared/intel-corei7-64/kernel-source/Makefile:1622: tools/objtool] Error 2
make[1]: *** [Makefile:150: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/builder/citadel/build/tmp-glibc/work/intel_corei7_64-oe-linux/citadel-kernel/4.9.65-r0/temp/log.do_compile.92)
@plugwash
Copy link

plugwash commented Nov 8, 2018

I ran across this error in another context, after some digging the fix seems to be torvalds/linux@ad343a9#diff-89b6591452f7b3e17de375ff48d012c8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment