DEBUG: Executing shell function do_compile
NOTE: make -j 16 -l 75
Making all in doc
make[1]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/doc'
Making all in xsl
make[2]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/doc/xsl'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/doc/xsl'
make[2]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/doc'
touch manual.html
make[2]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/doc'
make[1]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/doc'
Making all in src
make[1]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src'
Making all in drivers
make[2]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src/drivers'
make[3]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src/drivers'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src/drivers'
make[2]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src/drivers'
Making all in tests
make[2]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src/tests'
Making all in cpu
make[3]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src/tests/cpu'
x86_64-poky-linux-gcc -m64 -march=x86-64-v3 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../../config -I../../../src -I/usr/include/luajit-2.1 -D__x86_64__ -I/usr/include -D_GNU_SOURCE -Wall -Wextra -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wno-format-zero-length -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wcast-align -Wvla -O2 -funroll-loops -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20=/usr/src/debug/sysbench/1.0.20 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20=/usr/src/debug/sysbench/1.0.20 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/recipe-sysroot-native= -pipe -c -o libsbcpu_a-sb_cpu.o `test -f 'sb_cpu.c' || echo './'`sb_cpu.c
cc1: error: include location "/usr/include/luajit-2.1" is unsafe for cross-compilation [-Werror=poison-system-directories]
cc1: error: include location "/usr/include" is unsafe for cross-compilation [-Werror=poison-system-directories]
In file included from ../../../src/sysbench.h:23,
from sb_cpu.c:32:
/usr/include/stdio.h:205:27: error: 'L_tmpnam' undeclared here (not in a function)
205 | extern char *tmpnam (char[L_tmpnam]) __THROW __wur;
| ^~~~~~~~
/usr/include/stdio.h:210:33: error: 'L_tmpnam' undeclared here (not in a function); did you mean 'tmpnam'?
210 | extern char *tmpnam_r (char __s[L_tmpnam]) __THROW __wur;
| ^~~~~~~~
| tmpnam
In file included from /usr/include/features.h:489,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/recipe-sysroot/usr/include/bits/libc-header-start.h:33,
from /usr/include/math.h:27,
from sb_cpu.c:27:
/usr/include/stdio.h:434:24: warning: redundant redeclaration of 'fscanf' [-Wredundant-decls]
434 | extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
| ^~~~~~
/usr/include/stdio.h:415:12: note: previous declaration of 'fscanf' with type 'int(FILE *, const char *, ...)'
415 | extern int fscanf (FILE *__restrict __stream,
| ^~~~~~
/usr/include/stdio.h:437:24: warning: redundant redeclaration of 'scanf' [-Wredundant-decls]
437 | extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
| ^~~~~
/usr/include/stdio.h:421:12: note: previous declaration of 'scanf' with type 'int(const char *, ...)'
421 | extern int scanf (const char *__restrict __format, ...) __wur;
| ^~~~~
/usr/include/stdio.h:439:28: warning: redundant redeclaration of 'sscanf' [-Wredundant-decls]
439 | extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
| ^~~~~~
/usr/include/stdio.h:423:12: note: previous declaration of 'sscanf' with type 'int(const char *, const char *, ...)'
423 | extern int sscanf (const char *__restrict __s,
| ^~~~~~
/usr/include/stdio.h:479:24: warning: redundant redeclaration of 'vfscanf' [-Wredundant-decls]
479 | extern int __REDIRECT (vfscanf,
| ^~~~~~~
/usr/include/stdio.h:459:12: note: previous declaration of 'vfscanf' with type 'int(FILE *, const char *, __va_list_tag *)'
459 | extern int vfscanf (FILE *__restrict __s, const char *__restrict __format,
| ^~~~~~~
/usr/include/stdio.h:484:24: warning: redundant redeclaration of 'vscanf' [-Wredundant-decls]
484 | extern int __REDIRECT (vscanf, (const char *__restrict __format,
| ^~~~~~
/usr/include/stdio.h:467:12: note: previous declaration of 'vscanf' with type 'int(const char *, __va_list_tag *)'
467 | extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg)
| ^~~~~~
/usr/include/stdio.h:487:28: warning: redundant redeclaration of 'vsscanf' [-Wredundant-decls]
487 | extern int __REDIRECT_NTH (vsscanf,
| ^~~~~~~
/usr/include/stdio.h:471:12: note: previous declaration of 'vsscanf' with type 'int(const char *, const char *, __va_list_tag *)'
471 | extern int vsscanf (const char *__restrict __s,
| ^~~~~~~
In file included from ../../../src/sysbench.h:24:
/usr/include/stdlib.h:582:14: warning: redundant redeclaration of 'reallocarray' [-Wredundant-decls]
582 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
| ^~~~~~~~~~~~
/usr/include/stdlib.h:576:14: note: previous declaration of 'reallocarray' with type 'void *(void *, size_t, size_t)' {aka 'void *(void *, long unsigned int, long unsigned int)'}
576 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
| ^~~~~~~~~~~~
/usr/include/pthread.h:479:28: warning: redundant redeclaration of 'pthread_yield' [-Wredundant-decls]
479 | extern int __REDIRECT_NTH (pthread_yield, (void), sched_yield)
| ^~~~~~~~~~~~~
In file included from ../../../src/sysbench.h:33:
/usr/include/pthread.h:477:12: note: previous declaration of 'pthread_yield' with type 'int(void)'
477 | extern int pthread_yield (void) __THROW;
| ^~~~~~~~~~~~~
sb_cpu.c: In function 'cpu_execute_event':
sb_cpu.c:105:22: warning: variable 'n' set but not used [-Wunused-but-set-variable=]
105 | unsigned long long n=0;
| ^
cc1: some warnings being treated as errors
make[3]: *** [Makefile:468: libsbcpu_a-sb_cpu.o] Error 1
make[3]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src/tests/cpu'
make[2]: *** [Makefile:433: all-recursive] Error 1
make[2]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src/tests'
make[1]: *** [Makefile:621: all-recursive] Error 1
make[1]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/sysbench/1.0.20/sources/sysbench-1.0.20/src'
make: *** [Makefile:507: all-recursive] Error 1
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.