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-skerl.spec'], chrootPath='/var/lib/mock/f31-build-48177-27016/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-skerl.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 setting SOURCE_DATE_EPOCH=1550707200 Wrote: /builddir/build/SRPMS/erlang-skerl-1.1.0-26.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/erlang-skerl.spec'], chrootPath='/var/lib/mock/f31-build-48177-27016/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-skerl.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 setting SOURCE_DATE_EPOCH=1550707200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.VA3X5x + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf skerl-1.1.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/skerl-1.1.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd skerl-1.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/erlang-skerl-0001-Rewrote-hex-routines-under-MIT-license.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-skerl-0002-Rewrote-Erlang-NIF-API-routines-under-MIT-license.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.CB75Xx + umask 022 + cd /builddir/build/BUILD + cd skerl-1.1.0 + '[' '!' -f src/skerl.app.src -a '!' -f src/skerl.app -a '!' -f ebin/skerl.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.0 + export VSN + REBAR_VSN_CACHE_FILE=/builddir/build/BUILD/skerl-1.1.0/vsn.cache + export REBAR_VSN_CACHE_FILE + echo '{{git, "/builddir/build/BUILD/skerl-1.1.0"}, "1.1.0"}.' + 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.CB75Xx (%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:33 === 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.) =ERROR REPORT==== 23-Jul-2019::20:40:34 === Loading of /usr/share/erlang/lib//getopt-1.0.1/ebin/getopt.beam failed: badfile RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.CB75Xx (%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-skerl.spec