sr/share/elixir/1.8.1/bin/mix from /usr/bin/env elixir to #!/usr/bin/elixir mangling shebang in /usr/share/elixir/1.8.1/bin/elixir from /bin/sh to #!/usr/bin/sh Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.spGYBW + umask 022 + cd /builddir/build/BUILD + cd elixir-1.8.1 + export LANG=C.UTF-8 + LANG=C.UTF-8 + export REBAR=/usr/bin/rebar + REBAR=/usr/bin/rebar + export REBAR_DEPS_PREFER_LIBS=TRUE + REBAR_DEPS_PREFER_LIBS=TRUE + export ERL_LIBS=/usr/share/erlang/lib/ + ERL_LIBS=/usr/share/erlang/lib/ + make test if [ ! -f lib/elixir/ebin/elixir.app ]; then erl -noshell -eval '{V,_} = string:to_integer(erlang:system_info(otp_release)), io:fwrite("~s", [is_integer(V) and (V >= 20)])' -s erlang halt | grep -q '^true'; if [ $? != 0 ]; then echo "At least Erlang/OTP 20.0 is required to build Elixir"; exit 1; fi; fi cd lib/elixir && mkdir -p ebin && erl -make bin/elixir bin/mix format --check-formatted mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/test_helper.erl mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/module_test.erl mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/function_test.erl mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/operators_test.erl mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/tokenizer_test.erl mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/control_test.erl mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/atom_test.erl mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/match_test.erl mkdir -p lib/elixir/test/ebin erlc -I lib/elixir/include +warnings_as_errors -o lib/elixir/test/ebin lib/elixir/test/erlang/string_test.erl ==> elixir (eunit) erl -I lib/elixir/include -noshell -pa lib/elixir/ebin -pa lib/elixir/test/ebin -s test_helper test; control_test: andand_test...*timed out* undefined ======================================================= Failed: 0. Skipped: 0. Passed: 26. One or more tests were cancelled. BUILDSTDERR: make: *** [Makefile:219: test_erlang] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.spGYBW (%check) BUILDSTDERR: extra tokens at the end of %endif directive in line 29: %endif %{__with_rebar} BUILDSTDERR: extra tokens at the end of %endif directive in line 32: %endif %{__with_rebar3} BUILDSTDERR: extra tokens at the end of %endif directive in line 85: %endif %{__with_rebar} BUILDSTDERR: extra tokens at the end of %endif directive in line 93: %endif %{__with_rebar3} BUILDSTDERR: extra tokens at the end of %endif directive in line 100: %endif %{__with_rebar} BUILDSTDERR: extra tokens at the end of %endif directive in line 103: %endif %{__with_rebar3} BUILDSTDERR: extra tokens at the end of %endif directive in line 113: %endif %{__with_rebar} BUILDSTDERR: extra tokens at the end of %endif directive in line 116: %endif %{__with_rebar3} BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.spGYBW (%check) 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/elixir.spec