DEBUG: Executing shell function do_compile
NOTE: make -j 16 -l 75
make all-am
make[1]: Entering directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/fatresize/1.1.0-3/build'
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/fatresize/1.1.0-3/recipe-sysroot -DHAVE_CONFIG_H -I. -I../sources/fatresize-1.1.0-3 -I/usr/include -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/fatresize/1.1.0-3/sources/fatresize-1.1.0-3=/usr/src/debug/fatresize/1.1.0-3 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/fatresize/1.1.0-3/build=/usr/src/debug/fatresize/1.1.0-3 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/fatresize/1.1.0-3/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/fatresize/1.1.0-3/recipe-sysroot-native= -pipe -c -o fatresize-fatresize.o `test -f 'fatresize.c' || echo '../sources/fatresize-1.1.0-3/'`fatresize.c
cc1: error: include location "/usr/include" is unsafe for cross-compilation [-Werror=poison-system-directories]
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/fatresize/1.1.0-3/recipe-sysroot/usr/include/parted/unit.h:33,
from TOPDIR/tmp/work/x86-64-v3-poky-linux/fatresize/1.1.0-3/recipe-sysroot/usr/include/parted/parted.h:41,
from ../sources/fatresize-1.1.0-3/fatresize.c:31:
/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
cc1: some warnings being treated as errors
make[1]: *** [Makefile:461: fatresize-fatresize.o] Error 1
make[1]: Leaving directory 'TOPDIR/tmp/work/x86-64-v3-poky-linux/fatresize/1.1.0-3/build'
make: *** [Makefile:329: all] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.