Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/erlang-snappy.spec'], chrootPath='/var/lib/mock/f31-build-48193-27018/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/erlang-snappy.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 BUILDSTDERR: warning: Macro expanded in comment on line 12: %{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1550707200 Wrote: /builddir/build/SRPMS/erlang-snappy-1.1.1-0.14.git348da43.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/erlang-snappy.spec'], chrootPath='/var/lib/mock/f31-build-48193-27018/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/erlang-snappy.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 BUILDSTDERR: warning: Macro expanded in comment on line 12: %{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1550707200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.br3OCJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf snappy-erlang-nif-348da43a27a8dd3c6973b8fe9156ef93906b4c7c + /usr/bin/gzip -dc /builddir/build/SOURCES/snappy-1.1.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd snappy-erlang-nif-348da43a27a8dd3c6973b8fe9156ef93906b4c7c + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/erlang-snappy-0001-No-bundled-snappy.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-snappy-0002-Remove-artificial-dependency-on-the-Erlang-s-version.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-snappy-0003-Added-a-check-for-empty-IOLists-during-decompression.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-snappy-0004-Returns-empty-binary-and-bypasses-the-compression-li.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-snappy-0005-Quick-refactor-only-init-the-structs-when-necessary.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + rm -rf c_src/snappy + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.V7wGVH + umask 022 + cd /builddir/build/BUILD + cd snappy-erlang-nif-348da43a27a8dd3c6973b8fe9156ef93906b4c7c + '[' '!' -f src/snappy.app.src -a '!' -f src/snappy.app -a '!' -f ebin/snappy.app ']' + echo '*.app file (or *.app.src template) was found.' + 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + VSN=1.1.1 + export VSN + REBAR_VSN_CACHE_FILE=/builddir/build/BUILD/snappy-erlang-nif-348da43a27a8dd3c6973b8fe9156ef93906b4c7c/vsn.cache + export REBAR_VSN_CACHE_FILE + echo '{{git, "/builddir/build/BUILD/snappy-erlang-nif-348da43a27a8dd3c6973b8fe9156ef93906b4c7c"}, "1.1.1"}.' + REBAR_DEPS_PREFER_LIBS=TRUE + export REBAR_DEPS_PREFER_LIBS + IGNORE_MISSING_DEPS=TRUE + export IGNORE_MISSING_DEPS + ERL_LIBS=/usr/share/erlang/lib/ + export ERL_LIBS + /usr/bin/rebar compile skip_deps=true -vv BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.V7wGVH (%build) *.app file (or *.app.src template) was found. Uncaught error in rebar_core: {'EXIT', {undef, [{getopt,parse, [[{help,104,"help",undefined, "Show the program options"}, {commands,99,"commands",undefined, "Show available commands"}, {verbose,118,"verbose",integer, "Verbosity level (-v, -vv)"}, {quiet,113,"quiet",boolean, "Quiet, only print error messages"}, {version,86,"version",undefined, "Show version information"}, {force,102,"force",undefined,"Force"}, {defines,68,undefined,string, "Define compiler macro"}, {jobs,106,"jobs",integer, [78,117,109,98,101,114,32,111,102,32,99, 111,110,99,117,114,114,101,110,116,32, 119,111,114,107,101,114,115,32,97,32,99, 111,109,109,97,110,100,32,109,97,121,32, 117,115,101,46,32,68,101,102,97,117,108, 116,58,32,"3"]}, {config,67,"config",string, "Rebar config file to use"}, {profile,112,"profile",undefined, "Profile this run of rebar. Via profiler= you can optionally select either fprof (default) or eflame. The result can be found in fprof.analysis or eflame.svg. Additionally, in fprof mode, if erlgrind can be found in $PATH, a Cachegrind file (fprof.cgrind) will be generated as well."}, {keep_going,107,"keep-going",undefined, "Keep running after a command fails"}, {recursive,114,"recursive",boolean, "Apply all commands recursively. Alternatively, you can selectively configure what other commands in addition to the always-recursive ones (compile, *-deps) should also be applied recursively. For example, to make 'eunit' recursive, add {recursive_cmds, [eunit]} to rebar.config."}], ["compile","skip_deps=true","-vv"]], []}, {rebar,parse_args,1, [{file,"src/rebar.erl"},{line,304}]}, {rebar,run,1, [{file,"src/rebar.erl"},{line,101}]}, {rebar,main,1, [{file,"src/rebar.erl"},{line,58}]}, {erl_eval,local_func,6, [{file,"erl_eval.erl"},{line,557}]}, {escript,interpret,4, [{file,"escript.erl"},{line,789}]}, {escript,start,1, [{file,"escript.erl"},{line,277}]}, {init,start_em,1,[]}]}} =ERROR REPORT==== 23-Jul-2019::20:40:13 === Loading of /usr/share/erlang/lib//getopt-1.0.1/ebin/getopt.beam failed: badfile =ERROR REPORT==== 23-Jul-2019::20:40:14 === beam/beam_load.c(1863): Error loading module getopt: This BEAM file was compiled for a later version of the run-time system than 20. To fix this, please recompile this module with an 20 compiler. (Use of opcode 162; this emulator supports only up to 159.) RPM build errors: BUILDSTDERR: Macro expanded in comment on line 12: %{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.V7wGVH (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, 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/erlang-snappy.spec