From nobody Fri Feb 24 17:53:42 2023 X-Original-To: emulation@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 4PNcvV2FV7z3tlM2 for ; Fri, 24 Feb 2023 17:53:42 +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 4PNcvT6RGkz3K27 for ; Fri, 24 Feb 2023 17:53:41 +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=1677261221; 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=LLM3JpFmC6iMO4//OyhO5VfNOwt0Loa+xfqKEqgA7tU=; b=wkSmFfVIXExmGvCXecjvHus+lckgARo/RNEom+71SnWSyJqDgvHoTADgn9fTcrOiyaoTSQ 1gEiSgUozce1/SX2OISYoJAGRRA03gClaYvn8qCCuEBWsuv0Xf12HUujN+elx6+B7ntmo+ KDqe08g5Vb5tuiSnEvGfvMGBXm9BV7XvQDhoNAJiw2B4klSSyG4FxsyFMUnEdKzVRmISuN 6AsSfxMBOqMf3uhfOQIXaZa+pA1PI/3nPQjioLiZD/Sxnvg08R9edKmOlhtKvDVIXOgylL ftrmlLXzyv/83G+CLfxj/hjfCs1PIsEesviQmyM9Th+vhqAZNqWwTEkP/kbkTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677261221; a=rsa-sha256; cv=none; b=Dpfx9uNQE3j+MGXqPG0oV/BkbmBzO5Obl9L1RVl+n6YZ9xT1hyEYENr9uUT8EAyfQfsugN /f+wsN039qrI5va2vNqUsFbu9DKPbVGQgIT7o33+lVAIGZCtsuNdtbBVCN+VB53lRco+Og HQUCkc0O4pSd0T08sNjGd2MzqcZFpcOzbYx5lbZ3VgWqCrHMEKWuU77SWZhMi6vWXyeXVz CcOQSS6zuH/noeg2Mlsk81DlyWfg1aKz9Z727k3tWAL2Uj14GAygyfwAaDr+hi1Nvk+jiy OLjdIOekPKrhDp4WI776ZMLTLSjxE8/zMB8lca+V5TfsSCzIfiZnQn50JAB/Hg== 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 4PNcvT5V9gzYCp for ; Fri, 24 Feb 2023 17:53:41 +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 31OHrfdF068831 for ; Fri, 24 Feb 2023 17:53:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31OHrfXm068830 for emulation@FreeBSD.org; Fri, 24 Feb 2023 17:53:41 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: emulation@FreeBSD.org Subject: [Bug 268540] emulators/linux-c7 have too old GLIBC for some software: /lib64/libc.so.6: version `GLIBC_2.26' not found (required by lwjgl/3.3.1-build-7/liblwjgl.so) Date: Fri, 24 Feb 2023 17:53:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: sv@ulstu.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: 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: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268540 --- Comment #10 from Serge Volkov --- (In reply to VVD from comment #9) I installed the Yandex browser a few days ago. And updated the instructions= at this link https://ulbsd.ru/shop/view/article/175. With my configs and setti= ngs, the sound in the Yandex browser works. Perhaps this is due to the fact that= I did not install the package on a clean FreeBSD, but on ULBSD. It has several hundred different packages installed. But the base system is FreeBSD 13.1 RELEASE-p7, latest KDE Plasma 5. And I also set the Ubuntu 22.04 (jammy) environment. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Feb 26 09:44:01 2023 X-Original-To: emulation@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 4PPdxZ1b8qz3t7VF for ; Sun, 26 Feb 2023 09:44:02 +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 4PPdxY5Llxz4NT0 for ; Sun, 26 Feb 2023 09:44:01 +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=1677404641; 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=LANHQpH8AXXqDD0J0rs/ZBGt0SMPfEos5uijp17ukYg=; b=beVsaDQSBz4n9dGxyp3XZ/NFtxktymVveGG5QIV9oRs16cKYBA9dyfRQCvh2sIZZqgds5B 7/KG2CM+Aoh1uqpfSI0rDiMMAeMHmv0bRq1N+vPJfdWm0JJENMRR69B78d4t5O/QFuMT2E z/yl5GPYDSEC9v2JwamlNCljSa6ejlv4ch3xCQes62HVfpcUjM1a6wldDX6HObHdqIpZUz FhpVhFDyFGjareh/1GEl0IGhPk184zmvHI83yDq+i4sTx96I06TjSVdFHTh4sw9jhX9Zu3 qiNw6adc538YdO1Cl2I1hryTBjGbwMJH2VPBTn4McZMJkOmWntYuhWqnpNAaBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677404641; a=rsa-sha256; cv=none; b=iRCx4rTFCPPF5B44McS1L+I12tI+zObCT0MEjYw6kDosdA3PqK+sbPt5+40Nokg5QqXk7+ wD0b20ezO7Cp/cWHb9XV0e2ATjL4sgHjO1llEwOJbNETetKltfJZ3sw7FdXQtVT2AC62S3 zTSaNmCDpQVjRbgWHcbH8AhIAQG6zNtL6irS9c0XeCzTVJqRvvJsIXllxA2Q4GiuFUMidY Mw1Io32Vs5tg1YuekiBk4xElD2ev7auKoZ9WyjenT10Hv2JamDE+tJGjCWcBxGW8wApUd5 8Z0pjwrlwJA9QVSXC1AEwBRlZ97u0zGF7RTz3uXqVFRjtbcIWHpf2kTQr6V9hg== 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 4PPdxY46swzgmG for ; Sun, 26 Feb 2023 09:44:01 +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 31Q9i1Co099993 for ; Sun, 26 Feb 2023 09:44:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31Q9i1mn099992 for emulation@FreeBSD.org; Sun, 26 Feb 2023 09:44:01 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: emulation@FreeBSD.org Subject: [Bug 265937] [Linuxulator]: linprocfs: process size incorrect Date: Sun, 26 Feb 2023 09:44:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: fernape@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created 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: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265937 Fernando Apestegu=C3=ADa changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fernape@FreeBSD.org --- Comment #3 from Fernando Apestegu=C3=ADa --- Created attachment 240417 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D240417&action= =3Dedit Remove P2K when printing ki_size in 'stat' file I can confirm. This is what I see in my Ubuntu system: fernape~ cat /proc/1993/stat 1993 (gnome-session-b) S 1990 1990 1990 1026 1990 4194304 1726 5624 2 6 4 2= 6 2 20 0 3 0 9929 --->230969344<--- 3912 18446744073709551615 94683959459840 94683959602729 140731149451200 0 0 0 0 4096 16386 0 0 0 17 0 0 0 0 0 0 94683959675184 94683959689872 94683990056960 140731149454254 140731149454305 140731149454305 140731149455318 0 fernape~ cat /proc/1993/status | grep VmSize VmSize: 225556 kB <--- fernape~ cat /proc/1993/statm 56389 <--- 3912 3485 35 0 4481 0 According to https://www.kernel.org/doc/html/latest/filesystems/proc.html, = the three marked values should be the same, but in different units: status is in kB statm is in pages stat is in bytes Let's see if they check out: In status, we have 225556 kb divided by 4 (since my pages in Ubuntu are 4 kB each) gives me 56389 pages and if I multiply by 4046 bytes in each page, we= get the 230969344 bytes in the 'stat' file. This is what I see in current for my fluxbox process in the linprocfs: fernape@hammer:~$ grep VmSize /compat/linux/proc/1549/status=20 VmSize: 24708 kB fernape@hammer:~$ cat /compat/linux/proc/1549/statm 6177 2884 0 208 36 5932 0 fernape@hammer:~$ cut -f23 -d' ' /compat/linux/proc/1549/stat 101203968 This does not check out: 24708 kb bytes =3D 6177 pages (I have 4 kb pages) = =3D 25300992 bytes, not the 101203968 reported by 'stat'. It is, in effect, exa= ctly 4 times higher. With the attached patch, the result is the expected one: fernape@hammer:~$ grep VmSize /compat/linux/proc/1470/status=20 VmSize: 24708 kB fernape@hammer:~$ cut -f23 -d' ' /compat/linux/proc/1470/stat 25300992 <--- This is now 24708 * 1024 fernape@hammer:~$ cat /compat/linux/proc/1470/statm 6177 2810 0 208 36 5932 0 <--- This is still 24708/4 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Feb 26 11:22:37 2023 X-Original-To: emulation@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 4PPh7K6mGsz3tDkl for ; Sun, 26 Feb 2023 11:22:37 +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 4PPh7K5LThz3F3R for ; Sun, 26 Feb 2023 11:22:37 +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=1677410557; 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=mnyQ54zMsa06U5CmrZJiX+CH8zR7YOw4/sFa4xD8tHQ=; b=VDeAFRS1SpmjD0odi4pqHLpI6Bgto6e8TyPRVjzKHJn/BpXiyYR2XO/7iQqblUNyfuRCio jZQ7gmhkypEmN8U+xf1RfQ2Z85xHjwDSFO1/QK68jd40KpKjlvPR8wDzlxD6PsFZ2jwYFw OSnBhXBwlLqSSRyzKZb3npGZ18RpWaD9YkMfOq0BzHgsgM2z8Bh5v182rhEkrgBh8I5ze5 JIRzHtTaP51YMd3jYKlB/uRPLAlMZANa4yenvuec9Mzio2WYmKyoeI6Qy4YqGeDte0w2lQ 9fqetKvLyT8i7kJSUv/JRsP2VKzFRQijR8GMKhHM7Go/IWQ3giKr52IbyBYaDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677410557; a=rsa-sha256; cv=none; b=fPrjhW0zkhTWR8vibL1i4XeLxAXLYMwRLDx3EDJwTq1UUl4AVa4wBrwQlOjTSCL1SggRps ipyBm5PueLWboPSNZdWNUdfe/nuoU7Rl8eu5aPuINRsfkKapD7aLII8DkGhwQI6MP0zZ/t cecOMoTntSuROikdZwMjEMuY09XHE14LOi+XaTi9GI9Sg6iaG5Toqz2nrv2Z5YRAMu/HPl AFl25U2IxFOs4+t50fI5sxbm4HAqvCcrFKQ8rRAtf/6TE1z/AWHT1xsgiVs6ZsScNM8vNE p2M4cHEcViXkVhKE0h5gJ2qz14KHNq1czZX9gm9AUbo3en7508bmdu/j0GUEqw== 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 4PPh7K4QVfzk50 for ; Sun, 26 Feb 2023 11:22:37 +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 31QBMb9Q043927 for ; Sun, 26 Feb 2023 11:22:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31QBMbT7043926 for emulation@FreeBSD.org; Sun, 26 Feb 2023 11:22:37 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: emulation@FreeBSD.org Subject: [Bug 265937] [Linuxulator]: linprocfs: process size incorrect Date: Sun, 26 Feb 2023 11:22:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dchagin@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dchagin@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265937 Dmitry Chagin changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|emulation@FreeBSD.org |dchagin@FreeBSD.org --- Comment #4 from Dmitry Chagin --- (In reply to Fernando Apestegu=C3=ADa from comment #3) Thank you for such exelent explanation, I=E2=80=99ll take it. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Feb 26 17:45:34 2023 X-Original-To: emulation@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 4PPrdX72d5z3trL2 for ; Sun, 26 Feb 2023 17:45:52 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PPrdW4CTCz439r for ; Sun, 26 Feb 2023 17:45:51 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=PEjFeIbo; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::1131 as permitted sender) smtp.mailfrom=kob6558@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-53916ab0c6bso117331257b3.7 for ; Sun, 26 Feb 2023 09:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wFbhfSV764TfMaQcLml6rz0SkYJCeJ8iNMrzBPBrTek=; b=PEjFeIbowDvgT1iRbC8yydZeVZ1/iYiQFzFt6S7BsyWrLRAcJjvwKRsJXb/9kI+rV7 adbJyNznHNhHlT3RxIkZX/3PDi+nzVPm1X/sEYOw1BmxKHKe3xV60/30AjisTr9FJn+M W17fPQypj6Ilv74eEpBlxesh3neOvxtq42l7CCzWD3t8coF6dWoRz/azhs+37DvZnMUx 3yHNYj8V+MKTvZo4ZtNsJ4Ot+WACZIOJuZjVKMOjUEvLf9GaVk+zFYvwNeQiU/9eDvtr iZv2med+LHbRHWQuh/0l4cuJW7FmdLdWo73WWuxJknb6cLTJlZ8BLzFZRx3+aKJ1FWl8 z93Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wFbhfSV764TfMaQcLml6rz0SkYJCeJ8iNMrzBPBrTek=; b=PPxhDKqlLN0vkLipsgEJVMlvMjzgY9Kn15JYvkX9bXPDYy4r9dCAIluaK81gBzOWz3 9MOVo/kZ9D5yBkXJuhD6mvfXcyWnOGtR7H3a7kY7m9tVbO60bbLnSSKZOVK9W1Iu3M0s sI6FbiLQ5SYhnAmHWOrDwAHTLdbK+X5GonPrj9nF+B//kBfjn0Hd0Ptx+ExxPaauUSOn IUNRb83Xmw92amD10l/kVu5t6rahEoOhpw12lRufxJNktU/tm3hDGmMzVdIs4Nbuth9r AQz+tRDW6xGvhGdJYnqXhZpnxNd0T1m1ghU8tVuld+ErCLDmKGyD7K2jhjIqqFRgWvYg WLQw== X-Gm-Message-State: AO0yUKWRmjwtQwU6tpVhyjncAtayGptg4SaQG9qqL/3y8CTbi8nldOzX kP56sMyLA3jkmMtXjc4oOT+BW8k4hABNJhowcYHwxNo0drI= X-Google-Smtp-Source: AK7set/nTeQzQ6/F5e+NVACD6BDF2wgSfzR9obaVDYOw4s0DudnDNvTikAfv+QHZJIG4WkAzqU0fP77EVaHp37Jz8qo= X-Received: by 2002:a81:4320:0:b0:52e:c77d:3739 with SMTP id q32-20020a814320000000b0052ec77d3739mr8494086ywa.9.1677433550374; Sun, 26 Feb 2023 09:45:50 -0800 (PST) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 From: Kevin Oberman Date: Sun, 26 Feb 2023 09:45:34 -0800 Message-ID: Subject: virtualbon-ose-kmod build fails with 14-CURRENT and llvm15 To: "freebsd-emulation@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000e78d3b05f59deebb" X-Spamd-Result: default: False [-3.69 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[emulation@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1131:from]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; MLMMJ_DEST(0.00)[emulation@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4PPrdW4CTCz439r X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000e78d3b05f59deebb Content-Type: text/plain; charset="UTF-8" I updated my system yesterday. I then tried to rebuild virtualbox-ose-kmod. This fails under llvm15. The same source code built successfully with llvm14, so I assume that the code has a problem with 15. I suspect that 15 changed some default and declared this as an error, but may be "fixed" with the proper build option. Here is the command and error that I see: cc -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -Iinclude -I. -Ir0drv -include /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -MD -MF.depend.SUPDrv-freebsd.o -MTSUPDrv-freebsd.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare -Wno-error=empty-body -Wno-error=parentheses-equality -Wno-error=unused-function -Wno-error=pointer-sign -Wno-error=shift-negative-value -Wno-address-of-packed-member -Wno-error=array-parameter -Wno-error=deprecated-non-prototype -Wno-error=strict-prototypes -Wno-error=unused-but-set-variable -Wno-format-zero-length -mno-aes -mno-avx -std=iso9899:1999 -c /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c -o SUPDrv-freebsd.o /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wint-conversion] if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, pvUser, sizeof(Hdr)))) ^~~~~~ include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILURE' Any help appreciated. I really need virtualbox. I think I may force it to build with llvm14, but I's prefer a fix to build with llvm15. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --000000000000e78d3b05f59deebb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I updated my system yesterday. I then tried to r= ebuild virtualbox-ose-kmod. This fails under llvm15. The same source code b= uilt successfully with llvm14, so I assume that the code has a problem with= 15. I suspect that 15 changed some default and declared this as an error, = but may be "fixed" with the proper build option.
=
Here is the command and error that I see:

cc =C2=A0-O2 -pipe -fno-strict-aliasing -DRT_OS_F= REEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBO= X -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_A= RCH_AMD64 =C2=A0-Werror -D_KERNEL -DKLD_MODULE -nostdinc =C2=A0-Iinclude -I= . -Ir0drv -include /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox= -6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/opt_global.h -I. -I/usr/s= rc/sys -I/usr/src/sys/contrib/ck/include -fno-common =C2=A0-fno-omit-frame-= pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=3D./machine=3D/usr/= src/sys/amd64/include -fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include= -fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include =C2=A0 =C2=A0 -MD = =C2=A0-MF.depend.SUPDrv-freebsd.o -MTSUPDrv-freebsd.o -mcmodel=3Dkernel -mn= o-red-zone -mno-mmx -mno-sse -msoft-float =C2=A0-fno-asynchronous-unwind-ta= bles -ffreestanding -fwrapv -fstack-protector -Wall -Wnested-externs -Wstri= ct-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno= -pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fd= iagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Dtautological-compa= re -Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality -Wno-error=3Du= nused-function -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value = -Wno-address-of-packed-member -Wno-error=3Darray-parameter -Wno-error=3Ddep= recated-non-prototype -Wno-error=3Dstrict-prototypes -Wno-error=3Dunused-bu= t-set-variable -Wno-format-zero-length =C2=A0 -mno-aes -mno-avx =C2=A0-std= =3Diso9899:1999 -c /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox= -6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c = -o SUPDrv-freebsd.o
/usr/ports/emulators/virtualbox-ose-kmod/work/Virtua= lBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebs= d.c:433:50: error: incompatible pointer to integer conversion passing '= void *' to parameter of type 'RTR3PTR' (aka 'unsigned long&= #39;) [-Wint-conversion]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (RT_FAILURE(RTR0= MemUserCopyFrom(&Hdr, pvUser, sizeof(Hdr))))
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0^~~~~~
include/iprt/errcore.h:99:58: note: expanded from macro = 9;RT_FAILURE'

Any help appreciat= ed. I really need virtualbox. I think I may force it to build with llvm14, = but I's prefer a fix to build with llvm15.

--
Kevin Oberman, Part time kid herder and retired Network EngineerE-mail: rkoberma= n@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB= 39EF1B055683
--000000000000e78d3b05f59deebb-- From nobody Sun Feb 26 18:02:03 2023 X-Original-To: emulation@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 4PPs0b1HVpz3ts4x for ; Sun, 26 Feb 2023 18:02:23 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PPs0b0nnzz450b; Sun, 26 Feb 2023 18:02:23 +0000 (UTC) (envelope-from jsm@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677434543; 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=asRYq/1k3EeKsy+watf628jGj1e6iWsvtBocA0P9DIQ=; b=x10kgY4P3KmieyjZ+TO3mnw9YO9PnRC7EEA81OgCxb1sJ2vxem2itNel4Y3Cz5PWdZtN+w bXJkKiNBGWspmUx/rzsmue5/H/IJ8ta1aT4CntGi4P216axHWyvTLaCbluZNP3QPgHXAmW FTRqGkuN0BSjvxjBaBGNVaFSiZLWPthK8NXDi4CYoXYGP39XaUBsRPwNLGdSY7VCJtLBwu ADmeVa7IN9LYe2DZVhgtI6hQXVyF1A/Xtw3vjzchLv6a0WRuB8vplqah9sjNCI3vWw79z2 GrRaz2/9+uHxf97X0kJh1tGpN5C6t9Jz0h56heMS35gpVjc0mBLBiBsQKGmh5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677434543; 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=asRYq/1k3EeKsy+watf628jGj1e6iWsvtBocA0P9DIQ=; b=jZE5sak5IZE2cTxB0RhTMoFFn/VIbg7f1FZgC3/C+cXtRKhyQ8p/5D/iAsSpR0EM2uwW2A 4K9CWsgT7EpWZ9jChYW+Kz+j96gLbjbuT8nUNuDncb0oPKloG+Wp92Ah7JETiAWgpT8UXg BRPJ2z5qPcrP5VlmZY0hlhhyUNq2fuYNZhCXXim6FSKt6k3C+msd5w0B3QEnkeXanu+SC+ sZ3NtzBwo3H8XrLORP/0i686wsJxyZio4NPpcMlNaNCKdvkJ/LAPYd9R3TeIOzYNmBCxd9 odIWxyQ/m+btJ1j2uPqHmNMDaJqhTReUVjdOzlKuWeohQ5ov2eCnVe0cpTDTiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677434543; a=rsa-sha256; cv=none; b=Z8YiurnsmLsFCyPbQcjEJsGLeM0tNEUS9ICL0rfme1azdFS9uTxGuLt0UV5lK9l24ag8vq y4JHgTlUYz0YgTZauFmrrK5Na+bykglGMlsEdZjyeOL7ve+S05VWGgUwPUAgrjqPnPW6Ap jCdxxP3f2se+MdPIaMBairpp27MYbTuiD3dIugyVmmLMdhvFYmIrNdHky+nbhp7q52oec2 7TY7geRgKOkIOsVp/fICSFKwKtmFs7fXFZFxKfcr11DUBydnrXGHrhu89IDEk5JdY5yRiI aF0qmZMK6mvI8ayw9EOcw1nDJyqvOWp+/tptZUszRYcODDwLh7I3kKRLP0E/uw== Received: from [192.168.1.5] (mail.northatlanticmusicsupplies.com [212.237.182.202]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jsm) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PPs0Z4mSpzhYW; Sun, 26 Feb 2023 18:02:22 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Message-ID: <010bd4ae-95ae-f982-699f-3cdb15d0afd2@FreeBSD.org> Date: Sun, 26 Feb 2023 19:02:03 +0100 List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: virtualbon-ose-kmod build fails with 14-CURRENT and llvm15 Content-Language: en-US To: Kevin Oberman , "freebsd-emulation@freebsd.org" References: From: Jesper Schmitz Mouridsen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 X-ThisMailContainsUnwantedMimeParts: N SGkNCmZyb20gaHR0cHM6Ly9yZXZpZXdzLmxsdm0ub3JnL0QxMjk4ODEgdHJ5IHRvIGFkZCAN Ci1Xbm8tZXJyb3I9aW50LWNvbnZlcnNpb24gdG8gdGhlIHBvcnRzIE1ha2VmaWxlIENGTEFH UyAobm90IHRlc3RlZCkNCg0KL0pzbQ0KDQpPbiAyNi4wMi4yMDIzIDE4LjQ1LCBLZXZpbiBP YmVybWFuIHdyb3RlOg0KPiBJIHVwZGF0ZWQgbXkgc3lzdGVtIHllc3RlcmRheS4gSSB0aGVu IHRyaWVkIHRvIHJlYnVpbGQgDQo+IHZpcnR1YWxib3gtb3NlLWttb2QuIFRoaXMgZmFpbHMg dW5kZXIgbGx2bTE1LiBUaGUgc2FtZSBzb3VyY2UgY29kZSBidWlsdCANCj4gc3VjY2Vzc2Z1 bGx5IHdpdGggbGx2bTE0LCBzbyBJIGFzc3VtZSB0aGF0IHRoZSBjb2RlIGhhcyBhIHByb2Js ZW0gd2l0aCANCj4gMTUuIEkgc3VzcGVjdCB0aGF0IDE1IGNoYW5nZWQgc29tZSBkZWZhdWx0 IGFuZCBkZWNsYXJlZCB0aGlzIGFzIGFuIA0KPiBlcnJvciwgYnV0IG1heSBiZSAiZml4ZWQi IHdpdGggdGhlIHByb3BlciBidWlsZCBvcHRpb24uDQo+IA0KPiBIZXJlIGlzIHRoZSBjb21t YW5kIGFuZCBlcnJvciB0aGF0IEkgc2VlOg0KPiANCj4gY2MgwqAtTzIgLXBpcGUgLWZuby1z dHJpY3QtYWxpYXNpbmcgLURSVF9PU19GUkVFQlNEIC1ESU5fUklORzAgLURJTl9SVF9SMCAN Cj4gLURJTl9TVVBfUjAgLURTVVBEUlZfV0lUSF9SRUxFQVNFX0xPR0dFUiAtRFZCT1ggLURS VF9XSVRIX1ZCT1ggLXcgDQo+IC1EVkJPWF9XSVRIX0hBUkRFTklORyAtRFZCT1hfV0lUSF82 NF9CSVRTX0dVRVNUUyAtRFJUX0FSQ0hfQU1ENjQgDQo+ICDCoC1XZXJyb3IgLURfS0VSTkVM IC1ES0xEX01PRFVMRSAtbm9zdGRpbmMgwqAtSWluY2x1ZGUgLUkuIC1JcjBkcnYgDQo+IC1p bmNsdWRlIA0KPiAvdXNyL3BvcnRzL2VtdWxhdG9ycy92aXJ0dWFsYm94LW9zZS1rbW9kL3dv cmsvVmlydHVhbEJveC02LjEuMzYvb3V0L2ZyZWVic2QuYW1kNjQvcmVsZWFzZS9iaW4vc3Jj L3Zib3hkcnYvb3B0X2dsb2JhbC5oIC1JLiAtSS91c3Ivc3JjL3N5cyAtSS91c3Ivc3JjL3N5 cy9jb250cmliL2NrL2luY2x1ZGUgLWZuby1jb21tb24gwqAtZm5vLW9taXQtZnJhbWUtcG9p bnRlciAtbW5vLW9taXQtbGVhZi1mcmFtZS1wb2ludGVyIC1mZGVidWctcHJlZml4LW1hcD0u L21hY2hpbmU9L3Vzci9zcmMvc3lzL2FtZDY0L2luY2x1ZGUgLWZkZWJ1Zy1wcmVmaXgtbWFw PS4veDg2PS91c3Ivc3JjL3N5cy94ODYvaW5jbHVkZSAtZmRlYnVnLXByZWZpeC1tYXA9Li9p Mzg2PS91c3Ivc3JjL3N5cy9pMzg2L2luY2x1ZGUgwqAgwqAgLU1EIMKgLU1GLmRlcGVuZC5T VVBEcnYtZnJlZWJzZC5vIC1NVFNVUERydi1mcmVlYnNkLm8gLW1jbW9kZWw9a2VybmVsIC1t bm8tcmVkLXpvbmUgLW1uby1tbXggLW1uby1zc2UgLW1zb2Z0LWZsb2F0IMKgLWZuby1hc3lu Y2hyb25vdXMtdW53aW5kLXRhYmxlcyAtZmZyZWVzdGFuZGluZyAtZndyYXB2IC1mc3RhY2st cHJvdGVjdG9yIC1XYWxsIC1XbmVzdGVkLWV4dGVybnMgLVdzdHJpY3QtcHJvdG90eXBlcyAt V21pc3NpbmctcHJvdG90eXBlcyAtV3BvaW50ZXItYXJpdGggLVdjYXN0LXF1YWwgLVd1bmRl ZiAtV25vLXBvaW50ZXItc2lnbiAtRF9fcHJpbnRmX189X19mcmVlYnNkX2twcmludGZfXyAt V21pc3NpbmctaW5jbHVkZS1kaXJzIC1mZGlhZ25vc3RpY3Mtc2hvdy1vcHRpb24gLVduby11 bmtub3duLXByYWdtYXMgLVduby1lcnJvcj10YXV0b2xvZ2ljYWwtY29tcGFyZSAtV25vLWVy cm9yPWVtcHR5LWJvZHkgLVduby1lcnJvcj1wYXJlbnRoZXNlcy1lcXVhbGl0eSAtV25vLWVy cm9yPXVudXNlZC1mdW5jdGlvbiAtV25vLWVycm9yPXBvaW50ZXItc2lnbiAtV25vLWVycm9y PXNoaWZ0LW5lZ2F0aXZlLXZhbHVlIC1Xbm8tYWRkcmVzcy1vZi1wYWNrZWQtbWVtYmVyIC1X bm8tZXJyb3I9YXJyYXktcGFyYW1ldGVyIC1Xbm8tZXJyb3I9ZGVwcmVjYXRlZC1ub24tcHJv dG90eXBlIC1Xbm8tZXJyb3I9c3RyaWN0LXByb3RvdHlwZXMgLVduby1lcnJvcj11bnVzZWQt YnV0LXNldC12YXJpYWJsZSAtV25vLWZvcm1hdC16ZXJvLWxlbmd0aCDCoCAtbW5vLWFlcyAt bW5vLWF2eCDCoC1zdGQ9aXNvOTg5OToxOTk5IC1jIC91c3IvcG9ydHMvZW11bGF0b3JzL3Zp cnR1YWxib3gtb3NlLWttb2Qvd29yay9WaXJ0dWFsQm94LTYuMS4zNi9vdXQvZnJlZWJzZC5h bWQ2NC9yZWxlYXNlL2Jpbi9zcmMvdmJveGRydi9mcmVlYnNkL1NVUERydi1mcmVlYnNkLmMg LW8gU1VQRHJ2LWZyZWVic2Qubw0KPiAvdXNyL3BvcnRzL2VtdWxhdG9ycy92aXJ0dWFsYm94 LW9zZS1rbW9kL3dvcmsvVmlydHVhbEJveC02LjEuMzYvb3V0L2ZyZWVic2QuYW1kNjQvcmVs ZWFzZS9iaW4vc3JjL3Zib3hkcnYvZnJlZWJzZC9TVVBEcnYtZnJlZWJzZC5jOjQzMzo1MDog ZXJyb3I6IGluY29tcGF0aWJsZSBwb2ludGVyIHRvIGludGVnZXIgY29udmVyc2lvbiBwYXNz aW5nICd2b2lkIConIHRvIHBhcmFtZXRlciBvZiB0eXBlICdSVFIzUFRSJyAoYWthICd1bnNp Z25lZCBsb25nJykgWy1XaW50LWNvbnZlcnNpb25dDQo+ICDCoCDCoCDCoCDCoCBpZiAoUlRf RkFJTFVSRShSVFIwTWVtVXNlckNvcHlGcm9tKCZIZHIsIHB2VXNlciwgc2l6ZW9mKEhkcikp KSkNCj4gIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg IMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgXn5+fn5+DQo+IGluY2x1ZGUvaXBydC9lcnJj b3JlLmg6OTk6NTg6IG5vdGU6IGV4cGFuZGVkIGZyb20gbWFjcm8gJ1JUX0ZBSUxVUkUnDQo+ IA0KPiBBbnkgaGVscCBhcHByZWNpYXRlZC4gSSByZWFsbHkgbmVlZCB2aXJ0dWFsYm94LiBJ IHRoaW5rIEkgbWF5IGZvcmNlIGl0IA0KPiB0byBidWlsZCB3aXRoIGxsdm0xNCwgYnV0IEkn cyBwcmVmZXIgYSBmaXggdG8gYnVpbGQgd2l0aCBsbHZtMTUuDQo+IA0KPiAtLSANCj4gS2V2 aW4gT2Jlcm1hbiwgUGFydCB0aW1lIGtpZCBoZXJkZXIgYW5kIHJldGlyZWQgTmV0d29yayBF bmdpbmVlcg0KPiBFLW1haWw6IHJrb2Jlcm1hbkBnbWFpbC5jb20gPG1haWx0bzpya29iZXJt YW5AZ21haWwuY29tPg0KPiBQR1AgRmluZ2VycHJpbnQ6IEQwM0ZCOThBRkE3OEUzQjc4QzE2 OTRCMzE4QUIzOUVGMUIwNTU2ODMNCg== From nobody Mon Feb 27 18:27:12 2023 X-Original-To: emulation@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 4PQTVw3jl7z3vRxT for ; Mon, 27 Feb 2023 18:27:20 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4PQTVv3Z5Zz41tP for ; Mon, 27 Feb 2023 18:27:19 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of brooks@spindle.one-eyed-alien.net has no SPF policy when checking 199.48.129.229) smtp.mailfrom=brooks@spindle.one-eyed-alien.net; dmarc=none Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id C35D03C0199; Mon, 27 Feb 2023 18:27:12 +0000 (UTC) Date: Mon, 27 Feb 2023 18:27:12 +0000 From: Brooks Davis To: Kevin Oberman Cc: "freebsd-emulation@freebsd.org" Subject: Re: virtualbon-ose-kmod build fails with 14-CURRENT and llvm15 Message-ID: References: List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spamd-Result: default: False [-1.78 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.981]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmail.com]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; MLMMJ_DEST(0.00)[emulation@freebsd.org]; TO_DN_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; FREEFALL_USER(0.00)[brooks]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4PQTVv3Z5Zz41tP X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N On Sun, Feb 26, 2023 at 09:45:34AM -0800, Kevin Oberman wrote: > I updated my system yesterday. I then tried to rebuild virtualbox-ose-kmo= d. > This fails under llvm15. The same source code built successfully with > llvm14, so I assume that the code has a problem with 15. I suspect that 15 > changed some default and declared this as an error, but may be "fixed" wi= th > the proper build option. >=20 > Here is the command and error that I see: >=20 > cc -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 > -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w > -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -Werror > -D_KERNEL -DKLD_MODULE -nostdinc -Iinclude -I. -Ir0drv -include > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freeb= sd.amd64/release/bin/src/vboxdrv/opt_global.h > -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer > -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include > -fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include > -fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include -MD > -MF.depend.SUPDrv-freebsd.o -MTSUPDrv-freebsd.o -mcmodel=3Dkernel > -mno-red-zone -mno-mmx -mno-sse -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector > -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign > -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs > -fdiagnostics-show-option -Wno-unknown-pragmas > -Wno-error=3Dtautological-compare -Wno-error=3Dempty-body > -Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function > -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value > -Wno-address-of-packed-member -Wno-error=3Darray-parameter > -Wno-error=3Ddeprecated-non-prototype -Wno-error=3Dstrict-prototypes > -Wno-error=3Dunused-but-set-variable -Wno-format-zero-length -mno-aes > -mno-avx -std=3Diso9899:1999 -c > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freeb= sd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c > -o SUPDrv-freebsd.o > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freeb= sd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: > error: incompatible pointer to integer conversion passing 'void *' to > parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wint-conversion] > if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, pvUser, sizeof(Hdr)))) > ^~~~~~ > include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILURE' >=20 > Any help appreciated. I really need virtualbox. I think I may force it to > build with llvm14, but I's prefer a fix to build with llvm15. Assuming the code works in practice, it should just be a matter of adding a cast (void *)(uintptr_t)pvUser. -- Brooks From nobody Mon Feb 27 22:58:44 2023 X-Original-To: emulation@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 4PQbXQ3qmZz3tHK7 for ; Mon, 27 Feb 2023 22:59:02 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQbXQ1pvLz3t1M; Mon, 27 Feb 2023 22:59:02 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-536be69eadfso221725547b3.1; Mon, 27 Feb 2023 14:59:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/cV1OviTvRswe69mvftejq5Op2kK5NnLQ2mDyCckLac=; b=njLRZgJHOsHsF2WOOfrgACv9Q3OeT/mJzKj+8xUm/VoRTZQNyKomzxoTvnWx21w/OV oA2IV7N8tWkJgJdK53A7baNS65Q8L+Wi6kJi43J8+nYusnuOESKwI7J1KVnnFFMCdfwt FK3SBpOEyNicA1TvpmYYPjR6JCZZyukxveQJuGCIuNdherVIwKta63EDVu0Z2pag4bUp T6sTpshZE4v+jaFY56BSfvItB/CdkzudDFcxpDwTt1qcff6q2etd7KApEKbhLDft0tjw uR52Q8FUwQDavjWhliIcCd893lwSW8TmKVhIwrCvPvX56V0aopBQjd3PDiqtopoyNpeL DNwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/cV1OviTvRswe69mvftejq5Op2kK5NnLQ2mDyCckLac=; b=4zHsfX5AhbNzWnhAfpDeBBGgCBxfGEMYwu9QMZIphOvRtsucVdPGE3KaYEazepIKOZ KsNfrSWZo0wuAuo1U1Yayimf9bZgxGs/Umx4eYw+AoPOW9XwA+jygodgsTmF4f8hrQQl z5cbdgijatlEiURgezV4poPeVnnIa1YcYhZ7gU/b+0bdIYK+crSqezct2ORVza05Kpf2 EM3D6t6+r+IvZFYiCrmTzovXDMJ/XelAnAOdp6dhwuuyWrG6875Nr0zpLrJfF8XFUgVD mhpaQmcLh5JPFKTd/bfo9lZ9f9FGCVmY2gM3N233kb5axmrzWyrRt5cr67qxvN3LQpG0 DOvA== X-Gm-Message-State: AO0yUKUgY3mWkDfUj1aay8mC7RWlRMgx1h0wGd1QtdaMav4I4r8uoIG9 Dw2ft4veGCCKK2F7M5dt576YE1t1kzAxdP+Dgz3F1k7rjes= X-Google-Smtp-Source: AK7set+bk3+KKZh4YkTC+eyxOi38zuiboVVg9W9qqt9rWsHC79rab1tp0sGYry8FN9sGXD5ettEhBMZGx726juCqFaU= X-Received: by 2002:a05:6902:4c2:b0:8ea:3d09:b125 with SMTP id v2-20020a05690204c200b008ea3d09b125mr220381ybs.0.1677538740242; Mon, 27 Feb 2023 14:59:00 -0800 (PST) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Kevin Oberman Date: Mon, 27 Feb 2023 14:58:44 -0800 Message-ID: Subject: Re: virtualbon-ose-kmod build fails with 14-CURRENT and llvm15 To: Brooks Davis Cc: "freebsd-emulation@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000b58b6b05f5b66c56" X-Rspamd-Queue-Id: 4PQbXQ1pvLz3t1M X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --000000000000b58b6b05f5b66c56 Content-Type: text/plain; charset="UTF-8" On Mon, Feb 27, 2023 at 10:27 AM Brooks Davis wrote: > On Sun, Feb 26, 2023 at 09:45:34AM -0800, Kevin Oberman wrote: > > I updated my system yesterday. I then tried to rebuild > virtualbox-ose-kmod. > > This fails under llvm15. The same source code built successfully with > > llvm14, so I assume that the code has a problem with 15. I suspect that > 15 > > changed some default and declared this as an error, but may be "fixed" > with > > the proper build option. > > > > Here is the command and error that I see: > > > > cc -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 > > -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w > > -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -Werror > > -D_KERNEL -DKLD_MODULE -nostdinc -Iinclude -I. -Ir0drv -include > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/opt_global.h > > -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common > > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer > > -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include > > -fdebug-prefix-map=./x86=/usr/src/sys/x86/include > > -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -MD > > -MF.depend.SUPDrv-freebsd.o -MTSUPDrv-freebsd.o -mcmodel=kernel > > -mno-red-zone -mno-mmx -mno-sse -msoft-float > > -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector > > -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > > -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign > > -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs > > -fdiagnostics-show-option -Wno-unknown-pragmas > > -Wno-error=tautological-compare -Wno-error=empty-body > > -Wno-error=parentheses-equality -Wno-error=unused-function > > -Wno-error=pointer-sign -Wno-error=shift-negative-value > > -Wno-address-of-packed-member -Wno-error=array-parameter > > -Wno-error=deprecated-non-prototype -Wno-error=strict-prototypes > > -Wno-error=unused-but-set-variable -Wno-format-zero-length -mno-aes > > -mno-avx -std=iso9899:1999 -c > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c > > -o SUPDrv-freebsd.o > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: > > error: incompatible pointer to integer conversion passing 'void *' to > > parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wint-conversion] > > if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, pvUser, sizeof(Hdr)))) > > ^~~~~~ > > include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILURE' > > > > Any help appreciated. I really need virtualbox. I think I may force it to > > build with llvm14, but I's prefer a fix to build with llvm15. > > Assuming the code works in practice, it should just be a matter of > adding a cast (void *)(uintptr_t)pvUser. > > -- Brooks > Thanks to both of you. Fixing the code seems preferable to patching and rebuilding llvm15, so I tried, but it made no difference, other than the cast, but I may have truncated the error message too soon. Here is the complete message after the patch: /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wint-conversion] if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, (void *)(uintptr_t)pvUser, sizeof(Hdr)))) ^~~~~~~~~~~~~~~~~~~~~~~~~ include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILURE' #define RT_FAILURE(rc) ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) ) ^~ include/iprt/errcore.h:80:38: note: expanded from macro 'RT_SUCCESS_NP' # define RT_SUCCESS_NP(rc) ( (int)(rc) >= VINF_SUCCESS ) ^~ include/iprt/cdefs.h:1826:53: note: expanded from macro 'RT_UNLIKELY' # define RT_UNLIKELY(expr) __builtin_expect(!!(expr), 0) ^~~~ include/iprt/mem.h:756:56: note: passing argument to parameter 'R3PtrSrc' here RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_t cb); ^ Please understand that I am not a C programmer. Looking at this leaves me a bit lost. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --000000000000b58b6b05f5b66c56 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Feb 27, 2023 at 10:27 A= M Brooks Davis <brooks@freebsd.org= > wrote:
On Sun, Feb 26, 2023 at 09:45:34AM -0800, Kevi= n Oberman wrote:
> I updated my system yesterday. I then tried to rebuild virtualbox-ose-= kmod.
> This fails under llvm15. The same source code built successfully with<= br> > llvm14, so I assume that the code has a problem with 15. I suspect tha= t 15
> changed some default and declared this as an error, but may be "f= ixed" with
> the proper build option.
>
> Here is the command and error that I see:
>
> cc=C2=A0 -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0 -DI= N_RT_R0
> -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w
> -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64=C2=A0= -Werror
> -D_KERNEL -DKLD_MODULE -nostdinc=C2=A0 -Iinclude -I. -Ir0drv -include<= br> > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/fr= eebsd.amd64/release/bin/src/vboxdrv/opt_global.h
> -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common
>=C2=A0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
> -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include
> -fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include
> -fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include=C2=A0 =C2=A0 = =C2=A0-MD
>=C2=A0 -MF.depend.SUPDrv-freebsd.o -MTSUPDrv-freebsd.o -mcmodel=3Dkerne= l
> -mno-red-zone -mno-mmx -mno-sse -msoft-float
>=C2=A0 -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-p= rotector
> -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
> -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs
> -fdiagnostics-show-option -Wno-unknown-pragmas
> -Wno-error=3Dtautological-compare -Wno-error=3Dempty-body
> -Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function
> -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value
> -Wno-address-of-packed-member -Wno-error=3Darray-parameter
> -Wno-error=3Ddeprecated-non-prototype -Wno-error=3Dstrict-prototypes > -Wno-error=3Dunused-but-set-variable -Wno-format-zero-length=C2=A0 =C2= =A0-mno-aes
> -mno-avx=C2=A0 -std=3Diso9899:1999 -c
> /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/fr= eebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c
> -o SUPDrv-freebsd.o
> /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/fr= eebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50:
> error: incompatible pointer to integer conversion passing 'void *&= #39; to
> parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wi= nt-conversion]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (RT_FAILURE(RTR0MemUserCopyFrom(&a= mp;Hdr, pvUser, sizeof(Hdr))))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~
> include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILUR= E'
>
> Any help appreciated. I really need virtualbox. I think I may force it= to
> build with llvm14, but I's prefer a fix to build with llvm15.

Assuming the code works in practice, it should just be a matter of
adding a cast (void *)(uintptr_t)pvUser.

-- Brooks
=C2=A0
Thanks to both o= f you. Fixing the code seems preferable to patching and rebuilding llvm15, = so I tried, but it made no difference, other than the cast, but I may have = truncated the error message too soon. Here is the complete message after th= e patch:
/usr/ports/emulators/virtualbox-ose-kmod/work/Virtu= alBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freeb= sd.c:433:50: error: incompatible pointer to integer conversion passing '= ;void *' to parameter of type 'RTR3PTR' (aka 'unsigned long= ') [-Wint-conversion]
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, (void *)(= uintptr_t)pvUser, sizeof(Hdr))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~= ~~~~~~~~~~~~
include/iprt/errcore.h:99:58: note: expanded from macro = 9;RT_FAILURE'
#define RT_FAILURE(rc) =C2=A0 =C2=A0 =C2=A0( RT_UNLIKE= LY(!RT_SUCCESS_NP(rc)) )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0^~
include/iprt/errcore.h:80:38: note: expanded from macro = 9;RT_SUCCESS_NP'
# define RT_SUCCESS_NP(rc) =C2=A0 ( (int)(rc) >= =3D VINF_SUCCESS )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0^~
include/iprt/cdefs.h:1826:53: note: expanded from macro 'RT= _UNLIKELY'
# =C2=A0define RT_UNLIKELY(expr) =C2=A0 =C2=A0 __builtin_= expect(!!(expr), 0)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~
include/ipr= t/mem.h:756:56: note: passing argument to parameter 'R3PtrSrc' here=
RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_t= cb);
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ^

Please understand that I am not a C programmer.=C2=A0 Looking at this = leaves me a bit lost.
--
Kevin Oberman, Part time kid herder and= retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D= 03FB98AFA78E3B78C1694B318AB39EF1B055683
=
--000000000000b58b6b05f5b66c56-- From nobody Mon Feb 27 23:10:38 2023 X-Original-To: emulation@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 4PQbnq4CJ1z3tJ96 for ; Mon, 27 Feb 2023 23:10:39 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4PQbnq2SQvz3vV1 for ; Mon, 27 Feb 2023 23:10:39 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Authentication-Results: mx1.freebsd.org; none Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 3DC473C0199; Mon, 27 Feb 2023 23:10:38 +0000 (UTC) Date: Mon, 27 Feb 2023 23:10:38 +0000 From: Brooks Davis To: Kevin Oberman Cc: "freebsd-emulation@freebsd.org" Subject: Re: virtualbon-ose-kmod build fails with 14-CURRENT and llvm15 Message-ID: References: List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Rspamd-Queue-Id: 4PQbnq2SQvz3vV1 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mon, Feb 27, 2023 at 02:58:44PM -0800, Kevin Oberman wrote: > On Mon, Feb 27, 2023 at 10:27 AM Brooks Davis wrote: >=20 > > On Sun, Feb 26, 2023 at 09:45:34AM -0800, Kevin Oberman wrote: > > > I updated my system yesterday. I then tried to rebuild > > virtualbox-ose-kmod. > > > This fails under llvm15. The same source code built successfully with > > > llvm14, so I assume that the code has a problem with 15. I suspect th= at > > 15 > > > changed some default and declared this as an error, but may be "fixed" > > with > > > the proper build option. > > > > > > Here is the command and error that I see: > > > > > > cc -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT= _R0 > > > -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w > > > -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -We= rror > > > -D_KERNEL -DKLD_MODULE -nostdinc -Iinclude -I. -Ir0drv -include > > > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/fre= ebsd.amd64/release/bin/src/vboxdrv/opt_global.h > > > -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common > > > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer > > > -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include > > > -fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include > > > -fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include -MD > > > -MF.depend.SUPDrv-freebsd.o -MTSUPDrv-freebsd.o -mcmodel=3Dkernel > > > -mno-red-zone -mno-mmx -mno-sse -msoft-float > > > -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-prote= ctor > > > -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > > > -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign > > > -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs > > > -fdiagnostics-show-option -Wno-unknown-pragmas > > > -Wno-error=3Dtautological-compare -Wno-error=3Dempty-body > > > -Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function > > > -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value > > > -Wno-address-of-packed-member -Wno-error=3Darray-parameter > > > -Wno-error=3Ddeprecated-non-prototype -Wno-error=3Dstrict-prototypes > > > -Wno-error=3Dunused-but-set-variable -Wno-format-zero-length -mno-a= es > > > -mno-avx -std=3Diso9899:1999 -c > > > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/fre= ebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c > > > -o SUPDrv-freebsd.o > > > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/fre= ebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: > > > error: incompatible pointer to integer conversion passing 'void *' to > > > parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wint-conversion] > > > if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, pvUser, sizeof(Hdr))= )) > > > ^~~~~~ > > > include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILURE' > > > > > > Any help appreciated. I really need virtualbox. I think I may force i= t to > > > build with llvm14, but I's prefer a fix to build with llvm15. > > > > Assuming the code works in practice, it should just be a matter of > > adding a cast (void *)(uintptr_t)pvUser. > > > > -- Brooks > > >=20 > Thanks to both of you. Fixing the code seems preferable to patching and > rebuilding llvm15, so I tried, but it made no difference, other than the > cast, but I may have truncated the error message too soon. Here is the > complete message after the patch: > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freeb= sd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: > error: incompatible pointer to integer conversion passing 'void *' to > parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wint-conversion] > if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, (void *)(uintptr_t)pvUse= r, > sizeof(Hdr)))) > ^~~~~~~~~~~~~~~~~~~~~~~~~ > include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILURE' > #define RT_FAILURE(rc) ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) ) > ^~ > include/iprt/errcore.h:80:38: note: expanded from macro 'RT_SUCCESS_NP' > # define RT_SUCCESS_NP(rc) ( (int)(rc) >=3D VINF_SUCCESS ) > ^~ > include/iprt/cdefs.h:1826:53: note: expanded from macro 'RT_UNLIKELY' > # define RT_UNLIKELY(expr) __builtin_expect(!!(expr), 0) > ^~~~ > include/iprt/mem.h:756:56: note: passing argument to parameter 'R3PtrSrc' > here > RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_t c= b); > ^ >=20 > Please understand that I am not a C programmer. Looking at this leaves me > a bit lost. Sorry, I misread the error message and lead you astray by suggesting the opposite of the correct thing. The correct cast is probably (uintptr_t)pvUser. -- Brooks From nobody Mon Feb 27 23:40:33 2023 X-Original-To: emulation@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 4PQcSg6ykhz3tKdV for ; Mon, 27 Feb 2023 23:40:51 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQcSg4Xvqz40kM; Mon, 27 Feb 2023 23:40:51 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-536af432ee5so225109357b3.0; Mon, 27 Feb 2023 15:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=flA0cLSBzsC6cbTa25eozXAWhW3bPvPmm2BELtNH/ro=; b=KoAlZ74JbhZemQbEqcEDmTJybnSGArNsA7f8a2684MbpiMh4ejyGuJdDGU++kq/jzs ZbXo/5g66akgcqK/RuS0HizbBlqC3ydYWMM6em2sgRZOjwMP36ymX4UvaJIJvIniu4yw mcIcXN4EeJMc7Rt179oxX11RAusu0FnUmAypM+KOltCNgo8i3NEcj6S4XPYaGDfTH2Af UkkkQ3kbTTeYu9hTn4kARuxWCIJOpt1+OWQHt7nY5gIdGoCUreeQ4mz4CNw+pAFbz/Z7 9X0Ws0RMDzad7k3tskKde0rx+khxx95009cEGnZeUMUUj5tcEynJ1msM+mcpSyuTJ43T iNaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=flA0cLSBzsC6cbTa25eozXAWhW3bPvPmm2BELtNH/ro=; b=IG0B2oZSzWdr63nzdLjbeiAENt576O7cKaKA2IxGD8lC8Xyhytpw/G52Ri1loorJXT Z7cQnK4A06PLDexozhjIupsmSmfAoWhqfzYCOj1cFTtih5bid5JvySqdxX57U5JkV29T Xj6HvMBaW6nDJZ6aeezHbdTmTYWkBK4cSLQ7A98ahy5Nk9eLzGI6gUVmy51hRSyy12f2 E3R4/sokx86bUyTI5DMdlCJ3Cto/rKHxb8ldoHF2ZwUn2IFqmpI075SBNIGbaLN9fUSh FOVIPWle39kV7eOHmOhQGbUgbiukmXR0t5fWcEY+0uKxUVqnU+0zccQqwgTDy46z/i+X zOCw== X-Gm-Message-State: AO0yUKUDQ3Xir4lZ4HMxDXoS0yNyYpaigxsJFbHDdYbdsfCU5E7+PJ0G cJGAcXb6aFrkEvNpROEY18MM4TOhG+c4AlT01gxkZDpc X-Google-Smtp-Source: AK7set94YZVM8rDnCyzHnQyoQHLWus4XKMMc6VDdW/ynNXlp3DukrT+YQU3nXOto3I2yNu/+srU0kv88K/YEhDEPi1c= X-Received: by 2002:a25:8c0b:0:b0:a20:11a9:bd4a with SMTP id k11-20020a258c0b000000b00a2011a9bd4amr98598ybl.0.1677541250124; Mon, 27 Feb 2023 15:40:50 -0800 (PST) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Kevin Oberman Date: Mon, 27 Feb 2023 15:40:33 -0800 Message-ID: Subject: Re: virtualbon-ose-kmod build fails with 14-CURRENT and llvm15 To: Brooks Davis Cc: "freebsd-emulation@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000004f4fba05f5b702b2" X-Rspamd-Queue-Id: 4PQcSg4Xvqz40kM X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000004f4fba05f5b702b2 Content-Type: text/plain; charset="UTF-8" Thanks, Brooks! That seems to have been the right cast. At least it compiles correctly. I'll test it after I reboot the new kernel and installworld, probably this evening. I was a bit confused by what appeared as a cast of a void to a void, but assumed I was just not understanding. On Mon, Feb 27, 2023 at 3:10 PM Brooks Davis wrote: > On Mon, Feb 27, 2023 at 02:58:44PM -0800, Kevin Oberman wrote: > > On Mon, Feb 27, 2023 at 10:27 AM Brooks Davis > wrote: > > > > > On Sun, Feb 26, 2023 at 09:45:34AM -0800, Kevin Oberman wrote: > > > > I updated my system yesterday. I then tried to rebuild > > > virtualbox-ose-kmod. > > > > This fails under llvm15. The same source code built successfully with > > > > llvm14, so I assume that the code has a problem with 15. I suspect > that > > > 15 > > > > changed some default and declared this as an error, but may be > "fixed" > > > with > > > > the proper build option. > > > > > > > > Here is the command and error that I see: > > > > > > > > cc -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0 > -DIN_RT_R0 > > > > -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w > > > > -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 > -Werror > > > > -D_KERNEL -DKLD_MODULE -nostdinc -Iinclude -I. -Ir0drv -include > > > > > > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/opt_global.h > > > > -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common > > > > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer > > > > -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include > > > > -fdebug-prefix-map=./x86=/usr/src/sys/x86/include > > > > -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -MD > > > > -MF.depend.SUPDrv-freebsd.o -MTSUPDrv-freebsd.o -mcmodel=kernel > > > > -mno-red-zone -mno-mmx -mno-sse -msoft-float > > > > -fno-asynchronous-unwind-tables -ffreestanding -fwrapv > -fstack-protector > > > > -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > > > > -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign > > > > -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs > > > > -fdiagnostics-show-option -Wno-unknown-pragmas > > > > -Wno-error=tautological-compare -Wno-error=empty-body > > > > -Wno-error=parentheses-equality -Wno-error=unused-function > > > > -Wno-error=pointer-sign -Wno-error=shift-negative-value > > > > -Wno-address-of-packed-member -Wno-error=array-parameter > > > > -Wno-error=deprecated-non-prototype -Wno-error=strict-prototypes > > > > -Wno-error=unused-but-set-variable -Wno-format-zero-length -mno-aes > > > > -mno-avx -std=iso9899:1999 -c > > > > > > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c > > > > -o SUPDrv-freebsd.o > > > > > > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: > > > > error: incompatible pointer to integer conversion passing 'void *' to > > > > parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wint-conversion] > > > > if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, pvUser, > sizeof(Hdr)))) > > > > ^~~~~~ > > > > include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILURE' > > > > > > > > Any help appreciated. I really need virtualbox. I think I may force > it to > > > > build with llvm14, but I's prefer a fix to build with llvm15. > > > > > > Assuming the code works in practice, it should just be a matter of > > > adding a cast (void *)(uintptr_t)pvUser. > > > > > > -- Brooks > > > > > > > Thanks to both of you. Fixing the code seems preferable to patching and > > rebuilding llvm15, so I tried, but it made no difference, other than the > > cast, but I may have truncated the error message too soon. Here is the > > complete message after the patch: > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: > > error: incompatible pointer to integer conversion passing 'void *' to > > parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wint-conversion] > > if (RT_FAILURE(RTR0MemUserCopyFrom(&Hdr, (void > *)(uintptr_t)pvUser, > > sizeof(Hdr)))) > > > ^~~~~~~~~~~~~~~~~~~~~~~~~ > > include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILURE' > > #define RT_FAILURE(rc) ( RT_UNLIKELY(!RT_SUCCESS_NP(rc)) ) > > ^~ > > include/iprt/errcore.h:80:38: note: expanded from macro 'RT_SUCCESS_NP' > > # define RT_SUCCESS_NP(rc) ( (int)(rc) >= VINF_SUCCESS ) > > ^~ > > include/iprt/cdefs.h:1826:53: note: expanded from macro 'RT_UNLIKELY' > > # define RT_UNLIKELY(expr) __builtin_expect(!!(expr), 0) > > ^~~~ > > include/iprt/mem.h:756:56: note: passing argument to parameter 'R3PtrSrc' > > here > > RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_t > cb); > > ^ > > > > Please understand that I am not a C programmer. Looking at this leaves > me > > a bit lost. > > Sorry, I misread the error message and lead you astray by suggesting > the opposite of the correct thing. The correct cast is probably > (uintptr_t)pvUser. > > -- Brooks > -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --0000000000004f4fba05f5b702b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, Brooks! That seems to have been the righ= t cast. At least it compiles correctly. I'll=C2=A0 test it after I rebo= ot the new kernel and installworld, probably this evening.
=
I was a bit confused by what appeared as a cast of a vo= id to a void, but assumed I was just not understanding.

=
On Mon, Fe= b 27, 2023 at 3:10 PM Brooks Davis <brooks@freebsd.org> wrote:
On Mon, Feb 27, 2023 at 02:58:44PM -0800, Kevin Oberman= wrote:
> On Mon, Feb 27, 2023 at 10:27 AM Brooks Davis <brooks@freebsd.org> wrote:
>
> > On Sun, Feb 26, 2023 at 09:45:34AM -0800, Kevin Oberman wrote: > > > I updated my system yesterday. I then tried to rebuild
> > virtualbox-ose-kmod.
> > > This fails under llvm15. The same source code built successf= ully with
> > > llvm14, so I assume that the code has a problem with 15. I s= uspect that
> > 15
> > > changed some default and declared this as an error, but may = be "fixed"
> > with
> > > the proper build option.
> > >
> > > Here is the command and error that I see:
> > >
> > > cc=C2=A0 -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN= _RING0 -DIN_RT_R0
> > > -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VB= OX -w
> > > -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_A= MD64=C2=A0 -Werror
> > > -D_KERNEL -DKLD_MODULE -nostdinc=C2=A0 -Iinclude -I. -Ir0drv= -include
> > >
> > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/o= ut/freebsd.amd64/release/bin/src/vboxdrv/opt_global.h
> > > -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-co= mmon
> > >=C2=A0 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer > > > -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include<= br> > > > -fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include
> > > -fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include=C2= =A0 =C2=A0 =C2=A0-MD
> > >=C2=A0 -MF.depend.SUPDrv-freebsd.o -MTSUPDrv-freebsd.o -mcmod= el=3Dkernel
> > > -mno-red-zone -mno-mmx -mno-sse -msoft-float
> > >=C2=A0 -fno-asynchronous-unwind-tables -ffreestanding -fwrapv= -fstack-protector
> > > -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototy= pes
> > > -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
> > > -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs > > > -fdiagnostics-show-option -Wno-unknown-pragmas
> > > -Wno-error=3Dtautological-compare -Wno-error=3Dempty-body > > > -Wno-error=3Dparentheses-equality -Wno-error=3Dunused-functi= on
> > > -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value<= br> > > > -Wno-address-of-packed-member -Wno-error=3Darray-parameter > > > -Wno-error=3Ddeprecated-non-prototype -Wno-error=3Dstrict-pr= ototypes
> > > -Wno-error=3Dunused-but-set-variable -Wno-format-zero-length= =C2=A0 =C2=A0-mno-aes
> > > -mno-avx=C2=A0 -std=3Diso9899:1999 -c
> > >
> > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/o= ut/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c
> > > -o SUPDrv-freebsd.o
> > >
> > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/o= ut/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50: > > > error: incompatible pointer to integer conversion passing &#= 39;void *' to
> > > parameter of type 'RTR3PTR' (aka 'unsigned long&= #39;) [-Wint-conversion]
> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (RT_FAILURE(RTR0MemUserC= opyFrom(&Hdr, pvUser, sizeof(Hdr))))
> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~
> > > include/iprt/errcore.h:99:58: note: expanded from macro '= ;RT_FAILURE'
> > >
> > > Any help appreciated. I really need virtualbox. I think I ma= y force it to
> > > build with llvm14, but I's prefer a fix to build with ll= vm15.
> >
> > Assuming the code works in practice, it should just be a matter o= f
> > adding a cast (void *)(uintptr_t)pvUser.
> >
> > -- Brooks
> >
>
> Thanks to both of you. Fixing the code seems preferable to patching an= d
> rebuilding llvm15, so I tried, but it made no difference, other than t= he
> cast, but I may have truncated the error message too soon. Here is the=
> complete message after the patch:
> /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-6.1.36/out/fr= eebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c:433:50:
> error: incompatible pointer to integer conversion passing 'void *&= #39; to
> parameter of type 'RTR3PTR' (aka 'unsigned long') [-Wi= nt-conversion]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (RT_FAILURE(RTR0MemUserCopyFrom(&a= mp;Hdr, (void *)(uintptr_t)pvUser,
> sizeof(Hdr))))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~~~~~~~~~~~
> include/iprt/errcore.h:99:58: note: expanded from macro 'RT_FAILUR= E'
> #define RT_FAILURE(rc)=C2=A0 =C2=A0 =C2=A0 ( RT_UNLIKELY(!RT_SUCCESS_N= P(rc)) )
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~
> include/iprt/errcore.h:80:38: note: expanded from macro 'RT_SUCCES= S_NP'
> # define RT_SUCCESS_NP(rc)=C2=A0 =C2=A0( (int)(rc) >=3D VINF_SUCCES= S )
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~
> include/iprt/cdefs.h:1826:53: note: expanded from macro 'RT_UNLIKE= LY'
> #=C2=A0 define RT_UNLIKELY(expr)=C2=A0 =C2=A0 =C2=A0__builtin_expect(!= !(expr), 0)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~
> include/iprt/mem.h:756:56: note: passing argument to parameter 'R3= PtrSrc'
> here
> RTR0DECL(int) RTR0MemUserCopyFrom(void *pvDst, RTR3PTR R3PtrSrc, size_= t cb);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
>
> Please understand that I am not a C programmer.=C2=A0 Looking at this = leaves me
> a bit lost.

Sorry, I misread the error message and lead you astray by suggesting
the opposite of the correct thing.=C2=A0 The correct cast is probably
(uintptr_t)pvUser.

-- Brooks


--
Kevin Oberman, Part time kid herder and retired Net= work Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E= 3B78C1694B318AB39EF1B055683
--0000000000004f4fba05f5b702b2-- From nobody Tue Feb 28 13:17:05 2023 X-Original-To: emulation@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 4PQyZT4SVVz3vS8H for ; Tue, 28 Feb 2023 13:17:05 +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 4PQyZT2m5Nz4B1w for ; Tue, 28 Feb 2023 13:17:05 +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=1677590225; 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=Hxfn7cL7mPIDMxul4zIQ1Y2EeOXhSV/R6y6zOAiavdw=; b=L2v7VerCXvLYJCOUussB0GrqvIUUhezhj+1Pm5r4VYuIGSNBRUTzZ8JFG0QqCgTLC+4NV4 H+Ow/xHJYFh4Bj8JiPWx6VgRZ2jDaen6kua/vCHPOsQIIQqeDTXJVQtNQOEyt58seFV5GK GBMTygInw+vN9FksXzXojLHPXfXo16Vr/g2gQ57yMNx1qEpCLO7K/SHDfPAQQBl9swD106 rqbl42ymZlwwOkSMyAPr2JUBr+ukGqojXFxnuUP2wT53XY6G9+H1WiYwe5YtTLSfVAAFq9 L0iq8hmeAOqvrQ5oNixBBR85m/kEgC2WbT0GsxeDqF6BNf/9A0+kcJ2zf8tRvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677590225; a=rsa-sha256; cv=none; b=TnsDbOy7etppaxOgxMMb3kKHe4gLZDmmDbwOzQNAuDi5zsZI7rbBQUCfmCkazBaHX3yaov hgeQTb6HJRYPFw8W+4Q4uVLzxXHuNQTxvKic7Lrl3G9MWkWKxnUy3AyEjoBcZjcR7QHR4x ma/3IH2fdhhh4P8qr9opshUoDv00g5OhjTTDjp5vSQI4VwjkHYfCH2GCg7ojNPpjsGb3dD KMkz5lGpxCHe19LYy59+48IrEvbRG8yxOu1lEo3EsnEDKDVPWR/ecbCp7hrddiekgmDwse u9QdHz2VhGDu3gnHAEQYZXbdthZHOkcrNp22jKiTOhsSVkKlei1wsDkDBfqV5A== 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 4PQyZT1r5Sz17fw for ; Tue, 28 Feb 2023 13:17:05 +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 31SDH53m003670 for ; Tue, 28 Feb 2023 13:17:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31SDH5Ew003669 for emulation@FreeBSD.org; Tue, 28 Feb 2023 13:17:05 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: emulation@FreeBSD.org Subject: [Bug 264835] Linux: USB-IP tool fails to run: setsockopt - IP_PKTINFO: Protocol not available Date: Tue, 28 Feb 2023 13:17:05 +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: 13.1-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dchagin@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: assigned_to 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: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264835 Dmitry Chagin changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |emulation@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Feb 28 17:37:35 2023 X-Original-To: emulation@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 4PR4MP4w8qz3tjxl for ; Tue, 28 Feb 2023 17:37:53 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PR4MN6kgxz3h28; Tue, 28 Feb 2023 17:37:52 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=g4Lvs6m9; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::112a as permitted sender) smtp.mailfrom=kob6558@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-536bbe5f888so293937407b3.8; Tue, 28 Feb 2023 09:37:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677605872; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bv6Ihs9HhzGVLVZbGA88opVVrltNdcbvcYaSeZ9Jl4Q=; b=g4Lvs6m94D0+zhPAlSeo9BD4HybhIA/oAjMpvAbimfnIQQGCTK6IsGPjpUhZHlmgUn claDvFqHMGHVOvAVlN9A7Xqb9DnuUzx3ehTCpi4dGFICYSeI7VWrFd3doBpK8bl8nDAc ZGAeZLDYyeyoXjwVnSLmGbO5wanCSsgpajfh9c5fswwtG+JK/cYsJT3U82OCfINdHIzC /VNnERot0sg4XUlbbCBPiTdRtKhM4969L/OdTIWvCcq/jert1siSm87gOjpKAZaxb0uT 4oqqrHE7crp+oxcEnumOdXGmgVAcF9T02QQBQxmSOFI6wXKJJgtyN8dbYyJvqaJ94uh1 qB4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677605872; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bv6Ihs9HhzGVLVZbGA88opVVrltNdcbvcYaSeZ9Jl4Q=; b=NNILMNYmNMBQg9znzIJwlzOnLw4Ge0QfB5rkCf2Tw2mfaofJUcsa8uoXmS3gtLj8MX 1MUiktyH1dBaprY2yJ7Ijd2T/OqctEPZip9acooTN9hHd1KuR/XZ1QwY3+SI2n3+XXKJ SVwi05vHUd6/JVwjyjgh90lkja3q9r294OQAT67wAActnsQpaMvaHu+tbIVMorrL71U4 atsZV2AANEJ0tiFcvcnZguD11trFSQ5RD7U61Y4Ze/HZtnZFWUTPMSNnblwEspyJ5ZyX gX1j8R8DwQBXIfAV1Pgu2Pdf4IbT7unrRx4ahS5r1UGywnPGD9Ee4mZOZKlnIz+Jb15p kwUA== X-Gm-Message-State: AO0yUKXimIeHCZ/nwzjTTKLizMtWPPFuHCY7BKN+/odicxRD6kAhlH1c fRI0pd76ylF/fh/qbUhA1RwLoqoEW3K7Cu3KQ0ycDZ4o X-Google-Smtp-Source: AK7set97/zZIxI/wmJ/ZdI3cv5B+b0Kqc3+f7alDtfyoQqQnMzs5IDiaGbBgtC1mm0pNDK89O8Lp5kF3vsMwNzwQGY0= X-Received: by 2002:a05:690c:583:b0:538:49a4:b1e0 with SMTP id bo3-20020a05690c058300b0053849a4b1e0mr12186473ywb.2.1677605871797; Tue, 28 Feb 2023 09:37:51 -0800 (PST) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Kevin Oberman Date: Tue, 28 Feb 2023 09:37:35 -0800 Message-ID: Subject: Re: virtualbon-ose-kmod build fails with 14-CURRENT and llvm15 To: Brooks Davis Cc: "freebsd-emulation@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000000fcc5505f5c60ef0" X-Spamd-Result: default: False [-3.54 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.84)[-0.838]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[emulation@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112a:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4PR4MN6kgxz3h28 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --0000000000000fcc5505f5c60ef0 Content-Type: text/plain; charset="UTF-8" On Mon, Feb 27, 2023 at 3:40 PM Kevin Oberman wrote: > Thanks, Brooks! That seems to have been the right cast. At least it > compiles correctly. I'll test it after I reboot the new kernel and > installworld, probably this evening. > > I was a bit confused by what appeared as a cast of a void to a void, but > assumed I was just not understanding. > > On Mon, Feb 27, 2023 at 3:10 PM Brooks Davis wrote: > >> Sorry, I misread the error message and lead you astray by suggesting >> the opposite of the correct thing. The correct cast is probably >> (uintptr_t)pvUser. >> >> -- Brooks >> > > The patched version of the kmod works correctly as far as my limited testing can tell. Thanks again for your help! I will submit the patch upstream an see if it get a response. Is a patch to the port appropriate until/unless it gets fixed? -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --0000000000000fcc5505f5c60ef0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Feb 27, 2023= at 3:40 PM Kevin Oberman <rkober= man@gmail.com> wrote:
Thanks, Brooks! That seems to have been the right cast. At = least it compiles correctly. I'll=C2=A0 test it after I reboot the new = kernel and installworld, probably this evening.

I was a bit confused by what appeared as= a cast of a void to a void, but assumed I was just not understanding.
<= /div>

On Mon, Feb 27, 2023 at 3:10 PM Brooks Davis <brooks@freebsd.org> wrote:
Sorry, I misread the e= rror message and lead you astray by suggesting
the opposite of the correct thing.=C2=A0 The correct cast is probably
(uintptr_t)pvUser.

-- Brooks

The patched version of = the kmod works correctly as far as my limited testing can tell. Thanks agai= n for your help!

I w= ill submit the patch upstream an see if it get a response. Is a patch to th= e port appropriate until/unless it gets fixed?
--
Kevin Oberman, Part time kid h= erder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Finge= rprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
--0000000000000fcc5505f5c60ef0-- From nobody Fri Mar 3 08:26:12 2023 X-Original-To: emulation@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 4PSgzS4kBQz3vdXR for ; Fri, 3 Mar 2023 08:26:12 +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 4PSgzS3JkWz413m for ; Fri, 3 Mar 2023 08:26:12 +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=1677831972; 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; bh=WhAWHLUgpFgi3I+V3xok1Amdjwfvp1sNzCigq+SrY8o=; b=s8ATzG9GCRtIiCquklzWsBhvpBlR0svh8r8m5KzJToTQgV8HW1pXSsGUlfQgSV8Ntp9PeU SiY7Vz+9EajTQUh/8Fru6yJkI1RgrQ5i9L2hFz5q8M6kNGVFo0O8b+QYCbY9sTROZGVLmb dun4XILFfb+T3COn7+CK9qusxEE33K0U9mMt/iK/a9UsFMw0J7iRtXg9hh9qwnsfCcRFvm IWKj1HcP982DY1Z2/4MpdTjMf34Oi+6acF0YUTdxPrDwwTO/XbmdW0Lte+ThjBqDO/7mrl YV5otvUHOC2tkPnCtOOMCoo3FdklUnWtMUCvhpfHUou3wBb1j6tqo1ydUs8ZAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677831972; a=rsa-sha256; cv=none; b=qKCFw9DXkdiWtBEP/YU3Z1+ciltKlxNUfqPR6sW97ZGGurhLohADN4N2ukGz8AdyByzFeh 3cW9mrIiJQu6D5/k/ebBCzgSkoSDTPdcOvplxfoz02FSx7gCKgJGlSEBbF6mKSpxmR91vh VhbTmTl2dvXCfCkhawZV/qKO+qgSqi/By5LadbdMQqSabHbiyICqK/dfyFIUC0bnlnGC/3 z774EjK+TVeN2j9OSFKuBEmFS+1OXPatAnrEJyPuisDRxu2x+Std6t81McugrTGRgK1jWg 79VXLvzU0pzomKXMt5dtWgFfDTRvUSxFvIKfG0o4m1j7mvkzos6ivx7ibsg6og== 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 4PSgzS2MGHzqpC for ; Fri, 3 Mar 2023 08:26:12 +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 3238QCdY027059 for ; Fri, 3 Mar 2023 08:26:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3238QCEt027058 for emulation@FreeBSD.org; Fri, 3 Mar 2023 08:26:12 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: emulation@FreeBSD.org Subject: [Bug 269934] emulators/qemu-user-static does not support capability mode system calls Date: Fri, 03 Mar 2023 08:26:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: delphij@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269934 Bug ID: 269934 Summary: emulators/qemu-user-static does not support capability mode system calls Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: emulation@FreeBSD.org Reporter: delphij@FreeBSD.org Assignee: emulation@FreeBSD.org Flags: maintainer-feedback?(emulation@FreeBSD.org) Prompted by bug #269185 . Currently, cap_enter would return ENOSYS, e.g. in bsd-user/freebsd/os-proc.= h: /* cap_enter(2) */ static inline abi_long do_freebsd_cap_enter(void) { qemu_log("qemu: Unsupported syscall cap_enter()\n"); return -TARGET_ENOSYS; } can the capability mode system calls be supported? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri Mar 3 08:26:12 2023 X-Original-To: emulation@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 4PSgzS4P2jz3vdSF for ; Fri, 3 Mar 2023 08:26:12 +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 4PSgzS24NGz411V for ; Fri, 3 Mar 2023 08:26:12 +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=1677831972; 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=BT51JwdK7LbbpQH81j/5pe5S+IVSL09j04o6Qc9GNvQ=; b=IUS5WJ0fmZnGmp0AV6PPgtsUSasX7sY5O0t56MLGDSXb15muldoZKRt4dy8czzgr+VoiGa 645Y+QhZWsLKp/PVy7MiE62LjUyUQ/miVNoj+FzjZqMFBlp/xfioxa2TwrpaJXPBm1Mahg Pbo2av+QotbPW/9fU5l/1XwkWGH5l3PBYFnj6ZOf6g/JsCpVjXwJtIiBRHxvPKXjcSDIdG RdNUJ+F1WroDO5dWAi5wVV9nk7sMsqstEjdSQhZvwsoJe3KLP8m9j8F0VXtFTtw0QSd4Qc X+2YargzAtBejzZdKj+aKd0jfu7vTEGh4jk+CjVpMPHzk22cHYG4lJdfTT0XzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677831972; a=rsa-sha256; cv=none; b=wo0cH6V5dq/ySJ7Cqbh5PBQP1g6i1zn4MTTv9uopOmINKbh5p1iJbAah6TtYgx7CE2Bb+l WCvecMF6AlObml2wxvXGfWJcWGMT7vQcwwQuQVH3sJ78spzDnRslv0slnajmF8MGypnhsN sJeKeoBV78wNPwianEovI4Fc50FA61STc7ouXS5tXAS5pekoVyVuteUZ/0iWDGoDnfyY3X IXu8nnXfS4oIY9luWU0ugphb/kmU3ASyczFt7P1Z0XoOPwvLvjf8oBmG0nNOFCUy8Tuk16 ZGKNo7IggxbaGQmFqP/ez4BcNMbc5ocKISXbOA26wroaw8h71OFy2lu0aoY3KQ== 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 4PSgzS17PtzrGq for ; Fri, 3 Mar 2023 08:26:12 +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 3238QCGB027054 for ; Fri, 3 Mar 2023 08:26:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3238QCHf027053 for emulation@FreeBSD.org; Fri, 3 Mar 2023 08:26:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: maintainer-feedback requested: [Bug 269934] emulators/qemu-user-static does not support capability mode system calls Date: Fri, 03 Mar 2023 08:26:12 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-emulation (Nob= ody) for maintainer-feedback: Bug 269934: emulators/qemu-user-static does not support capability mode sys= tem calls https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269934 --- Description --- Prompted by bug #269185 . Currently, cap_enter would return ENOSYS, e.g. in bsd-user/freebsd/os-proc.= h: /* cap_enter(2) */ static inline abi_long do_freebsd_cap_enter(void) { qemu_log("qemu: Unsupported syscall cap_enter()\n"); return -TARGET_ENOSYS; } can the capability mode system calls be supported? From nobody Fri Mar 3 08:27:03 2023 X-Original-To: emulation@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 4PSh0R6XmCz3vdJJ for ; Fri, 3 Mar 2023 08:27:03 +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 4PSh0R46Vdz41YZ for ; Fri, 3 Mar 2023 08:27:03 +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=1677832023; 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=r9j+ClB7E45HeLK6mY5WPaAmiEKtm458jrnX+XbHYOI=; b=yBmK1Et0jcZc0SS7KnfluNjgoJrPewYp70u5V5/s56Rnw6vDyYyLf+rTgFjf714uBAkJZQ fuTrjDOttZBywOJrCfdvCY6HhsXysqg4V9kBtXLmx0zf6sjcn8Ynj0iD75fw+fkifG8qux y6bj8ApQ95cWktcfHK5A4z4wGXOj78aosHPSrGSFvysLjsmRipwkzaXhgzebKrNjkzROyW LY/Y0JcNXHlhln5Zmx7zKfkZ/QppU3tH2D6VXGXe/6NJ7+TF5PBNsXSgUIREr9oJN/RQ9J YMSR/vSqwOL3mYUcJsTdouvbW6nJD8igeysQMHRNvrtui1ym3uGZ0OGFLMal+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677832023; a=rsa-sha256; cv=none; b=tMsoJtE9QzXm7Jw35st8L0nNVSeTwRZO0c1mc4Xuo3+ODdZU5IvwXxnneibqqGMEYpbQYg KHzwOnyw+rW8d6X71thKShz07Fg8jebfWVEdL4s8rAaVLRwo6YDW8i2qwjOjNIVh2AKYFR sovutH3Rv/lfEqERE+AozkQ5vBEFCjwFHmslHR31Z75S1bD0Zuw5NoCZhfb/wwi+mZQyD3 NyXeiHh5mnN18/o2BUpYBPGiLGWlx5Nns0Qt1+XrWT8/G7qN4wJ7PZ1a+7AOcYAADVow43 LIlbx2Fl9ZLY4ES1CdLXRF3NEziLTkIWo7WAAxjPIqSGcrh70GGgrHx/CT9Erg== 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 4PSh0R3CKjzrGs for ; Fri, 3 Mar 2023 08:27:03 +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 3238R3aB027351 for ; Fri, 3 Mar 2023 08:27:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3238R38I027350 for emulation@FreeBSD.org; Fri, 3 Mar 2023 08:27:03 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: emulation@FreeBSD.org Subject: [Bug 269934] emulators/qemu-user-static does not support capability mode system calls Date: Fri, 03 Mar 2023 08:27:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: delphij@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: see_also 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: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269934 Xin LI changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 691 | |85 CC| |delphij@FreeBSD.org, | |imp@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sat Mar 4 14:16:57 2023 X-Original-To: emulation@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 4PTRjn6Wywz3w49M for ; Sat, 4 Mar 2023 14:17:01 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PTRjm6xWrz3C2j for ; Sat, 4 Mar 2023 14:17:00 +0000 (UTC) (envelope-from jrm@ftfl.ca) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ftfl.ca header.s=google header.b=SHqXU9Q9; spf=pass (mx1.freebsd.org: domain of jrm@ftfl.ca designates 2607:f8b0:4864:20::832 as permitted sender) smtp.mailfrom=jrm@ftfl.ca; dmarc=none Received: by mail-qt1-x832.google.com with SMTP id r5so5971368qtp.4 for ; Sat, 04 Mar 2023 06:17:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; t=1677939420; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=0hRH48tInkS8HGmUKK0EqmJ/dBtc90m6g+BTQQROSBI=; b=SHqXU9Q9cYRb7cRIpU5FdTefR8c41T5/uukeDimVlLfaO2T5geQJN3CVOkGeC6KR/Q RZoKWK50mhJE3mtMjU1Z5/mRAGQSuzBhu0paKjqQsb9HAXTv4RDlA3N/ve3xtQbgIHpY 5o8aWCewuvzpUtu3uWRd+D9VQcKKP0TUKaoZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677939420; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0hRH48tInkS8HGmUKK0EqmJ/dBtc90m6g+BTQQROSBI=; b=yhG6rdaCPNO+irX3R0xfpCxrYtF6LO4MnLiQ2f6JFvULQn+MFHLJbAnTySDA5vIKWI 9XNAZNJ2dQE8/2DjbUzK6yW52a9PHKZXbSdTVyA1u+KnlL5x5ngeRVa2c1A4U7HswEyr T+6YIrRRya0dNmwlcyBRoZLsHz+5sAdbfGTMeiXqORZKonvvtxpEK0fW7JFAXIL17euz J9wO/0CxvUQMiBq0V4CWKVyPe4FtABk4lSjF1IxxKRi8e+7Pj4Dprxc9c2Dg2K9kvJeL RwR+yUSGI8OiEzsDv4/XcU4A/BNmxklLplyqF573/LbM5/Jjvgtb/MOSGuJSKjA1AUyB uyVw== X-Gm-Message-State: AO0yUKX9BGLuKCRQFvO7noWl9HkI1mewJczjNU9r5qP3o+6ksKB9Gvuh yjJbqmrj6bf6pFfPrwNKcejifdokiObUijatm8w= X-Google-Smtp-Source: AK7set+HuvHLfAFmeAn4afGRbU3h/c85uavfA0FFeR09+0+EN8L675/2Wob4/Ufh1QOy+loSbEhiKg== X-Received: by 2002:a05:622a:1101:b0:3b9:bc26:3349 with SMTP id e1-20020a05622a110100b003b9bc263349mr8591905qty.37.1677939419623; Sat, 04 Mar 2023 06:16:59 -0800 (PST) Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-156-34-187-123.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.187.123]) by smtp.gmail.com with ESMTPSA id d1-20020ac85ac1000000b003b9e1d3a502sm3877318qtd.54.2023.03.04.06.16.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Mar 2023 06:16:59 -0800 (PST) From: Joseph Mingrone To: Kevin Oberman Cc: Brooks Davis , "freebsd-emulation@freebsd.org" Subject: Re: virtualbon-ose-kmod build fails with 14-CURRENT and llvm15 In-Reply-To: (Kevin Oberman's message of "Tue, 28 Feb 2023 09:37:35 -0800") References: Date: Sat, 04 Mar 2023 10:16:57 -0400 Message-ID: <86o7p861pi.fsf@phe.ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[ftfl.ca:s=google]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::832:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[emulation@freebsd.org]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; DKIM_TRACE(0.00)[ftfl.ca:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[jrm]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[ftfl.ca]; PREVIOUSLY_DELIVERED(0.00)[emulation@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4PTRjm6xWrz3C2j X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Tue, 2023-02-28 at 09:37, Kevin Oberman wrote: > I will submit the patch upstream an see if it get a response. Is a patch to > the port appropriate until/unless it gets fixed? Created https://reviews.freebsd.org/D38906 with the cast that Brooks suggested. Builds successfully in all my amd64 jails (12.3-RELEASE-p4, 13.1-RELEASE-p2, and 14.0-CURRENT 1400081).