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/erlang-rebar.spec'], chrootPath='/var/lib/mock/f29-build-10421-4709/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/erlang-rebar.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 80: %{?_isa} BUILDSTDERR: warning: Macro expanded in comment on line 81: %{?_isa} Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/erlang-rebar-2.6.4-6.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/erlang-rebar.spec'], chrootPath='/var/lib/mock/f29-build-10421-4709/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/erlang-rebar.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 80: %{?_isa} BUILDSTDERR: warning: Macro expanded in comment on line 81: %{?_isa} Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ckTRzg + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rebar-2.6.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/rebar-2.6.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rebar-2.6.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (rebar-0001-Load-templates-from-the-filesystem-first.patch):' Patch #1 (rebar-0001-Load-templates-from-the-filesystem-first.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .load_templates_from_fs --fuzz=0 patching file src/rebar_templater.erl + echo 'Patch #2 (rebar-0002-Remove-bundled-mustache.patch):' Patch #2 (rebar-0002-Remove-bundled-mustache.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .remove_bundled_mustache --fuzz=0 patching file ebin/rebar.app patching file src/rebar_mustache.erl patching file src/rebar_templater.erl + echo 'Patch #3 (rebar-0003-Remove-bundled-getopt.patch):' Patch #3 (rebar-0003-Remove-bundled-getopt.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .remove_bundled_getopt --fuzz=0 patching file ebin/rebar.app patching file src/rebar.erl patching file src/rebar_getopt.erl + echo 'Patch #4 (rebar-0004-Allow-discarding-building-ports.patch):' Patch #4 (rebar-0004-Allow-discarding-building-ports.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .allow_discarding_ports --fuzz=0 patching file src/rebar_port_compiler.erl Patch #5 (rebar-0005-Remove-any-traces-of-long-time-obsolete-escript-fold.patch): + echo 'Patch #5 (rebar-0005-Remove-any-traces-of-long-time-obsolete-escript-fold.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .remove_escript_foldl_3 --fuzz=0 patching file src/rebar_utils.erl Patch #6 (rebar-0006-remove-abnfc.patch): + echo 'Patch #6 (rebar-0006-remove-abnfc.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .remove_abnfc --fuzz=0 patching file ebin/rebar.app patching file rebar.config patching file src/rebar_abnfc_compiler.erl Patch #7 (rebar-0007-Remove-support-for-gpb-compiler.patch): + echo 'Patch #7 (rebar-0007-Remove-support-for-gpb-compiler.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .remove_gpb --fuzz=0 patching file ebin/rebar.app patching file src/rebar_proto_gpb_compiler.erl Patch #8 (rebar-0008-Remove-pre-R15B02-workaround.patch): + echo 'Patch #8 (rebar-0008-Remove-pre-R15B02-workaround.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .remove_pre_R15B02 --fuzz=0 patching file src/rebar_eunit.erl Patch #9 (rebar-0009-No-such-function-erlang-timestamp-0.patch): + echo 'Patch #9 (rebar-0009-No-such-function-erlang-timestamp-0.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .erlang_timestamp_0 --fuzz=0 patching file src/rebar_utils.erl Patch #10 (rebar-0010-Try-shell-variable-VSN-first.patch): + echo 'Patch #10 (rebar-0010-Try-shell-variable-VSN-first.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .vsn_override --fuzz=0 patching file src/rebar_otp_app.erl Patch #11 (rebar-0011-Allow-ignoring-missing-deps.patch): + echo 'Patch #11 (rebar-0011-Allow-ignoring-missing-deps.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .skip_deps_checking --fuzz=0 patching file src/rebar_deps.erl + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.aYGxjI + umask 022 + cd /builddir/build/BUILD *.app file (or *.app.src template) was found. + cd rebar-2.6.4 + '[' '!' -f src/rebar.app.src -a '!' -f src/rebar.app -a '!' -f ebin/rebar.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,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + VSN=2.6.4 + export VSN + REBAR_VSN_CACHE_FILE=/builddir/build/BUILD/rebar-2.6.4/vsn.cache + export REBAR_VSN_CACHE_FILE + echo '{{git, "/builddir/build/BUILD/rebar-2.6.4"}, "2.6.4"}.' + 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 DEBUG: Evaluating config script "/builddir/build/BUILD/rebar-2.6.4/rebar.config.script" DEBUG: Consult config file "/builddir/build/BUILD/rebar-2.6.4/rebar.config" DEBUG: Rebar location: "/usr/bin/rebar" DEBUG: Available deps: [] DEBUG: Missing deps : [] DEBUG: Plugins requested while processing /builddir/build/BUILD/rebar-2.6.4: [] DEBUG: Predirs: [] ==> rebar-2.6.4 (compile) DEBUG: Matched required ERTS version: 9.3.1 -> .* DEBUG: Matched required OTP release: 20 -> .* DEBUG: Min OTP version unconfigured DEBUG: erl_opts [debug_info,{d,namespaced_types}] DEBUG: Files to compile first: [] DEBUG: Starting 3 compile worker(s) Compiled src/rebar_lfe_compiler.erl Compiled src/rebar_proto_compiler.erl Compiled src/rebar_shell.erl Compiled src/rebar_subdirs.erl Compiled src/rebar_otp_app.erl Compiled src/rebar_upgrade.erl Compiled src/rebar_neotoma_compiler.erl Compiled src/rebar_xref.erl Compiled src/rebar_escripter.erl Compiled src/rebar_require_vsn.erl Compiled src/rebar_file_utils.erl Compiled src/rmemo.erl Compiled src/rebar_templater.erl Compiled src/rebar_core.erl Compiled src/rebar_dialyzer.erl Compiled src/rebar_edoc.erl Compiled src/rebar_qc.erl Compiled src/rebar_log.erl Compiled src/rebar_port_compiler.erl Compiled src/rebar_metacmds.erl Compiled src/rebar_rand_compat.erl src/rebar_ct.erl:291: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1 Compiled src/rebar_ct.erl Compiled src/rebar_erlc_compiler.erl Compiled src/rebar_dia_compiler.erl Compiled src/rebar_erlydtl_compiler.erl Compiled src/rebar_asn1_compiler.erl Compiled src/rebar_utils.erl Compiled src/rebar_app_utils.erl Compiled src/rebar_deps.erl Compiled src/rebar_otp_appup.erl Compiled src/rebar.erl src/rebar_eunit.erl:75: function pre15b02_eunit_primitive/3 undefined src/rebar_eunit.erl:282: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1 Compiling src/rebar_eunit.erl failed: DEBUG: Worker compilation failed: {{error, {error, [["src/rebar_eunit.erl:75: function pre15b02_eunit_primitive/3 undefined\n"]], [["src/rebar_eunit.erl:282: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1\n"]]}}, {source,"src/rebar_eunit.erl"}} BUILDSTDERR: ERROR: compile failed while processing /builddir/build/BUILD/rebar-2.6.4: rebar_abort RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.aYGxjI (%build) BUILDSTDERR: Macro expanded in comment on line 80: %{?_isa} BUILDSTDERR: Macro expanded in comment on line 81: %{?_isa} BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.aYGxjI (%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/erlang-rebar.spec