Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/0xFFFF.spec'], chrootPath='/var/lib/mock/f29-build-29451-15938/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/0xFFFF.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/0xFFFF-0.3.9-15.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/0xFFFF.spec'], chrootPath='/var/lib/mock/f29-build-29451-15938/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/0xFFFF.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eq2tjf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf 0xFFFF-0.3.9 + /usr/bin/gzip -dc /builddir/build/SOURCES/0xFFFF-0.3.9.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd 0xFFFF-0.3.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i '/^LDFLAGS/d' config.mk + sed -i 's|^CFLAGS+=.*|CFLAGS+=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection|' config.mk + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.CSbIxq + umask 022 + cd /builddir/build/BUILD + cd 0xFFFF-0.3.9 + make -C src -j4 make: Entering directory '/builddir/build/BUILD/0xFFFF-0.3.9/src' cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o main.o main.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o fiasco.o fiasco.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o hexdump.o hexdump.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o dump.o dump.c BUILDSTDERR: fiasco.c: In function 'openfiasco': BUILDSTDERR: fiasco.c:48:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: read(header.fd, buf, 5); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:60:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: read(header.fd, buf, namelen); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c: In function 'fiasco_data_read': BUILDSTDERR: fiasco.c:134:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: read(header->fd, header->data, header->size); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c: In function 'fiasco_new': BUILDSTDERR: fiasco.c:147:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, "\xb4\x00\x00\x00\x14\x00\x00\x00\x01\xe8\x0e", 11); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:148:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, "OSSO UART+USB", 14); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c: In function 'fiasco_add': BUILDSTDERR: fiasco.c:199:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, "T\x01\x2e\x19\x01\x01\x00", 7); // header (old piece format) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:203:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, &hash, 2); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:214:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, bname, 12); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:216:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, &sz, 4); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:219:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, "\x00\x00\x00\x00\x31", 5); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:221:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, &len, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:222:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, version, len); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:223:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, "\x00\x9b", 2); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:225:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, "\x00\x00\x00\x00\x9b", 5); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: fiasco.c:232:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(fd, buf, ret); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c: In function 'rf_extract': BUILDSTDERR: dump.c:40:24: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off_t' {aka 'long int'} [-Wformat=] BUILDSTDERR: printf("Bad range %lld - %lld for %s\n", from, to, file); BUILDSTDERR: ~~~^ ~~~~ BUILDSTDERR: %ld BUILDSTDERR: dump.c:40:31: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] BUILDSTDERR: printf("Bad range %lld - %lld for %s\n", from, to, file); BUILDSTDERR: ~~~^ ~~ BUILDSTDERR: %ld BUILDSTDERR: dump.c:58:19: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] BUILDSTDERR: printf("\r%s: %lld bytes dumped from %s\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %ld BUILDSTDERR: file, to-from, dev); BUILDSTDERR: ~~~~~~~ BUILDSTDERR: dump.c: In function 'dump_config': BUILDSTDERR: dump.c:535:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: if (j==i) break; i = j; BUILDSTDERR: ^~ BUILDSTDERR: dump.c:535:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: if (j==i) break; i = j; BUILDSTDERR: ^ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o flash.o flash.c BUILDSTDERR: dump.c: In function 'nanddump': BUILDSTDERR: dump.c:385:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(ofd, readbuf, bs); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c:406:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(ofd, oobbuf, meminfo.oobsize); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c: In function 'rf_strip': BUILDSTDERR: dump.c:450:11: warning: ignoring return value of 'truncate', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: if (eof) truncate(file, eof); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c: In function 'is_n800': BUILDSTDERR: dump.c:466:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fread(buf, 4, 1,fd); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c: In function 'dump_config': BUILDSTDERR: dump.c:501:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: read(fd, buf, 4); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c:530:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1, buf,4); BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: dump.c: In function 'reverse_extract_pieces': BUILDSTDERR: dump.c:545:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: chdir(dir); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: dump.c:560:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: read(0, &reply, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c:567:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: read(0, &reply, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: main.c: In function 'show_usage': BUILDSTDERR: main.c:100:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: for(i=0;pieces[i];i++) printf("%s ", pieces[i]); printf("\n"); BUILDSTDERR: ^~~ BUILDSTDERR: main.c:100:51: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' BUILDSTDERR: for(i=0;pieces[i];i++) printf("%s ", pieces[i]); printf("\n"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: main.c: In function 'main': BUILDSTDERR: main.c:332:4: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: chdir(reverseto); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c: In function 'check_badblocks': BUILDSTDERR: dump.c:213:5: warning: 'stat1.failed' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: fprintf(stderr, "ECC: %d uncorrectable bitflip(s)" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " at offset 0x%08lx\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: stat2.failed - stat1.failed, i); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: dump.c:217:5: warning: 'stat1.corrected' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: fprintf(stderr, "ECC: %d corrected bitflip(s) at" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " offset 0x%08lx\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: stat2.corrected - stat1.corrected, i); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o serial.o serial.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o qmode.o qmode.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o hash.o hash.c BUILDSTDERR: serial.c: In function 'console': BUILDSTDERR: serial.c:66:4: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 512, stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: serial.c:79:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1, &buf, 1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: qmode.c: In function 'process_message': BUILDSTDERR: qmode.c:44:8: warning: implicit declaration of function 'strdup'; did you mean 'strtouq'? [-Wimplicit-function-declaration] BUILDSTDERR: str = strdup(msg); BUILDSTDERR: ^~~~~~ BUILDSTDERR: strtouq BUILDSTDERR: qmode.c:44:6: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: str = strdup(msg); BUILDSTDERR: ^ BUILDSTDERR: qmode.c:45:8: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] BUILDSTDERR: arg = strchr(str, ':'); BUILDSTDERR: ^~~~~~ BUILDSTDERR: qmode.c:45:8: warning: incompatible implicit declaration of built-in function 'strchr' BUILDSTDERR: qmode.c:45:8: note: include '' or provide a declaration of 'strchr' BUILDSTDERR: qmode.c:23:1: BUILDSTDERR: +#include BUILDSTDERR: #if HAVE_SQUEUE BUILDSTDERR: qmode.c:45:8: BUILDSTDERR: arg = strchr(str, ':'); BUILDSTDERR: ^~~~~~ BUILDSTDERR: qmode.c:46:7: warning: comparison between pointer and integer BUILDSTDERR: if (c!=NULL) { BUILDSTDERR: ^~ BUILDSTDERR: qmode.c:49:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] BUILDSTDERR: if (!strcmp(str, "flash")) { BUILDSTDERR: ^~~~~~ BUILDSTDERR: qmode.c:51:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BUILDSTDERR: char *type = fpid_file(arg); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: qmode.c:50:9: warning: unused variable 'buf' [-Wunused-variable] BUILDSTDERR: char buf[1024]; BUILDSTDERR: ^~~ BUILDSTDERR: qmode.c:59:8: warning: implicit declaration of function 'reboot_board' [-Wimplicit-function-declaration] BUILDSTDERR: if (reboot_board() == 0) { BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: qmode.c:65:4: warning: implicit declaration of function 'get_rd_flags' [-Wimplicit-function-declaration] BUILDSTDERR: get_rd_flags(); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: qmode.c:67:4: warning: implicit declaration of function 'get_nolo_version'; did you mean 'get_file_size'? [-Wimplicit-function-declaration] BUILDSTDERR: get_nolo_version(); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: get_file_size BUILDSTDERR: qmode.c:69:4: warning: implicit declaration of function 'get_usb_mode'; did you mean 'getsubopt'? [-Wimplicit-function-declaration] BUILDSTDERR: get_usb_mode(); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: getsubopt BUILDSTDERR: qmode.c: In function 'queue_mode': BUILDSTDERR: qmode.c:98:3: warning: implicit declaration of function 'wait'; did you mean 'exit'? [-Wimplicit-function-declaration] BUILDSTDERR: wait(pid); BUILDSTDERR: ^~~~ BUILDSTDERR: exit cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o fpid.o fpid.c BUILDSTDERR: qmode.c:107:3: warning: implicit declaration of function 'chmod'; did you mean 'chroot'? [-Wimplicit-function-declaration] BUILDSTDERR: chmod("/tmp/0xFFFF.1", 0666); BUILDSTDERR: ^~~~~ BUILDSTDERR: chroot cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o query.o query.c BUILDSTDERR: qmode.c: In function 'process_message': BUILDSTDERR: qmode.c:46:5: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: if (c!=NULL) { BUILDSTDERR: ^ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o pieces.o pieces.c BUILDSTDERR: fpid.c: In function 'fpid_file': BUILDSTDERR: fpid.c:66:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fread(buf, 512, 1, fd); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o utils.o utils.c BUILDSTDERR: query.c: In function 'get_usb_mode': BUILDSTDERR: query.c:82:9: error: format not a string literal and no format arguments [-Werror=format-security] BUILDSTDERR: printf(strbuf); BUILDSTDERR: ^~~~~~ BUILDSTDERR: query.c: In function 'get_root_device': BUILDSTDERR: query.c:192:9: error: format not a string literal and no format arguments [-Werror=format-security] BUILDSTDERR: printf(strbuf); BUILDSTDERR: ^~~~~~ BUILDSTDERR: query.c: In function 'get_rd_flags': BUILDSTDERR: query.c:312:9: error: format not a string literal and no format arguments [-Werror=format-security] BUILDSTDERR: printf(strbuf); BUILDSTDERR: ^~~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o devices.o devices.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o console.o console.c BUILDSTDERR: utils.c: In function 'progressbar': BUILDSTDERR: utils.c:56:10: warning: non-ISO-standard escape sequence, '\e' BUILDSTDERR: printf("\e[K %3d%% [", pc); BUILDSTDERR: ^~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o squeue/squeue.o squeue/squeue.c BUILDSTDERR: query.c: In function 'get_sw_version': BUILDSTDERR: query.c:359:38: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] BUILDSTDERR: sprintf(strbuf, "Software Version: %s\n", bytes); BUILDSTDERR: ^~ ~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from query.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 20 and 1043 bytes into a destination of size 1024 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: console.c: In function 'cmd_shell': BUILDSTDERR: console.c:110:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: system("/bin/sh"); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: console.c: In function 'console_prompt': BUILDSTDERR: console.c:156:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1, "0xFFFF> ", 8); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: console.c:158:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(line, 1024, stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: console.c:160:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1, "\n", 1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: squeue/squeue.c: In function 'squeue_open': BUILDSTDERR: squeue/squeue.c:46:3: warning: implicit declaration of function 'chmod' [-Wimplicit-function-declaration] BUILDSTDERR: chmod(file, 0666); BUILDSTDERR: ^~~~~ BUILDSTDERR: squeue/squeue.c:65:6: warning: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration] BUILDSTDERR: usleep(100); BUILDSTDERR: ^~~~~~ BUILDSTDERR: sleep BUILDSTDERR: squeue/squeue.c:88:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: if (((int)pool) == -1) { BUILDSTDERR: ^ BUILDSTDERR: cc1: some warnings being treated as errors BUILDSTDERR: make: *** [: query.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... make: Leaving directory '/builddir/build/BUILD/0xFFFF-0.3.9/src' RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.CSbIxq (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.CSbIxq (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/0xFFFF.spec