Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/erlang-cuttlefish.spec'], chrootPath='/var/lib/mock/dist-an8-epao-build-422051-72913/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': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/erlang-cuttlefish.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': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/erlang-cuttlefish-2.1.0-1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/erlang-cuttlefish.spec'], chrootPath='/var/lib/mock/dist-an8-epao-build-422051-72913/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': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/erlang-cuttlefish.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': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sECCJR + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cuttlefish-2.1.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/cuttlefish-2.1.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cuttlefish-2.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/erlang-cuttlefish-0001-Disable-escript-generation.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-cuttlefish-0002-No-rebar_mustache-available.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-cuttlefish-0003-Add-recent-otp-versions-to-rebar.config.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-cuttlefish-0004-erlang-get_stacktrace-0-deprecated.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/erlang-cuttlefish-0005-Fix-for-rebar2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + rm -f src/cuttlefish_rebar_plugin.erl + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Xot2ry + umask 022 + cd /builddir/build/BUILD + cd cuttlefish-2.1.0 *.app file (or *.app.src template) was found. + '[' '!' -f src/cuttlefish.app.src -a '!' -f src/cuttlefish.app -a '!' -f ebin/cuttlefish.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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + VSN=2.1.0 + export VSN + REBAR_VSN_CACHE_FILE=/builddir/build/BUILD/cuttlefish-2.1.0/vsn.cache + export REBAR_VSN_CACHE_FILE + echo '{{git, "/builddir/build/BUILD/cuttlefish-2.1.0"}, "2.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 DEBUG: Evaluating config script "/builddir/build/BUILD/cuttlefish-2.1.0/rebar.config.script" DEBUG: Consult config file "/builddir/build/BUILD/cuttlefish-2.1.0/rebar.config" DEBUG: Rebar location: "/usr/bin/rebar" DEBUG: Consult config file "/builddir/build/BUILD/cuttlefish-2.1.0/src/cuttlefish.app.src" DEBUG: is_app_available, looking for App lager with Path "/builddir/build/BUILD/cuttlefish-2.1.0/deps/lager" DEBUG: Directory expected to be an app dir, but it doesn't exist (yet?): /builddir/build/BUILD/cuttlefish-2.1.0/deps/lager DEBUG: is_app_available, looking for App lager with Path "/usr/share/erlang/lib/lager-3.8.0" Uncaught error in rebar_core: {'EXIT', {badarg, [{io,format, [standard_io, "INFO: Looking for ~s-~s ; found ~s-~s at ~s\n", [lager, {git, "git://github.com/erlang-lager/lager.git", {tag,"3.8.0"}}, lager,"3.8.0", "/usr/share/erlang/lib/lager-3.8.0"]], []}, {rebar_deps,is_app_available,5, [{file,"src/rebar_deps.erl"},{line,445}]}, {rebar_deps,find_dep_in_dir,3, [{file,"src/rebar_deps.erl"},{line,409}]}, {rebar_deps,find_deps,4, [{file,"src/rebar_deps.erl"},{line,369}]}, {rebar_deps,preprocess,2, [{file,"src/rebar_deps.erl"},{line,64}]}, {rebar_core,acc_modules,5, [{file,"src/rebar_core.erl"},{line,540}]}, {rebar_core,process_dir1,7, [{file,"src/rebar_core.erl"},{line,237}]}, {rebar_core,process_commands,2, [{file,"src/rebar_core.erl"},{line,93}]}]}} error: Bad exit status from /var/tmp/rpm-tmp.Xot2ry (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Xot2ry (%build) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/erlang-cuttlefish.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/erlang-cuttlefish.spec'