Bug#1011726: switcheroo-control: FTBFS: AssertionError: 0 != 1
Lucas Nussbaum
lucas at debian.org
Thu May 26 07:13:24 BST 2022
Source: switcheroo-control
Version: 2.4-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_configure -- \
> -Dgtk_doc=false \
> -Dsystemdsystemunitdir=/lib/systemd/system \
> -Dhwdbdir=/lib/udev/hwdb.d
> cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 meson .. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu -Dgtk_doc=false -Dsystemdsystemunitdir=/lib/systemd/system -Dhwdbdir=/lib/udev/hwdb.d
> The Meson build system
> Version: 0.62.1
> Source dir: /<<PKGBUILDDIR>>
> Build dir: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
> Build type: native build
> Project name: switcheroo-control
> Project version: 2.4
> C compiler for the host machine: cc (gcc 11.3.0 "cc (Debian 11.3.0-3) 11.3.0")
> C linker for the host machine: cc ld.bfd 2.38
> Host machine cpu family: x86_64
> Host machine cpu: x86_64
> Found pkg-config: /usr/bin/pkg-config (0.29.2)
> Run-time dependency glib-2.0 found: YES 2.72.1
> Run-time dependency gio-2.0 found: YES 2.72.1
> Run-time dependency gudev-1.0 found: YES 237
> Configuring switcheroo-control.service using configuration
> Found pkg-config: /usr/bin/pkg-config (0.29.2)
> Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
> Program python3 found: YES (/usr/bin/python3)
> Configuring switcherooctl using configuration
> Program integration-test found: YES (/<<PKGBUILDDIR>>/tests/integration-test)
> Build targets in project: 3
> NOTICE: Future-deprecated features used:
> * 0.55.0: {'ExternalProgram.path'}
> * 0.56.0: {'meson.build_root'}
>
> switcheroo-control 2.4
>
> User defined options
> buildtype : plain
> libdir : lib/x86_64-linux-gnu
> localstatedir : /var
> prefix : /usr
> sysconfdir : /etc
> wrap_mode : nodownload
> gtk_doc : false
> hwdbdir : /lib/udev/hwdb.d
> systemdsystemunitdir: /lib/systemd/system
>
> Found ninja-1.11.0 at /usr/bin/ninja
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_build
> cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v
> [1/6] /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
> xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
> [2/6] /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
> xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
> [3/6] cc -Isrc/switcheroo-control.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -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 -O0 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -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
> [4/6] cc -Isrc/switcheroo-control.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -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 -O0 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -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
> [5/6] cc -Isrc/switcheroo-control.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -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 -O0 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -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
> [6/6] cc -o src/switcheroo-control src/switcheroo-control.p/meson-generated_.._switcheroo-control-resources.c.o src/switcheroo-control.p/info-cleanup.c.o src/switcheroo-control.p/switcheroo-control.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,-z,defs -Wl,--as-needed -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,--start-group /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libgudev-1.0.so -Wl,--end-group
> dh_auto_test
> cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=8 ninja test
> [0/1] Running all tests.
> 1/1 switcheroo-control-integration-test FAIL 0.54s exit status 1
> >>> MALLOC_PERTURB_=51 top_builddir=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/tests/integration-test
> ――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――
> stdout:
> Testing binaries from local build tree (/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/switcheroo-control)
> stderr:
>
> -------------- daemon log: ----------------
> ------------------------------
> F
> -------------- daemon log: ----------------
> ------------------------------
> F
> -------------- daemon log: ----------------
> ------------------------------
> F
> ======================================================================
> FAIL: test_dual_hotplug (__main__.Tests)
> dual open source devices
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/integration-test", line 376, in test_dual_hotplug
> self.assertEqual(self.get_dbus_property('NumGPUs'), 1)
> AssertionError: 0 != 1
>
> ======================================================================
> FAIL: test_dual_open_source (__main__.Tests)
> dual open source devices
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/integration-test", line 351, in test_dual_open_source
> self.assertEqual(self.get_dbus_property('HasDualGpu'), True)
> AssertionError: False != True
>
> ======================================================================
> FAIL: test_single_device (__main__.Tests)
> single device
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/integration-test", line 289, in test_single_device
> self.assertEqual(self.get_dbus_property('NumGPUs'), 1)
> AssertionError: 0 != 1
>
> ----------------------------------------------------------------------
> Ran 3 tests in 0.344s
>
> FAILED (failures=3)
> ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
>
>
> Summary of Failures:
>
> 1/1 switcheroo-control-integration-test FAIL 0.54s exit status 1
>
>
> Ok: 0
> Expected Fail: 0
> Fail: 1
> Unexpected Pass: 0
> Skipped: 0
> Timeout: 0
>
> Full log written to /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/meson-logs/testlog.txt
> FAILED: meson-test
> /usr/bin/meson test --no-rebuild --print-errorlogs
> ninja: build stopped: subcommand failed.
> cd obj-x86_64-linux-gnu && tail -v -n \+0 meson-logs/testlog.txt
> ==> meson-logs/testlog.txt <==
> Log of Meson test suite run on 2022-05-25T21:21:17.042943
>
> Inherited environment: DEB_HOST_GNU_SYSTEM=linux-gnu DFLAGS=-frelease DEB_BUILD_ARCH_BITS=64 DEB_TARGET_GNU_CPU=x86_64 DEB_HOST_ARCH_OS=linux USER=user42 CXXFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security' DEB_BUILD_GNU_TYPE=x86_64-linux-gnu DEB_TARGET_MULTIARCH=x86_64-linux-gnu OBJCFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security' DEB_BUILD_ARCH_CPU=amd64 DEB_HOST_ARCH_LIBC=gnu DEB_HOST_ARCH_ABI=base HOME=/sbuild-nonexistent APT_CONFIG=/var/lib/sbuild/apt.conf SCHROOT_CHROOT_NAME=sid-amd64-sbuild DEB_BUILD_ARCH_ENDIAN=little LDFLAGS='-Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,-z,defs -Wl,--as-needed' DEB_TARGET_ARCH_BITS=64 DEB_BUILD_GNU_SYSTEM=linux-gnu MAKEFLAGS='' SCHROOT_UID=1001 DEB_BUILD_ARCH_OS=linux DEB_TARGET_GNU_TYPE=x86_64-linux-gnu DEB_TARGET_ARCH_CPU=amd64 LOGNAME=user42 DEB_LDFLAGS_MAINT_APPEND='-Wl,-O1 -Wl,-z,defs -Wl,--as-needed' DEB_BUILD_ARCH_LIBC=gnu DEB_BUILD_ARCH_ABI=base DEB_HOST_ARCH=amd64 DEB_TARGET_ARCH_ENDIAN=little DEB_HOST_GNU_CPU=x86_64 LC_COLLATE=C.UTF-8 DEB_TARGET_GNU_SYSTEM=linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games MESON_TESTTHREADS=8 DEB_TARGET_ARCH_OS=linux MAKELEVEL=1 CFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security' DEB_HOST_MULTIARCH=x86_64-linux-gnu SOURCE_DATE_EPOCH=1614591430 SCHROOT_SESSION_ID=sid-amd64-sbuild-c8ac5439-88cc-4396-9c0c-e6eaf54433bf SCHROOT_COMMAND='dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -sa' FCFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong' LANG=C.UTF-8 SCHROOT_ALIAS_NAME=unstable OBJCXXFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security' DEB_TARGET_ARCH_LIBC=gnu DEB_TARGET_ARCH_ABI=base DEB_BUILD_OPTIONS=parallel=8 SCHROOT_GROUP=user42 SCHROOT_USER=user42 DH_INTERNAL_BUILDFLAGS=1 CPPFLAGS='-Wdate-time -D_FORTIFY_SOURCE=2' SHELL=/bin/sh DEB_HOST_ARCH_BITS=64 DEB_BUILD_ARCH=amd64 DEB_BUILD_MAINT_OPTIONS=hardening=+all DEB_BUILD_GNU_CPU=x86_64 DEB_HOST_GNU_TYPE=x86_64-linux-gnu ASFLAGS='' LC_ALL=C.UTF-8 DEB_HOST_ARCH_CPU=amd64 DEB_RULES_REQUIRES_ROOT=binary-targets PWD=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu DEB_BUILD_MULTIARCH=x86_64-linux-gnu FFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong' SCHROOT_GID=1001 MFLAGS='' GCJFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong' DEB_HOST_ARCH_ENDIAN=little DEB_TARGET_ARCH=amd64
>
> 1/1 switcheroo-control-integration-test FAIL 0.54s exit status 1
> 21:21:17 MALLOC_PERTURB_=51 top_builddir=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/tests/integration-test
> ----------------------------------- output -----------------------------------
> stdout:
> Testing binaries from local build tree (/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/switcheroo-control)
> stderr:
>
> -------------- daemon log: ----------------
> ------------------------------
> F
> -------------- daemon log: ----------------
> ------------------------------
> F
> -------------- daemon log: ----------------
> ------------------------------
> F
> ======================================================================
> FAIL: test_dual_hotplug (__main__.Tests)
> dual open source devices
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/integration-test", line 376, in test_dual_hotplug
> self.assertEqual(self.get_dbus_property('NumGPUs'), 1)
> AssertionError: 0 != 1
>
> ======================================================================
> FAIL: test_dual_open_source (__main__.Tests)
> dual open source devices
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/integration-test", line 351, in test_dual_open_source
> self.assertEqual(self.get_dbus_property('HasDualGpu'), True)
> AssertionError: False != True
>
> ======================================================================
> FAIL: test_single_device (__main__.Tests)
> single device
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/integration-test", line 289, in test_single_device
> self.assertEqual(self.get_dbus_property('NumGPUs'), 1)
> AssertionError: 0 != 1
>
> ----------------------------------------------------------------------
> Ran 3 tests in 0.344s
>
> FAILED (failures=3)
> ------------------------------------------------------------------------------
>
>
> Summary of Failures:
>
> 1/1 switcheroo-control-integration-test FAIL 0.54s exit status 1
>
>
> Ok: 0
> Expected Fail: 0
> Fail: 1
> Unexpected Pass: 0
> Skipped: 0
> Timeout: 0
> dh_auto_test: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=8 ninja test returned exit code 1
The full build log is available from:
http://qa-logs.debian.net/2022/05/25/switcheroo-control_2.4-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the pkg-gnome-maintainers
mailing list