Mock Version: 1.4.8 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/hashcat.spec'], chrootPath='/var/lib/mock/717591-epel-7-ppc64le-1519047947.376010/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=0uid=1001gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '6ab5203130a84a70bc91b4d598c59b36', '-D', '/var/lib/mock/717591-epel-7-ppc64le-1519047947.376010/root', '-a', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/hashcat.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 warning: Could not canonicalize hostname: 6ab5203130a84a70bc91b4d598c59b36 Building target platforms: ppc64le Building for target ppc64le Wrote: /builddir/build/SRPMS/hashcat-4.0.1-1.el7.centos.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/hashcat.spec'], chrootPath='/var/lib/mock/717591-epel-7-ppc64le-1519047947.376010/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=0uid=1001gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'a1abc914d0c748b9a244195b8431e813', '-D', '/var/lib/mock/717591-epel-7-ppc64le-1519047947.376010/root', '-a', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/hashcat.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: ppc64le Building for target ppc64le Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vyvmND + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf hashcat-4.0.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/hashcat-4.0.1.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd hashcat-4.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (hashcat-4.0.1-soname-add.patch):' Patch #0 (hashcat-4.0.1-soname-add.patch): + /usr/bin/patch -p1 -b --suffix .soname-add --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/hashcat-4.0.1-soname-add.patch patching file src/Makefile Patch #1 (hashcat-4.0.1-force-big-endian-build.patch): + echo 'Patch #1 (hashcat-4.0.1-force-big-endian-build.patch):' + /usr/bin/cat /builddir/build/SOURCES/hashcat-4.0.1-force-big-endian-build.patch + /usr/bin/patch -p1 -b --suffix .force-big-endian-build --fuzz=0 patching file include/common.h + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5P5na0 + umask 022 + cd /builddir/build/BUILD + cd hashcat-4.0.1 + /usr/bin/make -j2 SHARED=1 DEBUG=1 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/' src/Makefile:77: "## Detected Operating System : Linux" gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/affinity.c -o obj/affinity.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/autotune.c -o obj/autotune.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/benchmark.c -o obj/benchmark.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/bitmap.c -o obj/bitmap.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/bitops.c -o obj/bitops.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/combinator.c -o obj/combinator.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/common.c -o obj/common.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/convert.c -o obj/convert.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/cpt.c -o obj/cpt.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/cpu_aes.c -o obj/cpu_aes.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/cpu_crc32.c -o obj/cpu_crc32.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/cpu_des.c -o obj/cpu_des.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/cpu_md4.c -o obj/cpu_md4.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/cpu_md5.c -o obj/cpu_md5.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/cpu_sha1.c -o obj/cpu_sha1.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/cpu_sha256.c -o obj/cpu_sha256.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/debugfile.c -o obj/debugfile.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/dictstat.c -o obj/dictstat.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/dispatch.c -o obj/dispatch.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/dynloader.c -o obj/dynloader.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/event.c -o obj/event.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/ext_ADL.c -o obj/ext_ADL.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/ext_nvapi.c -o obj/ext_nvapi.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/ext_nvml.c -o obj/ext_nvml.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/ext_OpenCL.c -o obj/ext_OpenCL.NATIVE.SHARED.o -fpic src/bitmap.c: In function 'generate_bitmaps': src/bitmap.c:40:3: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 i = 0; i < digests_cnt; i++) ^ src/bitmap.c:40:3: note: use option -std=c99 or -std=gnu99 to compile your code gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/ext_sysfs.c -o obj/ext_sysfs.NATIVE.SHARED.o -fpic src/autotune.c: In function 'autotune': src/autotune.c:106:3: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 i = 0; i < kernel_power_max; i++) ^ src/autotune.c:106:3: note: use option -std=c99 or -std=gnu99 to compile your code gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/ext_xnvctrl.c -o obj/ext_xnvctrl.NATIVE.SHARED.o -fpic gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/ -Ideps/OpenCL-Headers/ -DWITH_HWMON src/ext_lzma.c -o obj/ext_lzma.NATIVE.SHARED.o -fpic src/cpu_crc32.c: In function 'cpu_crc32_buffer': make: *** [obj/bitmap.NATIVE.SHARED.o] Error 1 make: *** Waiting for unfinished jobs.... src/autotune.c:174:7: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < VERIFIER_CNT; i++) ^ src/autotune.c:191:5: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < STEPS_CNT; i++) ^ src/autotune.c:200:7: error: 'for' loop initial declarations are only allowed in C99 mode for (int verifier_idx = 0; verifier_idx < VERIFIER_CNT; verifier_idx++) ^ src/autotune.c:223:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int verifier_idx = 0; verifier_idx < VERIFIER_CNT; verifier_idx++) ^ src/autotune.c:237:5: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 f = 1; f < 1024; f++) ^ src/convert.c: In function 'printable_ascii': src/convert.c:73:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < len; i++) ^ src/convert.c:73:3: note: use option -std=c99 or -std=gnu99 to compile your code src/autotune.c:251:7: error: 'for' loop initial declarations are only allowed in C99 mode for (int verifier_idx = 0; verifier_idx < VERIFIER_CNT; verifier_idx++) ^ src/autotune.c:258:16: error: redefinition of 'verifier_idx' for (int verifier_idx = 0; verifier_idx < VERIFIER_CNT; verifier_idx++) ^ src/autotune.c:251:16: note: previous definition of 'verifier_idx' was here for (int verifier_idx = 0; verifier_idx < VERIFIER_CNT; verifier_idx++) ^ src/autotune.c:258:7: error: 'for' loop initial declarations are only allowed in C99 mode for (int verifier_idx = 0; verifier_idx < VERIFIER_CNT; verifier_idx++) ^ src/convert.c: In function 'matches_separator': src/convert.c:86:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < len; i++) ^ src/convert.c: In function 'exec_hexify': make: *** [obj/autotune.NATIVE.SHARED.o] Error 1 src/convert.c:178:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = max_len - 1, j = i * 2; i >= 0; i -= 1, j -= 2) ^ src/convert.c: In function 'is_valid_hex_string': src/convert.c:188:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < len; i++) ^ src/convert.c: In function 'base32_decode': src/convert.c:498:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < in_len; i += 8) ^ src/convert.c:519:12: error: redefinition of 'i' for (int i = 0; i < in_len; i++) ^ src/convert.c:498:12: note: previous definition of 'i' was here for (int i = 0; i < in_len; i += 8) ^ src/convert.c:519:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < in_len; i++) ^ src/convert.c: In function 'base32_encode': src/convert.c:537:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < in_len; i += 5) ^ src/convert.c: In function 'base64_decode': src/convert.c:579:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < in_len; i += 4) ^ src/convert.c:594:12: error: redefinition of 'i' for (int i = 0; i < in_len; i++) ^ src/convert.c:579:12: note: previous definition of 'i' was here for (int i = 0; i < in_len; i += 4) ^ src/convert.c:594:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < in_len; i++) ^ src/convert.c: In function 'base64_encode': src/convert.c:612:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < in_len; i += 3) ^ src/convert.c: In function 'lowercase': src/convert.c:642:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < len; i++) buf[i] = tolower (buf[i]); ^ src/convert.c: In function 'uppercase': src/convert.c:647:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < len; i++) buf[i] = toupper (buf[i]); ^ make: *** [obj/convert.NATIVE.SHARED.o] Error 1 src/cpu_aes.c: In function 'AES256_InvertKey': src/cpu_crc32.c:85:3: error: 'for' loop initial declarations are only allowed in C99 mode for (size_t pos = 0; pos < length; pos++) ^ src/cpu_crc32.c:85:3: note: use option -std=c99 or -std=gnu99 to compile your code src/cpu_crc32.c: In function 'cpu_crc32': src/cpu_crc32.c:116:3: error: 'for' loop initial declarations are only allowed in C99 mode for (size_t fpos = 0; fpos < nread; fpos++) ^ make: *** [obj/cpu_crc32.NATIVE.SHARED.o] Error 1 src/cpu_aes.c:1020:3: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 i = 0, j = 56; i < j; i += 4, j -= 4) ^ src/cpu_aes.c:1020:3: note: use option -std=c99 or -std=gnu99 to compile your code src/cpu_aes.c:1030:12: error: redefinition of 'i' for (u32 i = 1, j = 4; i < 14; i += 1, j += 4) ^ src/cpu_aes.c:1020:12: note: previous definition of 'i' was here for (u32 i = 0, j = 56; i < j; i += 4, j -= 4) ^ src/cpu_aes.c:1030:19: error: redefinition of 'j' for (u32 i = 1, j = 4; i < 14; i += 1, j += 4) ^ src/cpu_aes.c:1020:19: note: previous definition of 'j' was here for (u32 i = 0, j = 56; i < j; i += 4, j -= 4) ^ src/cpu_aes.c:1030:3: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 i = 1, j = 4; i < 14; i += 1, j += 4) ^ src/cpu_aes.c: In function 'AES128_decrypt_cbc': src/debugfile.c: In function 'debugfile_format_plain': src/cpu_aes.c:1335:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < 16; i += 4) ^ src/debugfile.c:22:3: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 i = 0; i < plain_len; i++) ^ src/debugfile.c:22:3: note: use option -std=c99 or -std=gnu99 to compile your code src/debugfile.c:43:5: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 i = 0; i < plain_len; i++) ^ make: *** [obj/debugfile.NATIVE.SHARED.o] Error 1 make: *** [obj/cpu_aes.NATIVE.SHARED.o] Error 1 src/dispatch.c: In function 'get_lowest_words_done': src/dispatch.c:26:3: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 device_id = 0; device_id < opencl_ctx->devices_cnt; device_id++) ^ src/dispatch.c:26:3: note: use option -std=c99 or -std=gnu99 to compile your code src/dispatch.c: In function 'calc_stdin': src/dispatch.c:233:7: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 salt_pos = 0; salt_pos < hashes->salts_cnt; salt_pos++) ^ src/dispatch.c: In function 'calc': src/dispatch.c:570:9: error: 'for' loop initial declarations are only allowed in C99 mode for (u32 salt_pos = 0; salt_pos < hashes->salts_cnt; salt_pos++) ^ make: *** [obj/dispatch.NATIVE.SHARED.o] Error 1 src/event.c: In function 'event_call': src/event.c:41:5: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = MAX_OLD_EVENTS - 1; i >= 1; i--) ^ src/event.c:41:5: note: use option -std=c99 or -std=gnu99 to compile your code make: *** [obj/event.NATIVE.SHARED.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.5P5na0 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.5P5na0 (%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 619, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M a1abc914d0c748b9a244195b8431e813 -D /var/lib/mock/717591-epel-7-ppc64le-1519047947.376010/root -a --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=en_US.UTF-8 -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/hashcat.spec