Re: stable/13 - amdgpu broken with n253286-d8a88ec38149
- Reply: Marco : "Re: stable/13 - amdgpu broken with n253286-d8a88ec38149"
- In reply to: marco : "Re: stable/13 - amdgpu broken with n253286-d8a88ec38149"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Jan 2023 20:12:28 UTC
On Fri, Jan 06, 2023 at 02:52:31PM +0000, you (marco) sent the following to [freebsd-stable] : > > [/usr/src] uname -aKU > FreeBSD harbinger.fritz.box 13.1-STABLE FreeBSD 13.1-STABLE #0 n253282-50f61166f7b9: Fri Jan 6 13:09:11 UTC 2023 root@harbinger.fritz.box:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1301510 1301510 > > I'm now rebuilding world using the latest commit 1149f0ec2b18 to see > what happens and if I need to perform this dance again or not. buildworld and kernel went fine for 1149f0ec2b18. I use the following /etc/make.conf to rebuild graphics/drm-510-kmod from ports whenever I run /usr/src/tools/build/beinstall.sh : PORTS_MODULES+= graphics/drm-510-kmod DEFAULT_VERSIONS+=ssl=openssl However, installkernel threw following error when running tools/build/beinstall.sh : root@harbinger:/usr/src # sh tools/build/beinstall.sh | tee /var/tmp/beinstall.sh-13.1-STABLE-1149f0ec2b18 Full beinstall.sh output at https://bsd.to/553X excerpt below: Successfully mounted 13.1-STABLE-20230106.075757 at /tmp/beinstall.8856oj/mnt Mounted 13.1-STABLE-20230106.075757 to /tmp/beinstall.8856oj/mnt, performing install/update ... -------------------------------------------------------------- >>> Install check kernel -------------------------------------------------------------- -------------------------------------------------------------- >>> Installing kernel GENERIC on Fri Jan 6 19:41:14 UTC 2023 -------------------------------------------------------------- cd /usr/obj/usr/src/amd64.amd64/sys/GENERIC; MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-freebsd13.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CXX="c++ -target x86_64-unknown-freebsd13.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CPP="cpp -target x86_64-unknown-freebsd13.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" ELFCTL="elfctl" LD="ld" LLVM_LINK="" NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" STRIPBIN="strip" PATH=/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin make KERNEL=kernel install thiskernel=`sysctl -n kern.bootfile || echo /boot/kernel/kernel` ; if [ ! "`dirname "$thiskernel"`" -ef /tmp/beinstall.8856oj/mnt/boot/kernel ] ; then chflags -R noschg /tmp/beinstall.8856oj/mnt/boot/kernel ; rm -rf /tmp/beinstall.8856oj/mnt/boot/kernel ; rm -rf /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel ; else if [ -d /tmp/beinstall.8856oj/mnt/boot/kernel.old ] ; then chflags -R noschg /tmp/beinstall.8856oj/mnt/boot/kernel.old ; rm -rf /tmp/beinstall.8856oj/mnt/boot/kernel.old ; fi ; mv /tmp/beinstall.8856oj/mnt/boot/kernel /tmp/beinstall.8856oj/mnt/boot/kernel.old ; if [ -n "/usr/lib/debug" -a -d /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel ]; then rm -rf /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel.old ; mv /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel.old ; fi ; sysctl kern.bootfile=/tmp/beinstall.8856oj/mnt/boot/kernel.old/"`basename "$thiskernel"`" ; fi mkdir -p /tmp/beinstall.8856oj/mnt/boot/kernel install -p -m 555 -o root -g wheel kernel /tmp/beinstall.8856oj/mnt/boot/kernel/ mkdir -p /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel install -p -m 555 -o root -g wheel kernel.debug /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel/ cd /usr/src/sys/modules; MAKEOBJDIRPREFIX=/usr/obj/usr/src/amd64.amd64/sys/GENERIC/modules KMODDIR=/boot/kernel MACHINE_CPUARCH=amd64 MACHINE=amd64 MACHINE_ARCH=amd64 MODULES_EXTRA="" WITHOUT_MODULES="" ARCH_FLAGS="" DEBUG_FLAGS="-g" __MPATH="" DESTDIR="/tmp/beinstall.8856oj/mnt" KERNBUILDDIR="/usr/obj/usr/src/amd64.amd64/sys/GENERIC" SYSDIR="/usr/src/sys" MODULE_TIED=yes WITH_CTF="1" KCSAN_ENABLED="yes" COMPAT_FREEBSD32_ENABLED="yes" make install ===> aac (install) install -T release -o root -g wheel -m 555 aac.ko /tmp/beinstall.8856oj/mnt/boot/kernel/ install -T dbg -o root -g wheel -m 555 aac.ko.debug /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel/ ===> aacraid (install) install -T release -o root -g wheel -m 555 aacraid.ko /tmp/beinstall.8856oj/mnt/boot/kernel/ install -T dbg -o root -g wheel -m 555 aacraid.ko.debug /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel/ ===> accf_data (install) install -T release -o root -g wheel -m 555 accf_data.ko /tmp/beinstall.8856oj/mnt/boot/kernel/ rest of install output omitted to keep email readable ===> zlib (install) install -T release -o root -g wheel -m 555 zlib.ko /tmp/beinstall.8856oj/mnt/boot/kernel/ install -T dbg -o root -g wheel -m 555 zlib.ko.debug /tmp/beinstall.8856oj/mnt/usr/lib/debug/boot/kernel/ kldxref /tmp/beinstall.8856oj/mnt/boot/kernel ===> Ports module graphics/drm-510-kmod (install) cd ${PORTSDIR:-/usr/ports}/graphics/drm-510-kmod; env -u CC -u CXX -u CPP -u MAKESYSPATH -u MK_AUTO_OBJ -u MAKEOBJDIR MAKEFLAGS="DESTDIR=/tmp/beinstall.8856oj/mnt KERNEL=kernel TARGET=amd64 TARGET_ARCH=amd64" SYSDIR=/usr/src/sys PATH=/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin SRC_BASE=/usr/src OSVERSION=1301510 WRKDIRPREFIX=/usr/obj/usr/src/amd64.amd64/sys/GENERIC make -B deinstall reinstall ===> Creating some important subdirectories ===> Starting chrooted make in /tmp/beinstall.8856oj/mnt... ===> Deinstalling for drm-510-kmod ===> Deinstalling drm-510-kmod-5.10.113_8 Updating database digests format: . done Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: drm-510-kmod: 5.10.113_8 Number of packages to be removed: 1 The operation will free 13 MiB. [1/1] Deinstalling drm-510-kmod-5.10.113_8... [1/1] Deleting files for drm-510-kmod-5.10.113_8: .......... done ===> Deinstalling for drm-510-kmod ===> drm-510-kmod not installed, skipping ===> License BSD2CLAUSE MIT GPLv2 accepted by the user ===> drm-510-kmod-5.10.113_8 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by drm-510-kmod-5.10.113_8 for building ===> Extracting for drm-510-kmod-5.10.113_8 => SHA256 Checksum OK for freebsd-drm-kmod-5.10.113-drm_v5.10.113_9_GH0.tar.gz. ===> Patching for drm-510-kmod-5.10.113_8 ===> Configuring for drm-510-kmod-5.10.113_8 ===> Building for drm-510-kmod-5.10.113_8 /bin/mkdir -p /tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_9/obj (cd /tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_9 ; /usr/bin/env MAKEOBJDIRPREFIX=/tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_9/obj KMODDIR="/boot/modules" SYSDIR="/usr/src/sys" NO_XREF=yes XDG_DATA_HOME=/tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work XDG_CONFIG_HOME=/tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work XDG_CACHE_HOME=/tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work/.cache HOME=/tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work PATH=/tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work/.bin:/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin PKG_CONFIG_LIBDIR=/tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" /usr/bin/make obj) make[2]: stopped in /tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_9 *** Error code 1 Stop. make[1]: stopped in /tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod *** Error code 1 Stop. make: stopped in /tmp/mountpoint.Nm2UGU/graphics/drm-510-kmod ===> Chrooted make in /tmp/beinstall.8856oj/mnt failed ===> Cleaning up... *** Error code 1 Stop. make[3]: stopped in /usr/ports/graphics/drm-510-kmod *** Error code 1 Stop. make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src Cleaning up ... error: Installkernel failed! The newly created 13.1-STABLE-20230106.075757 BE is not present (expected behaviour due to beinstall.sh not able to complete ?) : bectl list -aDs BE/Dataset/Snapshot Active Mountpoint Space Created 13.1-STABLE-20221129.225633 zroot/ROOT/13.1-STABLE-20221129.225633 - - 3.98M 2022-12-08 20:38 zroot/ROOT/13.1-STABLE-20221215.095511@2022-12-09-08:46:03-0 - - 7.75G 2022-12-09 08:46 13.1-STABLE-20221208.200239 zroot/ROOT/13.1-STABLE-20221208.200239 - - 15.6M 2022-12-09 08:46 zroot/ROOT/13.1-STABLE-20221215.095511@2023-01-06-13:31:25-0 - - 7.56G 2023-01-06 13:31 13.1-STABLE-20221215.095511 zroot/ROOT/13.1-STABLE-20221215.095511 NR / 59.6G 2023-01-06 13:31 13.1-STABLE-20221215.095511@2022-09-30-22:33:16-0 - - 9.20G 2022-09-30 22:33 13.1-STABLE-20221215.095511@2022-10-08-12:30:00-0 - - 8.44G 2022-10-08 12:30 13.1-STABLE-20221215.095511@2022-12-09-08:46:03-0 - - 7.75G 2022-12-09 08:46 13.1-STABLE-20221215.095511@2023-01-06-13:31:25-0 - - 7.56G 2023-01-06 13:31 This is the first time for me beinstall.sh has thrown an error like this so I'm in the dark how to investigate any further. The ports tree was up 2 date when building world and kernel. -- Marco van Lienen -- FreeBSD enthusiast https://keybase.io/scarcry , GnuPG fingerprint: A025 D8AA AC1B D2FC 380D 4FC1 8EA0 0BA8 8580 E6CB "The Tuck Pendleton machine...zero defects."