Mock Version: 5.2 Mock Version: 5.2 Mock Version: 5.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/switcheroo-control.spec'], chrootPath='/var/lib/mock/f40-build-2330476-59006/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=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/switcheroo-control.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706313600 Wrote: /builddir/build/SRPMS/switcheroo-control-2.6-5.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/switcheroo-control.spec'], chrootPath='/var/lib/mock/f40-build-2330476-59006/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=864000uid=997gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/switcheroo-control.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706313600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.F6r9tO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf switcheroo-control-2.6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/switcheroo-control-2.6.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd switcheroo-control-2.6 + rm -rf /builddir/build/BUILD/switcheroo-control-2.6-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/switcheroo-control-2.6-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.LQhzrp + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd switcheroo-control-2.6 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/meson setup --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . redhat-linux-build -Dgtk_doc=true The Meson build system Version: 1.3.1 Source dir: /builddir/build/BUILD/switcheroo-control-2.6 Build dir: /builddir/build/BUILD/switcheroo-control-2.6/redhat-linux-build Build type: native build Project name: switcheroo-control Project version: 2.6 C compiler for the host machine: gcc (gcc 13.2.1 "gcc (GCC) 13.2.1 20231110 (Red Hat 13.2.1-5)") C linker for the host machine: gcc ld.bfd 2.41-15 Host machine cpu family: riscv64 Host machine cpu: riscv64 Found pkg-config: YES (/usr/bin/pkg-config) 1.9.5 Run-time dependency glib-2.0 found: YES 2.79.0 Run-time dependency gio-2.0 found: YES 2.79.0 Run-time dependency gudev-1.0 found: YES 238 Run-time dependency systemd found: YES 254 Run-time dependency udev found: YES 254 Configuring switcheroo-control.service using configuration Dependency gio-2.0 found: YES 2.79.0 (cached) Program /usr/bin/glib-compile-resources found: YES (/usr/bin/glib-compile-resources) Program python3 found: YES (/usr/bin/python3) Configuring switcherooctl using configuration Configuring version.xml using configuration Dependency gio-2.0 found: YES 2.79.0 (cached) Program /usr/bin/gdbus-codegen found: YES (/usr/bin/gdbus-codegen) Program gtkdoc-scan found: YES (/usr/bin/gtkdoc-scan) Program gtkdoc-scangobj found: YES (/usr/bin/gtkdoc-scangobj) Program gtkdoc-mkdb found: YES (/usr/bin/gtkdoc-mkdb) Program gtkdoc-mkhtml found: YES (/usr/bin/gtkdoc-mkhtml) Program gtkdoc-fixxref found: YES (/usr/bin/gtkdoc-fixxref) Program xsltproc found: YES (/usr/bin/xsltproc) Build targets in project: 9 NOTICE: Future-deprecated features used: * 0.55.0: {'ExternalProgram.path'} * 0.56.0: {'dependency.get_pkgconfig_variable', 'meson.build_root', 'meson.source_root'} * 0.64.0: {'copy arg in configure_file'} switcheroo-control 2.6 User defined options auto_features : enabled bindir : /usr/bin buildtype : plain datadir : /usr/share includedir : /usr/include infodir : /usr/share/info libdir : /usr/lib64 libexecdir : /usr/libexec localedir : /usr/share/locale localstatedir : /var mandir : /usr/share/man prefix : /usr sbindir : /usr/sbin sharedstatedir: /var/lib sysconfdir : /etc wrap_mode : nodownload gtk_doc : true Found ninja-1.11.1 at /usr/bin/ninja + /usr/bin/meson compile -C redhat-linux-build -j 64 --verbose ninja: Entering directory `/builddir/build/BUILD/switcheroo-control-2.6/redhat-linux-build' [1/10] /usr/bin/glib-compile-resources ../src/switcheroo-control.gresource.xml --sourcedir ../src/. --sourcedir ../src --c-name switcheroo_control --generate --target src/switcheroo-control-resources.h [2/10] /usr/bin/glib-compile-resources ../src/switcheroo-control.gresource.xml --sourcedir ../src/. --sourcedir ../src --c-name switcheroo_control --generate --target src/switcheroo-control-resources.c --dependency-file src/switcheroo-control-resources.c.d [3/10] /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix net.hadess --c-namespace SwitcherooControl --body --output docs/switcheroo-control.c /builddir/build/BUILD/switcheroo-control-2.6/src/net.hadess.SwitcherooControl.xml FAILED: docs/switcheroo-control.c /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix net.hadess --c-namespace SwitcherooControl --body --output docs/switcheroo-control.c /builddir/build/BUILD/switcheroo-control-2.6/src/net.hadess.SwitcherooControl.xml Traceback (most recent call last): File "/usr/bin/gdbus-codegen", line 53, in from codegen import codegen_main File "/usr/share/glib-2.0/codegen/codegen_main.py", line 29, in from . import dbustypes File "/usr/share/glib-2.0/codegen/dbustypes.py", line 22, in from . import utils File "/usr/share/glib-2.0/codegen/utils.py", line 22, in import packaging.version ModuleNotFoundError: No module named 'packaging' [4/10] /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix net.hadess --c-namespace SwitcherooControl --output-directory docs --generate-docbook docs /builddir/build/BUILD/switcheroo-control-2.6/src/net.hadess.SwitcherooControl.xml FAILED: docs/docs-net.hadess.SwitcherooControl.xml /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix net.hadess --c-namespace SwitcherooControl --output-directory docs --generate-docbook docs /builddir/build/BUILD/switcheroo-control-2.6/src/net.hadess.SwitcherooControl.xml Traceback (most recent call last): File "/usr/bin/gdbus-codegen", line 53, in from codegen import codegen_main File "/usr/share/glib-2.0/codegen/codegen_main.py", line 29, in from . import dbustypes File "/usr/share/glib-2.0/codegen/dbustypes.py", line 22, in from . import utils File "/usr/share/glib-2.0/codegen/utils.py", line 22, in import packaging.version ModuleNotFoundError: No module named 'packaging' [5/10] /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix net.hadess --c-namespace SwitcherooControl --header --output docs/switcheroo-control.h /builddir/build/BUILD/switcheroo-control-2.6/src/net.hadess.SwitcherooControl.xml FAILED: docs/switcheroo-control.h /usr/bin/gdbus-codegen --c-generate-autocleanup all --interface-prefix net.hadess --c-namespace SwitcherooControl --header --output docs/switcheroo-control.h /builddir/build/BUILD/switcheroo-control-2.6/src/net.hadess.SwitcherooControl.xml Traceback (most recent call last): File "/usr/bin/gdbus-codegen", line 53, in from codegen import codegen_main File "/usr/share/glib-2.0/codegen/codegen_main.py", line 29, in from . import dbustypes File "/usr/share/glib-2.0/codegen/dbustypes.py", line 22, in from . import utils File "/usr/share/glib-2.0/codegen/utils.py", line 22, in import packaging.version ModuleNotFoundError: No module named 'packaging' [6/10] gcc -Isrc/switcheroo-control.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -pthread -DWITH_GZFILEOP -MD -MQ src/switcheroo-control.p/info-cleanup.c.o -MF src/switcheroo-control.p/info-cleanup.c.o.d -o src/switcheroo-control.p/info-cleanup.c.o -c ../src/info-cleanup.c In file included from /usr/include/glib-2.0/glib.h:117, from ../src/info-cleanup.c:21: In function ‘g_autoptr_cleanup_generic_gfree’, inlined from ‘info_cleanup’ at ../src/info-cleanup.c:123:20: /usr/include/glib-2.0/glib/glib-autocleanups.h:32:3: warning: ‘pretty’ may be used uninitialized [-Wmaybe-uninitialized] 32 | g_free (*pp); | ^~~~~~~~~~~~ ../src/info-cleanup.c: In function ‘info_cleanup’: ../src/info-cleanup.c:123:20: note: ‘pretty’ was declared here 123 | g_autofree char *pretty; | ^~~~~~ [7/10] gcc -Isrc/switcheroo-control.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -pthread -DWITH_GZFILEOP -MD -MQ src/switcheroo-control.p/meson-generated_.._switcheroo-control-resources.c.o -MF src/switcheroo-control.p/meson-generated_.._switcheroo-control-resources.c.o.d -o src/switcheroo-control.p/meson-generated_.._switcheroo-control-resources.c.o -c src/switcheroo-control-resources.c [8/10] /usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/switcherooctl.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../docs/switcherooctl.xml [9/10] gcc -Isrc/switcheroo-control.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gudev-1.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -pthread -DWITH_GZFILEOP -MD -MQ src/switcheroo-control.p/switcheroo-control.c.o -MF src/switcheroo-control.p/switcheroo-control.c.o.d -o src/switcheroo-control.p/switcheroo-control.c.o -c ../src/switcheroo-control.c ninja: build stopped: subcommand failed. INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja -C /builddir/build/BUILD/switcheroo-control-2.6/redhat-linux-build -j 64 -v error: Bad exit status from /var/tmp/rpm-tmp.LQhzrp (%build) Bad exit status from /var/tmp/rpm-tmp.LQhzrp (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/switcheroo-control.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/switcheroo-control.spec'