Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-glut.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678469702.141720/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-glut.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-glut-8.3.0-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-glut.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678469702.141720/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-glut.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-glut-8.3.0-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-glut.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1678469702.141720/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-glut.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.Dbhroj + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf glut-8.3.0 + /usr/bin/gem unpack /builddir/build/SOURCES/glut-8.3.0.gem `did_you_mean' was not loaded. Unpacked gem: '/builddir/build/BUILD/glut-8.3.0' + /usr/bin/gem spec /builddir/build/SOURCES/glut-8.3.0.gem --ruby `did_you_mean' was not loaded. + STATUS=0 + '[' 0 -ne 0 ']' + cd glut-8.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/glut-8.3.0.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.dgQW4r + umask 022 + cd /builddir/build/BUILD + cd glut-8.3.0 + gem build glut.gemspec `did_you_mean' was not loaded. WARNING: no homepage specified WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: glut Version: 8.3.0 File: glut-8.3.0.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 glut-8.3.0.gem `did_you_mean' was not loaded. WARNING: You build with buildroot. Build root: /builddir/build/BUILD/glut-8.3.0 Bin dir: /builddir/build/BUILD/glut-8.3.0/usr/bin Gem home: /builddir/build/BUILD/glut-8.3.0/usr/share/gems Plugins dir: /builddir/build/BUILD/glut-8.3.0/usr/share/gems/plugins /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/.autotest /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/.gemtest /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/.gitignore /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/.travis.yml /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/History.rdoc /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/MIT-LICENSE /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/Manifest.txt /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/README.rdoc /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/Rakefile /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/ext/glut/common.h /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/ext/glut/extconf.rb /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/ext/glut/glut.c /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/ext/glut/glut_callbacks.c /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/ext/glut/glut_ext.c /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/lib/glut.rb /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/lib/glut/dummy.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/ext/glut ["/usr/bin/ruby", "-I", "/usr/share/rubygems", "-r", "./siteconf20230310-1315-ibpfqn.rb", "extconf.rb"] ERROR: Error installing glut-8.3.0.gem: ERROR: Failed to build gem native extension. current directory: /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0/ext/glut /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20230310-1315-ibpfqn.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/glut-8.3.0/usr/lib64/gems/ruby/glut-8.3.0/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /builddir/build/BUILD/glut-8.3.0/usr/share/gems/gems/glut-8.3.0 for inspection. Results logged to /builddir/build/BUILD/glut-8.3.0/usr/lib64/gems/ruby/glut-8.3.0/gem_make.out `did_you_mean' was not loaded. checking for glVertex3d() in -lopengl32.lib... no checking for -lopengl32... no checking for glVertex3d() in -lGL... no checking for OpenGL... no *** 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) --enable-win32-cross --disable-win32-cross --with-opengl32.lib-dir --without-opengl32.lib-dir --with-opengl32.lib-include --without-opengl32.lib-include=${opengl32.lib-dir}/include --with-opengl32.lib-lib --without-opengl32.lib-lib=${opengl32.lib-dir}/lib64 --with-opengl32.liblib --without-opengl32.liblib --with-opengl32-dir --without-opengl32-dir --with-opengl32-include --without-opengl32-include=${opengl32-dir}/include --with-opengl32-lib --without-opengl32-lib=${opengl32-dir}/lib64 --with-opengl32lib --without-opengl32lib --with-GL-dir --without-GL-dir --with-GL-include --without-GL-include=${GL-dir}/include --with-GL-lib --without-GL-lib=${GL-dir}/lib64 --with-GLlib --without-GLlib error: Bad exit status from /var/tmp/rpm-tmp.dgQW4r (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.dgQW4r (%build) 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-glut.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-glut.spec