'[' 0 -ne 0 ']' + cd lfe-1.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (erlang-lfe-0001-Remove-support-for-erlang-packages.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .no_erl_packages --fuzz=0 + echo 'Patch #2 (erlang-lfe-0002-Convert-to-proper-UTF-8.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .proper_utf8 --fuzz=0 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Patch #1 (erlang-lfe-0001-Remove-support-for-erlang-packages.patch): patching file src/lfe_trans.erl Patch #2 (erlang-lfe-0002-Convert-to-proper-UTF-8.patch): patching file examples/core-macros.lfe Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YxDaAg + umask 022 + cd /builddir/build/BUILD + cd lfe-1.3 + mkdir -p ./ebin/ + '[' '!' -f src/lfe.app.src -a '!' -f src/lfe.app -a '!' -f ebin/lfe.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.3 + export VSN + REBAR_VSN_CACHE_FILE=/builddir/build/BUILD/lfe-1.3/vsn.cache + export REBAR_VSN_CACHE_FILE + echo '{{git, "/builddir/build/BUILD/lfe-1.3"}, "1.3"}.' + 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.YxDaAg (%build) *.app file (or *.app.src template) was found. escript: exception error: undefined function rebar:main/1 in function erl_eval:local_func/6 (erl_eval.erl, line 567) in call from escript:interpret/4 (escript.erl, line 788) in call from escript:start/1 (escript.erl, line 277) in call from init:start_em/1 in call from init:do_boot/3 RPM build errors: BUILDSTDERR: line 39: It's not recommended to have unversioned Obsoletes: Obsoletes: emacs-erlang-lfe BUILDSTDERR: line 40: It's not recommended to have unversioned Obsoletes: Obsoletes: emacs-erlang-lfe-el BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.YxDaAg (%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-lfe.spec