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/rubygem-pcaprub.spec'], chrootPath='/var/lib/mock/f30-build-36122-20330/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/rubygem-pcaprub.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 Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/rubygem-pcaprub-0.12.4-9.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rubygem-pcaprub.spec'], chrootPath='/var/lib/mock/f30-build-36122-20330/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/rubygem-pcaprub.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 Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4UR5sf + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/pcaprub-0.12.4.gem Unpacked gem: '/builddir/build/BUILD/pcaprub-0.12.4' + cd /builddir/build/BUILD + cd pcaprub-0.12.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/pcaprub-0.12.4.gem -l --ruby + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.CQfB0Q + umask 022 + cd /builddir/build/BUILD + cd pcaprub-0.12.4 + gem build pcaprub.gemspec Successfully built RubyGem Name: pcaprub Version: 0.12.4 File: pcaprub-0.12.4.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-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'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc pcaprub-0.12.4.gem BUILDSTDERR: WARNING: You build with buildroot. BUILDSTDERR: Build root: /builddir/build/BUILD/pcaprub-0.12.4 BUILDSTDERR: Bin dir: /builddir/build/BUILD/pcaprub-0.12.4/usr/bin BUILDSTDERR: Gem home: /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/.document /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/.travis.yml /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/FAQ.rdoc /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/Gemfile /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/LICENSE /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/README.rdoc /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/Rakefile /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/USAGE.rdoc /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/examples/dead_cap.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/examples/file_cap.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/examples/simple_cap.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/examples/telnet-raw.pcap /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/ext/pcaprub_c/extconf.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/lib/pcaprub.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/lib/pcaprub/common.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/lib/pcaprub/ext.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/lib/pcaprub/version.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/test/test_helper.rb /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/test/test_pcaprub_unit.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4/ext/pcaprub_c /usr/bin/ruby -r ./siteconf20181204-32481-13ivo9y.rb extconf.rb [*] Running checks for pcaprub_c code... platform is riscv64-linux BUILDSTDERR: checking for ruby/thread.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) BUILDSTDERR: --with-pcap-dir BUILDSTDERR: --without-pcap-dir BUILDSTDERR: --with-pcap-include BUILDSTDERR: --without-pcap-include=${pcap-dir}/include BUILDSTDERR: --with-pcap-lib BUILDSTDERR: --without-pcap-lib=${pcap-dir}/lib64 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:74:in `
' BUILDSTDERR: ERROR: Error installing pcaprub-0.12.4.gem: BUILDSTDERR: ERROR: Failed to build gem native extension. BUILDSTDERR: Building has failed. See above output for more information on the failure. BUILDSTDERR: To see why this extension failed to compile, please check the mkmf.log which can be found here: BUILDSTDERR: /builddir/build/BUILD/pcaprub-0.12.4/usr/lib64/gems/ruby/pcaprub-0.12.4/mkmf.log BUILDSTDERR: extconf failed, exit code 1 BUILDSTDERR: Gem files will remain installed in /builddir/build/BUILD/pcaprub-0.12.4/usr/share/gems/gems/pcaprub-0.12.4 for inspection. BUILDSTDERR: Results logged to /builddir/build/BUILD/pcaprub-0.12.4/usr/lib64/gems/ruby/pcaprub-0.12.4/gem_make.out BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.CQfB0Q (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.CQfB0Q (%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/rubygem-pcaprub.spec