Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mysql2.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678472263.182084/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=0uid=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mysql2.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rubygem-mysql2-0.5.5-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mysql2.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678472263.182084/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=0uid=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mysql2.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rubygem-mysql2-0.5.5-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mysql2.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678472263.182084/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=0uid=0gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mysql2.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qTGG8k + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mysql2-0.5.5 + /usr/bin/gem unpack /builddir/build/SOURCES/mysql2-0.5.5.gem `did_you_mean' was not loaded. Unpacked gem: '/builddir/build/BUILD/mysql2-0.5.5' + /usr/bin/gem spec /builddir/build/SOURCES/mysql2-0.5.5.gem --ruby `did_you_mean' was not loaded. + STATUS=0 + '[' 0 -ne 0 ']' + cd mysql2-0.5.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/mysql2-0.5.5.gem -l --ruby `did_you_mean' was not loaded. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mUEMje + umask 022 + cd /builddir/build/BUILD + cd mysql2-0.5.5 + gem build mysql2.gemspec `did_you_mean' was not loaded. Successfully built RubyGem Name: mysql2 Version: 0.5.5 File: mysql2-0.5.5.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 -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection '\'' --with-cxxflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection '\'' --with-ldflags='\''-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc mysql2-0.5.5.gem `did_you_mean' was not loaded. WARNING: You build with buildroot. Build root: /builddir/build/BUILD/mysql2-0.5.5 Bin dir: /builddir/build/BUILD/mysql2-0.5.5/usr/bin Gem home: /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems Plugins dir: /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/plugins /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/CHANGELOG.md /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/LICENSE /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/README.md /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/client.c /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/client.h /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/extconf.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/infile.c /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/infile.h /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/mysql2_ext.c /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/mysql2_ext.h /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/mysql_enc_name_to_ruby.h /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/mysql_enc_to_ruby.h /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/result.c /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/result.h /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/statement.c /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/statement.h /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2/wait_for_single_fd.h /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2/client.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2/console.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2/em.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2/error.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2/field.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2/result.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2/statement.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/lib/mysql2/version.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/support/3A79BD29.asc /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/support/5072E1F5.asc /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/support/C74CD1D8.asc /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/support/libmysql.def /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/support/mysql_enc_to_ruby.rb /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/support/ruby_enc_to_mysql.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2 ["/usr/bin/ruby", "-I", "/usr/share/rubygems", "-r", "./siteconf20230310-1298-kjjqwy.rb", "extconf.rb"] ERROR: Error installing mysql2-0.5.5.gem: ERROR: Failed to build gem native extension. current directory: /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5/ext/mysql2 /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20230310-1298-kjjqwy.rb extconf.rb Building has failed. See above output for more information on the failure. To see why this extension failed to compile, please check the mkmf.log which can be found here: /builddir/build/BUILD/mysql2-0.5.5/usr/lib64/gems/ruby/mysql2-0.5.5/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /builddir/build/BUILD/mysql2-0.5.5/usr/share/gems/gems/mysql2-0.5.5 for inspection. Results logged to /builddir/build/BUILD/mysql2-0.5.5/usr/lib64/gems/ruby/mysql2-0.5.5/gem_make.out `did_you_mean' was not loaded. checking for rb_absint_size()... yes checking for rb_absint_singlebit_p()... yes checking for rb_gc_mark_movable()... yes checking for rb_wait_for_single_fd()... yes checking for rb_enc_interned_str() in ruby.h... yes *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib64 --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/$(RUBY_BASE_NAME) --with-openssl-dir --without-openssl-dir --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib64 --with-mysql-config --without-mysql-config --with-mysqlclient-dir --without-mysqlclient-dir --with-mysqlclient-include --without-mysqlclient-include=${mysqlclient-dir}/include --with-mysqlclient-lib --without-mysqlclient-lib=${mysqlclient-dir}/lib64 --with-mysqlclientlib --without-mysqlclientlib /usr/share/ruby/mkmf.rb:1050:in `block in find_library': undefined method `split' for nil:NilClass (NoMethodError) from /usr/share/ruby/mkmf.rb:1050:in `collect' from /usr/share/ruby/mkmf.rb:1050:in `find_library' from extconf.rb:131:in `
' error: Bad exit status from /var/tmp/rpm-tmp.mUEMje (%build) Bad exit status from /var/tmp/rpm-tmp.mUEMje (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-mysql2.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status 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 x86_64 --nodeps /builddir/build/SPECS/rubygem-mysql2.spec