D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/gdisk-1.0.8-1.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2xtGam + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf gptfdisk-1.0.8 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/gptfdisk-1.0.8.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gptfdisk-1.0.8 + /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/pterjan/rpmbuild/tmp/rpm-tmp.eRY1Ir + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd gptfdisk-1.0.8 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make 'CXX=g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o crc32.o crc32.cc crc32.cc: In function 'uint32_t chksum_crc32(unsigned char*, unsigned int)': crc32.cc:34:27: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 34 | register unsigned long crc; | ^~~ g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o support.o support.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o guid.o guid.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o gptpart.o gptpart.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o mbrpart.o mbrpart.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o basicmbr.o basicmbr.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o mbr.o mbr.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o gpt.o gpt.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o bsd.o bsd.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o parttypes.o parttypes.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o attributes.o attributes.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o diskio.o diskio.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o diskio-unix.o diskio-unix.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o cgdisk.o cgdisk.cc g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -D_FILE_OFFSET_BITS=64 -c -o gptcurses.o gptcurses.cc gptcurses.cc: In member function 'Space* GPTDataCurses::ShowSpace(int, int)': gptcurses.cc:242:16: error: format not a string literal and no format arguments [-Werror=format-security] 242 | printw(BytesToIeee((space->lastLBA - space->firstLBA + 1), blockSize).c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gptcurses.cc:249:16: error: format not a string literal and no format arguments [-Werror=format-security] 249 | printw(BytesToIeee((space->lastLBA - space->firstLBA + 1), blockSize).c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gptcurses.cc:251:16: error: format not a string literal and no format arguments [-Werror=format-security] 251 | printw(space->origPart->GetTypeName().c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gptcurses.cc:257:16: error: format not a string literal and no format arguments [-Werror=format-security] 257 | printw(space->origPart->GetDescription().c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gptcurses.cc: In member function 'int GPTDataCurses::DisplayParts(int)': gptcurses.cc:274:10: error: format not a string literal and no format arguments [-Werror=format-security] 274 | printw(theLine.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ gptcurses.cc:277:10: error: format not a string literal and no format arguments [-Werror=format-security] 277 | printw(theLine.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ gptcurses.cc: In member function 'void GPTDataCurses::ShowInfo(int)': gptcurses.cc:336:29: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 336 | printw("First sector: %lld (at %s)\n", partitions[partNum].GetFirstLBA(), | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:338:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 338 | printw("Last sector: %lld (at %s)\n", partitions[partNum].GetLastLBA(), | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:341:31: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 341 | printw("Partition size: %lld sectors (%s)\n", size, BytesToIeee(size, blockSize).c_str()); | ~~~^ ~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:342:33: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 342 | printw("Attribute flags: %016x\n", partitions[partNum].GetAttributes().GetAttributes()); | ~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | unsigned int uint64_t {aka long unsigned int} | %016lx gptcurses.cc: In member function 'void GPTDataCurses::MakeNewPart()': gptcurses.cc:444:32: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 444 | printw("First sector (%lld-%lld, default = %lld): ", newFirstLBA, currentSpace->lastLBA, newFirstLBA); | ~~~^ ~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:444:37: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 444 | printw("First sector (%lld-%lld, default = %lld): ", newFirstLBA, currentSpace->lastLBA, newFirstLBA); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:444:53: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 444 | printw("First sector (%lld-%lld, default = %lld): ", newFirstLBA, currentSpace->lastLBA, newFirstLBA); | ~~~^ ~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:455:56: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 455 | printw("Size in sectors or {KMGTP} (default = %lld): ", size); | ~~~^ ~~~~ | | | | | uint64_t {aka long unsigned int} | long long int | %ld gptcurses.cc: In member function 'void GPTDataCurses::DisplayOptions(char)': gptcurses.cc:639:13: error: format not a string literal and no format arguments [-Werror=format-security] 639 | printw(optionDesc.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~ gptcurses.cc: In member function 'void GPTDataCurses::DrawMenu()': gptcurses.cc:751:10: error: format not a string literal and no format arguments [-Werror=format-security] 751 | printw(title.c_str()); | ~~~~~~^~~~~~~~~~~~~~~ gptcurses.cc:753:10: error: format not a string literal and no format arguments [-Werror=format-security] 753 | printw(drive.c_str()); | ~~~~~~^~~~~~~~~~~~~~~ gptcurses.cc:755:10: error: format not a string literal and no format arguments [-Werror=format-security] 755 | printw(size.str().c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~ gptcurses.cc: In function 'void Report(std::string)': gptcurses.cc:805:10: error: format not a string literal and no format arguments [-Werror=format-security] 805 | printw(theText.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ cc1plus: some warnings being treated as errors make: *** [: gptcurses.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.eRY1Ir (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.eRY1Ir (%build) I: [iurt_root_command] ERROR: chroot