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--