From nobody Wed Dec 7 16:51:31 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NS3GC3gDCz4kG7F for ; Wed, 7 Dec 2022 16:51:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NS3GC1sVYz49mc for ; Wed, 7 Dec 2022 16:51:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670431891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JV87OL6ZaI17EQ2LGpPElfdIWF+zCet0qb0LI37Lz/Q=; b=jPWZJRpUPFVDRSKEtA5Qqod4pm98/EQxx5HkTR/6XNySr612kmeU7JIpsR+i6rTy7SOs2o 2gWQPu6ex6fwVLXd+MQC6pDhZXPvOsY3tZsh7yJc9vWGzBnuuQ2sm7/X/7lcDbINNfsOIF 4zEUDurapUKqxT1zdDd0Adis0ckxZ0VVWjlxCz2SFlDqVOzXitDXjewBuBmSsadMJMKtML iR3TnKQRsLmE+f7mxo03QLlvDwKdQl54sg8yKJr5WoQnoPZYbejWHJIxfLnQ2Y7lxhkRej QjGd4LMJ/Z3ecfRESXGxJtzalJ0Pc5/bqCd583wphVtROzDCpATnMSUzCbdPRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670431891; a=rsa-sha256; cv=none; b=aFAl/pgr0tQDd3ym1EpmPZiXhcHDWHcmTyN8ZoUa8de3YGrM/oH4R17QkIuDF7pii+nui2 q5GaaQPCTTJsD0v43kvHn3iYne5T8DLtQ6R2NfR2vowS3v850hQUfQNBqE2TOhJ7+8CEJy enrDPMo+yAABkfYiEd5dAWIUEF8N4vWWm32fRsVfbn1wlMx5HLHbZkS7bmTdxeSPJ+EQhi uSbujTsDVuEawU9gxG97x/SgL4T2BJcKjmaPwPqj7Gusxpyxo/qP8piV/l8/QIgMjd7nNV d1V3ZquOGiaUopbIg5k7DwPcWRW8IdwNrFMenunS6pa1EfxgmcC55LeTcp079g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NS3GC0ryrzPLJ for ; Wed, 7 Dec 2022 16:51:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2B7GpVYS025738 for ; Wed, 7 Dec 2022 16:51:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B7GpVEo025737 for bugs@FreeBSD.org; Wed, 7 Dec 2022 16:51:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 259702] buildkernel -j[#] with PORTS_MODULES pauses indefinitely with SIGNAL 22 if port config not set yet Date: Wed, 07 Dec 2022 16:51:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jon@xyinn.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259702 Jonathan Vasquez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jon@xyinn.org --- Comment #1 from Jonathan Vasquez --- Thanks Edward for that description. This actually helped me figure out why = my builds were getting stuck with the Signal 22 issue. Yea it seems you are ri= ght that if you haven't set your port options in the ports directory for `virtualbox-ose-kmod`, you'll get this issue. I tried the following below: You can consider this happening after a fresh install and a fresh build stable/13 has already occurred (buildworld buildkernel). After this, I'll add the following to /etc/make.conf: PORTS_MODULES+=3Dnet/realtek-re-kmod graphics/drm-510-kmod emulators/virtualbox-ose-kmod /usr/ports has the latest changes using git pull. // Step 1: Try and rebuild the kernel and allow the build system to hook in= to PORTS_MODULES // in order to rebuild all of those modules. # cd /usr/src # make -j32 buildkernel =3D=3D=3D> Ports module emulators/virtualbox-ose-kmod (all) cd ${PORTSDIR:-/usr/ports}/emulators/virtualbox-ose-kmod; env -u CC -u CX= X=20 -u CPP -u MAKESYSPATH -u MK_AUTO_OBJ -u MAKEOBJDIR MAKEFLAGS=3D"-j 32 -J 15,16 -j 32 -J 15,16 -D NO_MODULES_OBJ KERNEL=3Dkernel TARGET=3Damd64 TARGET_ARCH=3Damd64" SYSDIR=3D/usr/src/sys=20 PATH=3D/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tm= p/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/loca= l/sbin SRC_BASE=3D/usr/src OSVERSION=3D1301509=20 WRKDIRPREFIX=3D/usr/obj/usr/src/amd64.amd64/sys/GENERIC make -B clean build =3D=3D=3D> Cleaning for virtualbox-ose-kmod-6.1.36 *** [all] Stopped -- signal 22 // The above causes our Signal 22 issue. Let's go ahead and set the ports options for the virtualbox-ose-kmod port: # cd /usr/ports/emulators/virtualbox-ose-kmod # make config-recursive // Set all of the options and then switch back to the /usr/src dir and try = and rebuild. cd /usr/src make -j32 buildkernel // This allows the Signal 22 issue to no longer occur, but fails with a different issue: make[3]: stopped in /usr/ports/emulators/virtualbox-ose-kmod *** [all] Error code 1 make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC 1 error make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC make[1]: stopped in /usr/src make: stopped in /usr/src // Let's try and set any other remaining port options on the `virtualbox-os= e` main port package // directly. Maybe it's similar to Signal 22 but starting from the main virtualbox package: # cd /usr/ports/emulators/virtualbox-ose # make config-recursive // Try and rebuild # cd /usr/src # make -j32 buildkernel // Still fails with the same issue. Let's try and actually just build our `virtualbox-ose` // in its entirety and not just try to build the kernel module: # cd /usr/ports/emulators/virtualbox-ose # make install clean // The build now succeeded! Let's try and rebuild the kernel module again to see if going // forward it should (usually) build fine: # cd /usr/src # make -j32 buildkernel -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Wed Dec 7 11:46:49 EST 2022 -------------------------------------------------------------- >>> Kernel(s) GENERIC built in 194 seconds, ncpu: 32, make -j32 -------------------------------------------------------------- // and now it works. So now we know the issue, but is there a better user experience for this? A= m I just doing it wrong or is this as good as it gets? --=20 You are receiving this mail because: You are the assignee for the bug.=