Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ruby-ncurses.spec'], chrootPath='/var/lib/mock/f30-build-36256-20421/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=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ruby-ncurses.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: line 26: Possible unexpanded macro in: Requires: ruby(release) >= %{rubyabi} Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/ruby-ncurses-1.3.1-25.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ruby-ncurses.spec'], chrootPath='/var/lib/mock/f30-build-36256-20421/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=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ruby-ncurses.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: line 26: Possible unexpanded macro in: Requires: ruby(release) >= %{rubyabi} Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nwQmVN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ncurses-ruby-1.3.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/ncurses-ruby-1.3.1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ncurses-ruby-1.3.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0001-STR2CSTR-deprecated.patch):' Patch #0 (0001-STR2CSTR-deprecated.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .p --fuzz=0 patching file form_wrap.c patching file menu_wrap.c patching file ncurses_wrap.c + echo 'Patch #1 (0002-Werror-format-security.patch):' Patch #1 (0002-Werror-format-security.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .format --fuzz=0 patching file form_wrap.c + echo 'Patch #2 (ruby-ncurses-fix-missing-tz-prototypes.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .systime --fuzz=0 Patch #2 (ruby-ncurses-fix-missing-tz-prototypes.patch): patching file ncurses_wrap.h Hunk #1 succeeded at 86 (offset 2 lines). + echo 'Patch #3 (ruby-ncurses-1.3.1-use-new-rb_thread_fd_select-avoiding-deprecated-functions.patch):' Patch #3 (ruby-ncurses-1.3.1-use-new-rb_thread_fd_select-avoiding-deprecated-functions.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ruby22 --fuzz=0 patching file ncurses_wrap.c Hunk #1 succeeded at 835 (offset -1 lines). + /usr/bin/chmod 0644 ncurses_wrap.c + find examples/ -type f + xargs /usr/bin/chmod 0644 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.259zT9 + umask 022 + cd /builddir/build/BUILD + cd ncurses-ruby-1.3.1 + ruby extconf.rb --vendor BUILDSTDERR: checking for unistd.h... *** extconf.rb failed *** BUILDSTDERR: Could not create Makefile due to some reason, probably lack of necessary BUILDSTDERR: libraries and/or headers. Check the mkmf.log file for more details. You may BUILDSTDERR: need configuration options. BUILDSTDERR: Provided configuration options: BUILDSTDERR: --with-opt-dir BUILDSTDERR: --without-opt-dir BUILDSTDERR: --with-opt-include BUILDSTDERR: --without-opt-include=${opt-dir}/include BUILDSTDERR: --with-opt-lib BUILDSTDERR: --without-opt-lib=${opt-dir}/lib64 BUILDSTDERR: --with-make-prog BUILDSTDERR: --without-make-prog BUILDSTDERR: --srcdir=. BUILDSTDERR: --curdir BUILDSTDERR: --ruby=/usr/bin/$(RUBY_BASE_NAME) RPM build errors: BUILDSTDERR: /usr/share/ruby/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) BUILDSTDERR: You have to install development tools first. BUILDSTDERR: from /usr/share/ruby/mkmf.rb:590:in `try_cpp' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:1097:in `block in have_header' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:947:in `block in checking_for' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:350:in `block (2 levels) in postpone' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:320:in `open' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:350:in `block in postpone' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:320:in `open' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:346:in `postpone' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:946:in `checking_for' BUILDSTDERR: from /usr/share/ruby/mkmf.rb:1096:in `have_header' BUILDSTDERR: from extconf.rb:28:in `
' BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.259zT9 (%build) BUILDSTDERR: line 26: Possible unexpanded macro in: Requires: ruby(release) >= %{rubyabi} BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.259zT9 (%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 636, 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/ruby-ncurses.spec