D: [iurt_root_command] chroot Installing /home/baz/rpmbuild/SRPMS/stlink-1.8.0-1.mga.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.RPLMDK + umask 022 + cd /home/baz/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/baz/rpmbuild/BUILD + rm -rf stlink-1.8.0 + /usr/lib/rpm/rpmuncompress -x /home/baz/rpmbuild/SOURCES/stlink-1.8.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd stlink-1.8.0 + rm -rf /home/baz/rpmbuild/BUILD/stlink-1.8.0-SPECPARTS + /usr/bin/mkdir -p /home/baz/rpmbuild/BUILD/stlink-1.8.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/baz/rpmbuild/tmp/rpm-tmp.JAe16d + umask 022 + cd /home/baz/rpmbuild/BUILD + cd stlink-1.8.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -Wno-dev -S . -B build -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto' -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DCMAKE_AR=/usr/bin/gcc-ar -DCMAKE_RANLIB=/usr/bin/gcc-ranlib -DCMAKE_NM=/usr/bin/gcc-nm -DSTLINK_UDEV_RULES_DIR=/usr/lib/udev/rules.d -DSTLINK_STATIC_LIB=OFF -- The C compiler identification is GNU 14.0.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Could NOT find Git (missing: GIT_EXECUTABLE) -- Git and/or repository not found. -- Try to detect version from "/home/baz/rpmbuild/BUILD/stlink-1.8.0/.version" file instead... -- Checking for OS_NAME: Linux -- Performing Test C_SUPPORTS_WALL -- Performing Test C_SUPPORTS_WALL - Success -- Performing Test C_SUPPORTS_WEXTRA -- Performing Test C_SUPPORTS_WEXTRA - Success -- Performing Test C_SUPPORTS_WSHADOW -- Performing Test C_SUPPORTS_WSHADOW - Success -- Performing Test C_SUPPORTS_O -- Performing Test C_SUPPORTS_O - Success -- Performing Test C_SUPPORTS_D_FORTIFY_SOURCE_2 -- Performing Test C_SUPPORTS_D_FORTIFY_SOURCE_2 - Success -- Performing Test C_SUPPORTS_FSTRICT_ALIASING -- Performing Test C_SUPPORTS_FSTRICT_ALIASING - Success -- Performing Test C_SUPPORTS_WUNDEF -- Performing Test C_SUPPORTS_WUNDEF - Success -- Performing Test C_SUPPORTS_WFORMAT -- Performing Test C_SUPPORTS_WFORMAT - Success -- Performing Test C_SUPPORTS_WFORMAT_SECURITY -- Performing Test C_SUPPORTS_WFORMAT_SECURITY - Success -- Performing Test C_SUPPORTS_WMAYBE_UNINITIALIZED -- Performing Test C_SUPPORTS_WMAYBE_UNINITIALIZED - Success -- Performing Test C_SUPPORTS_WMISSING_VARIABLE_DECLARATIONS -- Performing Test C_SUPPORTS_WMISSING_VARIABLE_DECLARATIONS - Success -- Performing Test C_SUPPORTS_WSHORTEN_64_TO_32 -- Performing Test C_SUPPORTS_WSHORTEN_64_TO_32 - Failed -- Performing Test C_SUPPORTS_WIMPLICIT_FUNCTION_DECLARATION -- Performing Test C_SUPPORTS_WIMPLICIT_FUNCTION_DECLARATION - Success -- Performing Test C_SUPPORTS_WREDUNDANT_DECLS -- Performing Test C_SUPPORTS_WREDUNDANT_DECLS - Success -- Performing Test C_SUPPORTS_FPIC -- Performing Test C_SUPPORTS_FPIC - Success -- Performing Test C_SUPPORTS_WERROR -- Performing Test C_SUPPORTS_WERROR - Success -- Found libusb: /usr/lib64/libusb-1.0.so -- Looking for __stack_chk_fail in ssp -- Looking for __stack_chk_fail in ssp - not found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for dirent.h -- Looking for dirent.h - found -- STLINK_LIB_SHARED: stlink-shared -- PROJECT_VERSION_MAJOR: 1 -- VERSION: 1.8.0 -- STLINK_LIB_STATIC: stlink-static -- PROJECT_VERSION_MAJOR: 1 -- VERSION: 1.8.0 -- Manpage generation disabled -- Found PkgConfig: /usr/bin/pkg-config (found version "2.2.0") -- Checking for module 'gtk+-3.0' -- Found gtk+-3.0, version 3.24.41 -- Found GTK3: -I/usr/include/gtk-3.0;/usr/include/pango-1.0;/usr/include;/usr/include/cloudproviders;/usr/include/cairo;/usr/include/gdk-pixbuf-2.0;/usr/include/webp;/usr/include/at-spi2-atk/2.0;/usr/include/at-spi-2.0;/usr/include/atk-1.0;/usr/include/dbus-1.0;/usr/lib64/dbus-1.0/include;/usr/include/fribidi;/usr/include/libxml2;/usr/include/pixman-1;/usr/include/harfbuzz;/usr/include/freetype2;/usr/include/libpng16;/usr/include/gio-unix-2.0;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/libmount;/usr/include/uuid;/usr/include/json-c;/usr/include/blkid;/usr/include/sysprof-6, gtk-3;gdk-3;z;pangocairo-1.0;pango-1.0;harfbuzz;atk-1.0;cairo-gobject;cairo;gdk_pixbuf-2.0;gio-2.0;gobject-2.0;glib-2.0 -- Configuring done (2.5s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: BUILD_STATIC_LIBS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELEASE CMAKE_INSTALL_DO_STRIP INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX STLINK_STATIC_LIB SYSCONF_INSTALL_DIR -- Build files have been written to: /home/baz/rpmbuild/BUILD/stlink-1.8.0/build + /usr/bin/cmake --build build -j4 --verbose Change Dir: '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile -j4 /usr/bin/cmake -S/home/baz/rpmbuild/BUILD/stlink-1.8.0 -B/home/baz/rpmbuild/BUILD/stlink-1.8.0/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/baz/rpmbuild/BUILD/stlink-1.8.0/build/CMakeFiles /home/baz/rpmbuild/BUILD/stlink-1.8.0/build//CMakeFiles/progress.marks /usr/bin/gmake -f CMakeFiles/Makefile2 all gmake[1]: Entering directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' /usr/bin/gmake -f CMakeFiles/stlink-shared.dir/build.make CMakeFiles/stlink-shared.dir/depend /usr/bin/gmake -f CMakeFiles/stlink-static.dir/build.make CMakeFiles/stlink-static.dir/depend gmake[2]: Entering directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' cd /home/baz/rpmbuild/BUILD/stlink-1.8.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/baz/rpmbuild/BUILD/stlink-1.8.0 /home/baz/rpmbuild/BUILD/stlink-1.8.0 /home/baz/rpmbuild/BUILD/stlink-1.8.0/build /home/baz/rpmbuild/BUILD/stlink-1.8.0/build /home/baz/rpmbuild/BUILD/stlink-1.8.0/build/CMakeFiles/stlink-shared.dir/DependInfo.cmake "--color=" gmake[2]: Entering directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' cd /home/baz/rpmbuild/BUILD/stlink-1.8.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/baz/rpmbuild/BUILD/stlink-1.8.0 /home/baz/rpmbuild/BUILD/stlink-1.8.0 /home/baz/rpmbuild/BUILD/stlink-1.8.0/build /home/baz/rpmbuild/BUILD/stlink-1.8.0/build /home/baz/rpmbuild/BUILD/stlink-1.8.0/build/CMakeFiles/stlink-static.dir/DependInfo.cmake "--color=" gmake[2]: Leaving directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' gmake[2]: Leaving directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' /usr/bin/gmake -f CMakeFiles/stlink-shared.dir/build.make CMakeFiles/stlink-shared.dir/build /usr/bin/gmake -f CMakeFiles/stlink-static.dir/build.make CMakeFiles/stlink-static.dir/build gmake[2]: Entering directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' gmake[2]: Entering directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' [ 4%] Building C object CMakeFiles/stlink-static.dir/src/stlink-lib/calculate.c.o [ 6%] Building C object CMakeFiles/stlink-shared.dir/src/stlink-lib/chipid.c.o [ 4%] Building C object CMakeFiles/stlink-shared.dir/src/stlink-lib/calculate.c.o [ 8%] Building C object CMakeFiles/stlink-static.dir/src/stlink-lib/chipid.c.o /usr/bin/gcc -DSTLINK_CHIPS_DIR=\"/usr/share/stlink/chips\" -DSTLINK_HAVE_DIRENT_H -DSTLINK_HAVE_SYS_MMAN_H -DSTLINK_HAVE_SYS_TIME_H -DSTLINK_HAVE_UNISTD_H -Dstlink_shared_EXPORTS -I/usr/include/libusb-1.0 -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/build/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-flash -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-info -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-trace -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-util -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto -Wall -Wextra -Wshadow -O -D_FORTIFY_SOURCE=2 -fstrict-aliasing -Wundef -Wformat -Wformat-security -Wmaybe-uninitialized -Wmissing-variable-declarations -Wimplicit-function-declaration -Wredundant-decls -fPIC -Werror -DNDEBUG -std=gnu11 -fPIC -MD -MT CMakeFiles/stlink-shared.dir/src/stlink-lib/calculate.c.o -MF CMakeFiles/stlink-shared.dir/src/stlink-lib/calculate.c.o.d -o CMakeFiles/stlink-shared.dir/src/stlink-lib/calculate.c.o -c /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/calculate.c /usr/bin/gcc -DSTLINK_CHIPS_DIR=\"/usr/share/stlink/chips\" -DSTLINK_HAVE_DIRENT_H -DSTLINK_HAVE_SYS_MMAN_H -DSTLINK_HAVE_SYS_TIME_H -DSTLINK_HAVE_UNISTD_H -Dstlink_shared_EXPORTS -I/usr/include/libusb-1.0 -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/build/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-flash -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-info -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-trace -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-util -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto -Wall -Wextra -Wshadow -O -D_FORTIFY_SOURCE=2 -fstrict-aliasing -Wundef -Wformat -Wformat-security -Wmaybe-uninitialized -Wmissing-variable-declarations -Wimplicit-function-declaration -Wredundant-decls -fPIC -Werror -DNDEBUG -std=gnu11 -fPIC -MD -MT CMakeFiles/stlink-shared.dir/src/stlink-lib/chipid.c.o -MF CMakeFiles/stlink-shared.dir/src/stlink-lib/chipid.c.o.d -o CMakeFiles/stlink-shared.dir/src/stlink-lib/chipid.c.o -c /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/chipid.c /usr/bin/gcc -DSTLINK_CHIPS_DIR=\"/usr/share/stlink/chips\" -DSTLINK_HAVE_DIRENT_H -DSTLINK_HAVE_SYS_MMAN_H -DSTLINK_HAVE_SYS_TIME_H -DSTLINK_HAVE_UNISTD_H -I/usr/include/libusb-1.0 -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/build/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-flash -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-info -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-trace -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-util -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto -Wall -Wextra -Wshadow -O -D_FORTIFY_SOURCE=2 -fstrict-aliasing -Wundef -Wformat -Wformat-security -Wmaybe-uninitialized -Wmissing-variable-declarations -Wimplicit-function-declaration -Wredundant-decls -fPIC -Werror -DNDEBUG -std=gnu11 -MD -MT CMakeFiles/stlink-static.dir/src/stlink-lib/calculate.c.o -MF CMakeFiles/stlink-static.dir/src/stlink-lib/calculate.c.o.d -o CMakeFiles/stlink-static.dir/src/stlink-lib/calculate.c.o -c /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/calculate.c /usr/bin/gcc -DSTLINK_CHIPS_DIR=\"/usr/share/stlink/chips\" -DSTLINK_HAVE_DIRENT_H -DSTLINK_HAVE_SYS_MMAN_H -DSTLINK_HAVE_SYS_TIME_H -DSTLINK_HAVE_UNISTD_H -I/usr/include/libusb-1.0 -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/build/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-flash -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-info -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-trace -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-util -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto -Wall -Wextra -Wshadow -O -D_FORTIFY_SOURCE=2 -fstrict-aliasing -Wundef -Wformat -Wformat-security -Wmaybe-uninitialized -Wmissing-variable-declarations -Wimplicit-function-declaration -Wredundant-decls -fPIC -Werror -DNDEBUG -std=gnu11 -MD -MT CMakeFiles/stlink-static.dir/src/stlink-lib/chipid.c.o -MF CMakeFiles/stlink-static.dir/src/stlink-lib/chipid.c.o.d -o CMakeFiles/stlink-static.dir/src/stlink-lib/chipid.c.o -c /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/chipid.c [ 10%] Building C object CMakeFiles/stlink-static.dir/src/stlink-lib/common.c.o /usr/bin/gcc -DSTLINK_CHIPS_DIR=\"/usr/share/stlink/chips\" -DSTLINK_HAVE_DIRENT_H -DSTLINK_HAVE_SYS_MMAN_H -DSTLINK_HAVE_SYS_TIME_H -DSTLINK_HAVE_UNISTD_H -I/usr/include/libusb-1.0 -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/build/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-flash -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-info -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-trace -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-util -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto -Wall -Wextra -Wshadow -O -D_FORTIFY_SOURCE=2 -fstrict-aliasing -Wundef -Wformat -Wformat-security -Wmaybe-uninitialized -Wmissing-variable-declarations -Wimplicit-function-declaration -Wredundant-decls -fPIC -Werror -DNDEBUG -std=gnu11 -MD -MT CMakeFiles/stlink-static.dir/src/stlink-lib/common.c.o -MF CMakeFiles/stlink-static.dir/src/stlink-lib/common.c.o.d -o CMakeFiles/stlink-static.dir/src/stlink-lib/common.c.o -c /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/common.c /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/chipid.c: In function 'process_chipfile': /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/chipid.c: In function 'process_chipfile': /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/chipid.c:68:22: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 68 | ts = calloc(sizeof(struct stlink_chipid_params), 1); | ^~~~~~ /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/chipid.c:68:22: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 68 | ts = calloc(sizeof(struct stlink_chipid_params), 1); | ^~~~~~ /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/chipid.c:68:22: note: earlier argument should specify number of elements, later size of each element /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/chipid.c:68:22: note: earlier argument should specify number of elements, later size of each element [ 12%] Building C object CMakeFiles/stlink-static.dir/src/stlink-lib/common_flash.c.o /usr/bin/gcc -DSTLINK_CHIPS_DIR=\"/usr/share/stlink/chips\" -DSTLINK_HAVE_DIRENT_H -DSTLINK_HAVE_SYS_MMAN_H -DSTLINK_HAVE_SYS_TIME_H -DSTLINK_HAVE_UNISTD_H -I/usr/include/libusb-1.0 -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/build/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-flash -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-info -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-trace -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-util -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto -Wall -Wextra -Wshadow -O -D_FORTIFY_SOURCE=2 -fstrict-aliasing -Wundef -Wformat -Wformat-security -Wmaybe-uninitialized -Wmissing-variable-declarations -Wimplicit-function-declaration -Wredundant-decls -fPIC -Werror -DNDEBUG -std=gnu11 -MD -MT CMakeFiles/stlink-static.dir/src/stlink-lib/common_flash.c.o -MF CMakeFiles/stlink-static.dir/src/stlink-lib/common_flash.c.o.d -o CMakeFiles/stlink-static.dir/src/stlink-lib/common_flash.c.o -c /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/common_flash.c cc1: all warnings being treated as errors cc1: all warnings being treated as errors gmake[2]: *** [CMakeFiles/stlink-static.dir/build.make:93: CMakeFiles/stlink-static.dir/src/stlink-lib/chipid.c.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[2]: *** [CMakeFiles/stlink-shared.dir/build.make:93: CMakeFiles/stlink-shared.dir/src/stlink-lib/chipid.c.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... [ 14%] Building C object CMakeFiles/stlink-shared.dir/src/stlink-lib/common_flash.c.o /usr/bin/gcc -DSTLINK_CHIPS_DIR=\"/usr/share/stlink/chips\" -DSTLINK_HAVE_DIRENT_H -DSTLINK_HAVE_SYS_MMAN_H -DSTLINK_HAVE_SYS_TIME_H -DSTLINK_HAVE_UNISTD_H -Dstlink_shared_EXPORTS -I/usr/include/libusb-1.0 -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/build/inc -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-flash -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-info -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-trace -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/st-util -I/home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -flto -Wall -Wextra -Wshadow -O -D_FORTIFY_SOURCE=2 -fstrict-aliasing -Wundef -Wformat -Wformat-security -Wmaybe-uninitialized -Wmissing-variable-declarations -Wimplicit-function-declaration -Wredundant-decls -fPIC -Werror -DNDEBUG -std=gnu11 -fPIC -MD -MT CMakeFiles/stlink-shared.dir/src/stlink-lib/common_flash.c.o -MF CMakeFiles/stlink-shared.dir/src/stlink-lib/common_flash.c.o.d -o CMakeFiles/stlink-shared.dir/src/stlink-lib/common_flash.c.o -c /home/baz/rpmbuild/BUILD/stlink-1.8.0/src/stlink-lib/common_flash.c gmake[2]: Leaving directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' gmake[1]: *** [CMakeFiles/Makefile2:267: CMakeFiles/stlink-static.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... gmake[2]: Leaving directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' gmake[1]: *** [CMakeFiles/Makefile2:241: CMakeFiles/stlink-shared.dir/all] Error 2 gmake[1]: Leaving directory '/home/baz/rpmbuild/BUILD/stlink-1.8.0/build' gmake: *** [Makefile:159: all] Error 2 error: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.JAe16d (%build) RPM build errors: Bad exit status from /home/baz/rpmbuild/tmp/rpm-tmp.JAe16d (%build) I: [iurt_root_command] ERROR: chroot