Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gcc-toolset-12.spec'], chrootPath='/var/lib/mock/alma+epel-9-x86_64/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=1001gid=1001user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gcc-toolset-12.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 error: line 3: Unknown tag: %scl_package gcc-toolset-12 Building target platforms: x86_64 Building for target x86_64 Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gcc-toolset-12.spec Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gcc-toolset-12.spec'], chrootPath='/var/lib/mock/alma+epel-9-x86_64/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=1001gid=1001user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gcc-toolset-12.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 error: line 3: Unknown tag: %scl_package gcc-toolset-12 Building target platforms: x86_64 Building for target x86_64 Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gcc-toolset-12.spec Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.spec'], chrootPath='/var/lib/mock/alma+epel-9-x86_64/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=1001gid=1001user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.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 error: line 3: Unknown tag: %scl_package gcc-toolset-12 Building target platforms: x86_64 Building for target x86_64 Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.spec Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.spec'], chrootPath='/var/lib/mock/alma+epel-9-x86_64/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=1001gid=1001user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.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 error: line 15: Dependency tokens must begin with alpha-numeric, '_' or '/': Requires: %{scl_prefix}runtime Building target platforms: x86_64 Building for target x86_64 Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.spec Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.spec'], chrootPath='/var/lib/mock/alma+epel-9-x86_64/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=1001gid=1001user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.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 error: line 41: Dependency tokens must begin with alpha-numeric, '_' or '/': Requires(post): %{_root_sbindir}/semanage %{_root_sbindir}/restorecon Building target platforms: x86_64 Building for target x86_64 Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.spec Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.spec'], chrootPath='/var/lib/mock/alma+epel-9-x86_64/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=1001gid=1001user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/originals/gcc-toolset-12.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 Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1656460800 Wrote: /builddir/build/SRPMS/gcc-toolset-12-12.0-5.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', "/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps --define '__spec_check_template exit 0; ' /builddir/build/originals/gcc-toolset-12.spec"], chrootPath='/var/lib/mock/alma+epel-9-x86_64/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=1001gid=1001user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', "/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps --define '__spec_check_template exit 0; ' /builddir/build/originals/gcc-toolset-12.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 Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1656460800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7BboJd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gcc-toolset-12-12.0 + /usr/bin/mkdir -p gcc-toolset-12-12.0 + cd gcc-toolset-12-12.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cat + tee README Package gcc-toolset-12 is the main package for Red Hat GCC Toolset 12. By installing the gcc-toolset-12 package, you will get the working set of packages that are included in Red Hat GCC Toolset 12, which includes development and debugging tools. Usage: scl enable %{scl} Red Hat GCC Toolset allows you to build and execute applications which are not located in the filesystem root hierarchy, but are stored in an alternative location, which is %{_scl_root} in case of the gcc-toolset-12 collection. Examples: scl enable gcc-toolset-12 'command --arg' Run a specific command with the argument --arg within the gcc-toolset-12 Red Hat GCC Toolset environment. scl enable gcc-toolset-12 'gcc' Run GCC from the gcc-toolset-12 Red Hat GCC Toolset. scl enable gcc-toolset-12 'bash' Run an interactive shell wherein the gcc-toolset-12 software collection is enabled. scl enable gcc-toolset-12 'man gcc' Show man pages for the gcc command, which is a part of the gcc-toolset-12 Red Hat GCC Toolset. Report bugs to . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WrV9TK + umask 022 + cd /builddir/build/BUILD + cd gcc-toolset-12-12.0 + cat + tee h2m_helper #!/bin/sh if [ "$1" = "--version" ]; then printf '%s' "gcc-toolset-12 12.0 Software Collection" else cat README fi + chmod a+x h2m_helper + help2man -N --section 7 ./h2m_helper -o gcc-toolset-12.7 + cat + cat + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7W50jC + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64 ++ dirname /builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64 + cd gcc-toolset-12-12.0 + mkdir -p '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_root_sysconfdir}/rpm' '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_root_sysconfdir}/scl/prefixes' '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_root_sysconfdir}/scl/modulefiles' + cat + cat + test -e '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_scl_scripts}/%{scl}' + set +x ~/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64/var ~/build/BUILD/gcc-toolset-12-12.0 ~/build/BUILD/gcc-toolset-12-12.0 ~/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64/etc ~/build/BUILD/gcc-toolset-12-12.0 ~/build/BUILD/gcc-toolset-12-12.0 ~/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_scl_root} ~/build/BUILD/gcc-toolset-12-12.0 + popd ~/build/BUILD/gcc-toolset-12-12.0 + cat + mkdir -p '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_scl_root}/etc/alternatives' '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_scl_root}/var/lib/alternatives' + install -d -m 755 '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_scl_scripts}' + install -p -m 755 enable '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_scl_scripts}/' + install -d -m 755 '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64%{_scl_scripts}' + install -p -m 755 sudo /builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64/usr/bin/ install: target '/builddir/build/BUILDROOT/gcc-toolset-12-12.0-5.el9.x86_64/usr/bin/' is not a directory: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.7W50jC (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.7W50jC (%install) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 --noclean --target x86_64 --nodeps --define '__spec_check_template exit 0; ' /builddir/build/originals/gcc-toolset-12.spec