DEBUG: Executing shell function do_compile
NOTE: VERBOSE=1 cmake --build TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build --target all --
Change Dir: 'TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build'
Run Build Command(s): ninja -v -j 16 all
[1/6] TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot -DGIT_VERSION=\"1.0.5\" -DREAD_BLK_SIZE=16384 -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/bmap-writer/1.0.5/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++11 -Wformat -Wformat-security -Wconversion -Wsign-conversion -pedantic -Werror -fstack-protector-strong -fPIE -MD -MT CMakeFiles/bmap-writer.dir/src/sha256.cpp.o -MF CMakeFiles/bmap-writer.dir/src/sha256.cpp.o.d -o CMakeFiles/bmap-writer.dir/src/sha256.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5/src/sha256.cpp
[2/6] TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot -DGIT_VERSION=\"1.0.5\" -DREAD_BLK_SIZE=16384 -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/bmap-writer/1.0.5/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++11 -Wformat -Wformat-security -Wconversion -Wsign-conversion -pedantic -Werror -fstack-protector-strong -fPIE -MD -MT CMakeFiles/bmap-writer.dir/src/main.cpp.o -MF CMakeFiles/bmap-writer.dir/src/main.cpp.o.d -o CMakeFiles/bmap-writer.dir/src/main.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5/src/main.cpp
[3/6] TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot -DGIT_VERSION=\"1.0.5\" -DREAD_BLK_SIZE=16384 -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/bmap-writer/1.0.5/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++11 -Wformat -Wformat-security -Wconversion -Wsign-conversion -pedantic -Werror -fstack-protector-strong -fPIE -MD -MT CMakeFiles/bmap-writer.dir/src/device.cpp.o -MF CMakeFiles/bmap-writer.dir/src/device.cpp.o.d -o CMakeFiles/bmap-writer.dir/src/device.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5/src/device.cpp
FAILED: [code=1] CMakeFiles/bmap-writer.dir/src/device.cpp.o
TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot -DGIT_VERSION=\"1.0.5\" -DREAD_BLK_SIZE=16384 -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/bmap-writer/1.0.5/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++11 -Wformat -Wformat-security -Wconversion -Wsign-conversion -pedantic -Werror -fstack-protector-strong -fPIE -MD -MT CMakeFiles/bmap-writer.dir/src/device.cpp.o -MF CMakeFiles/bmap-writer.dir/src/device.cpp.o.d -o CMakeFiles/bmap-writer.dir/src/device.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5/src/device.cpp
TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5/src/device.cpp: In function 'uint64_t getDeviceSize(int)':
TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5/src/device.cpp:163:50: error: unsigned conversion from 'int' to 'long unsigned int' changes value from '-2146954638' to '18446744071562596978' [-Werror=sign-conversion]
163 | if (S_ISBLK(statbuf.st_mode) && (::ioctl(fd, static_cast<int>(BLKGETSIZE64), &size) != 0)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[4/6] TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot -DGIT_VERSION=\"1.0.5\" -DREAD_BLK_SIZE=16384 -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/bmap-writer/1.0.5/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++11 -Wformat -Wformat-security -Wconversion -Wsign-conversion -pedantic -Werror -fstack-protector-strong -fPIE -MD -MT CMakeFiles/bmap-writer.dir/src/image_writer.cpp.o -MF CMakeFiles/bmap-writer.dir/src/image_writer.cpp.o.d -o CMakeFiles/bmap-writer.dir/src/image_writer.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5/src/image_writer.cpp
[5/6] TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g++ --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot -DGIT_VERSION=\"1.0.5\" -DREAD_BLK_SIZE=16384 -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/bmap-writer/1.0.5/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build=/usr/src/debug/bmap-writer/1.0.5 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++11 -Wformat -Wformat-security -Wconversion -Wsign-conversion -pedantic -Werror -fstack-protector-strong -fPIE -MD -MT CMakeFiles/bmap-writer.dir/src/bmap.cpp.o -MF CMakeFiles/bmap-writer.dir/src/bmap.cpp.o.d -o CMakeFiles/bmap-writer.dir/src/bmap.cpp.o -c TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/sources/bmap-writer-1.0.5/src/bmap.cpp
ninja: build stopped: subcommand failed.
WARNING: TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/temp/run.do_compile.2403946:152 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build 'TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
WARNING: Backtrace (BB generated script):
#1: cmake_runcmake_build, TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/temp/run.do_compile.2403946, line 152
#2: cmake_do_compile, TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/temp/run.do_compile.2403946, line 146
#3: do_compile, TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/temp/run.do_compile.2403946, line 141
#4: main, TOPDIR/tmp/work/x86-64-v3-poky-linux/bmap-writer/1.0.5/temp/run.do_compile.2403946, line 165