DEBUG: Executing shell function do_compile
NOTE: make -j 11 STRIP=echo LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now
make -j4 hdparm
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
make[1]: Entering directory 'TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/hdparm-9.64'
riscv32-yoe-linux-gcc -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot-native= -c -o hdparm.o hdparm.c
riscv32-yoe-linux-gcc -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot-native= -c -o identify.o identify.c
riscv32-yoe-linux-gcc -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot-native= -c -o sgio.o sgio.c
riscv32-yoe-linux-gcc -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0=/usr/src/debug/hdparm/9.64-r0 -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot-native= -c -o sysfs.o sysfs.c
In file included from TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/unistd.h:25,
from hdparm.c:9:
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/fs.h:19,
from hdparm.c:28:
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:95:6: error: redeclaration of 'enum fsconfig_command'
95 | enum fsconfig_command {
| ^~~~~~~~~~~~~~~~
In file included from hdparm.c:24:
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:189:6: note: originally defined here
189 | enum fsconfig_command
| ^~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:96:9: error: redeclaration of enumerator 'FSCONFIG_SET_FLAG'
96 | FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no value */
| ^~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:191:3: note: previous definition of 'FSCONFIG_SET_FLAG' with type 'enum fsconfig_command'
191 | FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no value */
| ^~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:97:9: error: redeclaration of enumerator 'FSCONFIG_SET_STRING'
97 | FSCONFIG_SET_STRING = 1, /* Set parameter, supplying a string value */
| ^~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:193:3: note: previous definition of 'FSCONFIG_SET_STRING' with type 'enum fsconfig_command'
193 | FSCONFIG_SET_STRING = 1, /* Set parameter, supplying a string value */
| ^~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:98:9: error: redeclaration of enumerator 'FSCONFIG_SET_BINARY'
98 | FSCONFIG_SET_BINARY = 2, /* Set parameter, supplying a binary blob value */
| ^~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:195:3: note: previous definition of 'FSCONFIG_SET_BINARY' with type 'enum fsconfig_command'
195 | FSCONFIG_SET_BINARY = 2, /* Set parameter, supplying a binary blob value */
| ^~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:99:9: error: redeclaration of enumerator 'FSCONFIG_SET_PATH'
99 | FSCONFIG_SET_PATH = 3, /* Set parameter, supplying an object by path */
| ^~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:197:3: note: previous definition of 'FSCONFIG_SET_PATH' with type 'enum fsconfig_command'
197 | FSCONFIG_SET_PATH = 3, /* Set parameter, supplying an object by path */
| ^~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:100:9: error: redeclaration of enumerator 'FSCONFIG_SET_PATH_EMPTY'
100 | FSCONFIG_SET_PATH_EMPTY = 4, /* Set parameter, supplying an object by (empty) path */
| ^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:199:3: note: previous definition of 'FSCONFIG_SET_PATH_EMPTY' with type 'enum fsconfig_command'
199 | FSCONFIG_SET_PATH_EMPTY = 4, /* Set parameter, supplying an object by (empty) path */
| ^~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:101:9: error: redeclaration of enumerator 'FSCONFIG_SET_FD'
101 | FSCONFIG_SET_FD = 5, /* Set parameter, supplying an object by fd */
| ^~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:201:3: note: previous definition of 'FSCONFIG_SET_FD' with type 'enum fsconfig_command'
201 | FSCONFIG_SET_FD = 5, /* Set parameter, supplying an object by fd */
| ^~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:102:9: error: redeclaration of enumerator 'FSCONFIG_CMD_CREATE'
102 | FSCONFIG_CMD_CREATE = 6, /* Invoke superblock creation */
| ^~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:203:3: note: previous definition of 'FSCONFIG_CMD_CREATE' with type 'enum fsconfig_command'
203 | FSCONFIG_CMD_CREATE = 6, /* Invoke superblock creation */
| ^~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:103:9: error: redeclaration of enumerator 'FSCONFIG_CMD_RECONFIGURE'
103 | FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
| ^~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:205:3: note: previous definition of 'FSCONFIG_CMD_RECONFIGURE' with type 'enum fsconfig_command'
205 | FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
| ^~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/linux/mount.h:129:8: error: redefinition of 'struct mount_attr'
129 | struct mount_attr {
| ^~~~~~~~~~
TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/recipe-sysroot/usr/include/sys/mount.h:161:8: note: originally defined here
161 | struct mount_attr
| ^~~~~~~~~~
hdparm.c: In function 'do_dco_setmax_cmd':
hdparm.c:1284:33: warning: cast increases required alignment of target type [-Wcast-align]
1284 | __u64 *maxlba = (__u64 *) &dco[3];
| ^
make[1]: *** [<builtin>: hdparm.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory 'TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/hdparm-9.64'
make: *** [Makefile:26: all] Error 2
ERROR: oe_runmake failed
WARNING: TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/temp/run.do_compile.1808615:180 exit 1 from 'exit 1'
WARNING: Backtrace (BB generated script):
#1: bbfatal_log, TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/temp/run.do_compile.1808615, line 180
#2: die, TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/temp/run.do_compile.1808615, line 165
#3: oe_runmake, TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/temp/run.do_compile.1808615, line 170
#4: base_do_compile, TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/temp/run.do_compile.1808615, line 148
#5: do_compile, TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/temp/run.do_compile.1808615, line 142
#6: main, TOPDIR/build/tmp/work/riscv32-yoe-linux/hdparm/9.64-r0/temp/run.do_compile.1808615, line 190