From owner-freebsd-emulation@freebsd.org Mon Sep 25 01:06:28 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7AEEE062AF for ; Mon, 25 Sep 2017 01:06:28 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9B94268B7C for ; Mon, 25 Sep 2017 01:06:28 +0000 (UTC) (envelope-from soralx@cydem.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9B0DEE062AE; Mon, 25 Sep 2017 01:06:28 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AC09E062AC for ; Mon, 25 Sep 2017 01:06:28 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7512668B7B for ; Mon, 25 Sep 2017 01:06:28 +0000 (UTC) (envelope-from soralx@cydem.org) Received: by freefall.freebsd.org (Postfix) id BCBBB25D7; Mon, 25 Sep 2017 01:06:27 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id A33C725D6; Mon, 25 Sep 2017 01:06:27 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from smtp.triumf.ca (smtp.triumf.ca [142.90.100.188]) by mx1.freebsd.org (Postfix) with ESMTP id D7F0D68B79; Mon, 25 Sep 2017 01:06:26 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from mscad14 (mscad14.triumf.ca [142.90.115.36]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.triumf.ca (Postfix) with ESMTP id B8CD2F804; Sun, 24 Sep 2017 18:06:20 -0700 (PDT) Date: Sun, 24 Sep 2017 18:06:19 -0700 From: To: Cc: Subject: Re: [virtualbox-ose] Build failure: global register variable Message-ID: <20170924180619.23e149be@mscad14> In-Reply-To: <5c68323f-5fed-342b-ad92-e74d178f9daf@FreeBSD.org> References: <20170917195419.431341e7@mscad14> <20170920191710.58d335df@mscad14> <20170921160000.689755f8@mscad14> <5c68323f-5fed-342b-ad92-e74d178f9daf@FreeBSD.org> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; amd64-portbld-freebsd9.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 25 Sep 2017 10:46:26 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 01:06:28 -0000 > > Alternatively, one can try changing 'r14' to 'rbp' in definition > > of "AREG0" for amd64 at src/recompiler/dyngen-exec.h:81. This is > > the only place where gcc is needed, as clang cannot handle r14 > > for now [0]. > > > > I recompiled kBuild with clang, and succeeded compiling virtualbox-ose > > with 'r14' to 'rbp' change. It seems to work normally, but I don't > > know what are the performance implications of using up rbp. > > > > [0] clang/lib/Basic/Targets/X86.h: > > 860 bool validateGlobalRegisterVariable(StringRef RegName, > > unsigned RegSize, 861 bool > > &HasSizeMismatch) const override { 862 // rsp and rbp are the > > only 64-bit registers the x86 backend can currently 863 // handle. > > 864 if (RegName.equals("rsp") || RegName.equals("rbp")) { > > 865 // Check that the register size is 64-bit. > > 866 HasSizeMismatch = RegSize != 64; > > 867 return true; > > 868 } > > Please try the attached patch. Thanks for the patch! I gave it a quick try (not an extensive test), and VirtualBox, compiled fully with clang, seems to work as usual. > Jung-uk Kim -- [SorAlx] ridin' VN2000 Classic LT From owner-freebsd-emulation@freebsd.org Mon Sep 25 14:25:37 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F2E6E1705B for ; Mon, 25 Sep 2017 14:25:37 +0000 (UTC) (envelope-from khellman@mcprogramming.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E2D53800A3 for ; Mon, 25 Sep 2017 14:25:36 +0000 (UTC) (envelope-from khellman@mcprogramming.com) Received: by mailman.ysv.freebsd.org (Postfix) id DEEE0E1705A; Mon, 25 Sep 2017 14:25:36 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE86EE17059 for ; Mon, 25 Sep 2017 14:25:36 +0000 (UTC) (envelope-from khellman@mcprogramming.com) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B38B8800A2 for ; Mon, 25 Sep 2017 14:25:36 +0000 (UTC) (envelope-from khellman@mcprogramming.com) Received: by freefall.freebsd.org (Postfix) id 0929A8742; Mon, 25 Sep 2017 14:25:36 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id E6FAB8741 for ; Mon, 25 Sep 2017 14:25:35 +0000 (UTC) (envelope-from khellman@mcprogramming.com) Received: from smtp.webfaction.com (mail6.webfaction.com [31.170.123.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01C7E800A0; Mon, 25 Sep 2017 14:25:34 +0000 (UTC) (envelope-from khellman@mcprogramming.com) Received: from dane.localdomain (c-67-162-144-164.hsd1.co.comcast.net [67.162.144.164]) by smtp.webfaction.com (Postfix) with ESMTPSA id 6A3E7604166EE; Mon, 25 Sep 2017 14:25:27 +0000 (UTC) Received: from khellman by dane.localdomain with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1dwUK9-000E6r-1G; Mon, 25 Sep 2017 08:25:29 -0600 Date: Mon, 25 Sep 2017 08:25:28 -0600 From: Keith Hellman To: vbox@freebsd.org Cc: freebsd-ports List Subject: emulators/virtualbox-ose core dumps on builds Message-ID: <20170925142528.GG15401@dane.localdomain> Reply-To: khellman@mcprogramming.com MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PpAOPzA3dXsRhoo+" Content-Disposition: inline Jabber-ID: jabber@mcprogramming.com User-Agent: Mutt/1.8.3 (2017-05-23) Sender: Keith Hellman X-Mailman-Approved-At: Mon, 25 Sep 2017 17:13:45 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 14:25:37 -0000 --PpAOPzA3dXsRhoo+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello all: I'm running=20 FreeBSD 12.0-CURRENT #0 r320599: Mon Jul 3 15:34:15 UTC 2017 =20 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC=20 with /usr/ports at svn r450591. I *just* pulled a brand new ports tree, so I'm reasonably confident it is in good shape. I've been having problems (for the past month, over several revs) building emulators/virtualbox-ose, sadly it looks like toolchain components are dumping core (see attached log, with an ar.core that probably shouldn't be there. I've noticed that kmk_redirect -rti (the failing command) means to accept input from stdin, but then a filename is provided next. It doesn't seem the command make is running pipes data into the process. I've dug around a bit the vb-ose src tree but I cannot for the life of me find the offending kmk_redirect -rti command or how it is generated --- I was hoping to at least confirm that the command line provided RuntimeR3.a.ar-script is being generated and to remove the -i spec. I suspect someone at vbox@freebsd.org would be faster at this than I. Of course you could also tell me if I'm burrowing down a rabbit-hole with a red-herring at the end :/ TiA for any help you can provide, --=20 Keith Hellman #include khellman@mcprogramming.com from disclaimer import standard khellman@mines.edu gpg key 9FCF40FD freenode.net as mrtuple "But VCs are mistaken to look for the next Microsoft, because no startup can be the next Microsoft unless some other company is prepared to bend over at just the right moment and be the next IBM." -- http://www.paulgraham.com/gh.html --PpAOPzA3dXsRhoo+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlnJEdMACgkQeAsFcZ/PQP2VDgCfXuIKJzAxBRQuOLiUz5qQ8DjR MvAAnRsBitTljgtAlJz8QIX0ANWme2AC =zuIR -----END PGP SIGNATURE----- --PpAOPzA3dXsRhoo+-- From owner-freebsd-emulation@freebsd.org Mon Sep 25 22:12:11 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3CEEFE254BA for ; Mon, 25 Sep 2017 22:12:11 +0000 (UTC) (envelope-from daisy.williams@getadditional-visitors.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 26E996BA31 for ; Mon, 25 Sep 2017 22:12:11 +0000 (UTC) (envelope-from daisy.williams@getadditional-visitors.com) Received: by mailman.ysv.freebsd.org (Postfix) id 233D0E254B9; Mon, 25 Sep 2017 22:12:11 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22B75E254B8 for ; Mon, 25 Sep 2017 22:12:11 +0000 (UTC) (envelope-from daisy.williams@getadditional-visitors.com) Received: from mars.arch.mrface.com (mars.arch.mrface.com [212.237.58.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C44D16BA2C for ; Mon, 25 Sep 2017 22:12:10 +0000 (UTC) (envelope-from daisy.williams@getadditional-visitors.com) Received: from 06022015PC (unknown [171.61.182.182]) by mars.arch.mrface.com (Postfix) with ESMTPA id D29BA471C7 for ; Tue, 26 Sep 2017 00:11:59 +0200 (CEST) From: "Daisy Williams" To: Subject: Rank First Pay Later. Date: Tue, 26 Sep 2017 03:27:44 +0530 Message-ID: <58cf01d3364b$50c03fe0$f240bfa0$@getadditional-visitors.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdM1/2mW7/A93uJpTzSK4sr6p8itXQ== Content-Language: en-us Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 22:12:11 -0000 Hi, Greetings, Is your website on the first page of Google results? If no then we can help you get there! We're ResultFirst, redefining the experience for digital marketing services. For more than 10 years, our team of 200+ marketing gurus has served over 4000 clients. Our unique "Pay-for-performance SEO" model attracts customers from all geographies of the world, and we are proud to cater to the needs of every type of business belonging to varied industries, scales, and regions. We do "Pay-For-Performance SEO." You get to pay only when we rank your keywords on top searches. . FREE website analysis report . No monthly fee / No contractual payout . Dedicated 24*7 support . Assured Ranking as you only pay for the results . Only one time set-up fee Our results 'Talk' Get your website evaluated NOW, Just reply to this email with your contact details along with your requirement and we will call you back. In case you are not interested in receiving these emails then you have the option to stop receiving them. To unsubscribe just write "REMOVE" and for report abuse just write "ABUSE" and reply to this email. Thanks & Regards, Daisy Williams Marketing Manager ResultFirst Inc. Head Office: San Jose, CA 95120 From owner-freebsd-emulation@freebsd.org Mon Sep 25 21:51:20 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCCFEE2519B for ; Mon, 25 Sep 2017 21:51:20 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id BACC86B00E for ; Mon, 25 Sep 2017 21:51:20 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id BA0B3E2519A; Mon, 25 Sep 2017 21:51:20 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B99B2E25198 for ; Mon, 25 Sep 2017 21:51:20 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C8646B00D for ; Mon, 25 Sep 2017 21:51:20 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by freefall.freebsd.org (Postfix) id E67AE110E5; Mon, 25 Sep 2017 21:51:19 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id D023D110E4 for ; Mon, 25 Sep 2017 21:51:19 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) by mx1.freebsd.org (Postfix) with ESMTP id A996F6B002; Mon, 25 Sep 2017 21:51:16 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: [virtualbox-ose] Build failure: global register variable To: soralx@cydem.org Cc: vbox@FreeBSD.org References: <20170917195419.431341e7@mscad14> <20170920191710.58d335df@mscad14> <20170921160000.689755f8@mscad14> <5c68323f-5fed-342b-ad92-e74d178f9daf@FreeBSD.org> <20170924180619.23e149be@mscad14> From: Jung-uk Kim Message-ID: <6b02f95f-207b-0f55-8e30-11512979804e@FreeBSD.org> Date: Mon, 25 Sep 2017 17:50:58 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170924180619.23e149be@mscad14> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2nm70CfCPXuLwQqmOidkbnURD84n3NHvx" X-Mailman-Approved-At: Tue, 26 Sep 2017 03:51:10 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 21:51:21 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2nm70CfCPXuLwQqmOidkbnURD84n3NHvx Content-Type: multipart/mixed; boundary="p078gD22HjDb8LmkwwT3pcKwb517hWKfx"; protected-headers="v1" From: Jung-uk Kim To: soralx@cydem.org Cc: vbox@FreeBSD.org Message-ID: <6b02f95f-207b-0f55-8e30-11512979804e@FreeBSD.org> Subject: Re: [virtualbox-ose] Build failure: global register variable References: <20170917195419.431341e7@mscad14> <20170920191710.58d335df@mscad14> <20170921160000.689755f8@mscad14> <5c68323f-5fed-342b-ad92-e74d178f9daf@FreeBSD.org> <20170924180619.23e149be@mscad14> In-Reply-To: <20170924180619.23e149be@mscad14> --p078gD22HjDb8LmkwwT3pcKwb517hWKfx Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 09/24/2017 21:06, soralx@cydem.org wrote: >> Alternatively, one can try changing 'r14' to 'rbp' in definition >>> of "AREG0" for amd64 at src/recompiler/dyngen-exec.h:81. This is >>> the only place where gcc is needed, as clang cannot handle r14 >>> for now [0]. >>> >>> I recompiled kBuild with clang, and succeeded compiling virtualbox-os= e >>> with 'r14' to 'rbp' change. It seems to work normally, but I don't >>> know what are the performance implications of using up rbp. >>> >>> [0] clang/lib/Basic/Targets/X86.h: >>> 860 bool validateGlobalRegisterVariable(StringRef RegName, >>> unsigned RegSize, 861 bool >>> &HasSizeMismatch) const override { 862 // rsp and rbp are the >>> only 64-bit registers the x86 backend can currently 863 // handle= =2E >>> 864 if (RegName.equals("rsp") || RegName.equals("rbp")) { >>> 865 // Check that the register size is 64-bit. >>> 866 HasSizeMismatch =3D RegSize !=3D 64; >>> 867 return true; >>> 868 } =20 >> >> Please try the attached patch. >=20 > Thanks for the patch! I gave it a quick try (not an extensive test), > and VirtualBox, compiled fully with clang, seems to work as usual. Committed (r450636), thanks! For more detailed information, please read the commit log. https://svnweb.freebsd.org/changeset/ports/450636 Jung-uk Kim --p078gD22HjDb8LmkwwT3pcKwb517hWKfx-- --2nm70CfCPXuLwQqmOidkbnURD84n3NHvx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlnJelAACgkQfJ+WJvzb 8UYOCwf8DEXRczq1P/qfiV4+4JQ3Ji8kTc2djm7mOUQChnU8KauTvYaN3WWqjf+t nM2xtbhxQ7Iw/ANzm3BBWpsiooIKuoc2pELHGK4wLSQcgVC1eRKP1tCLKT5v3+Rm 1pbVX86/5RCjNcxl5H6c6Hifvnw4YgXCOBuPUu1rWvPZNVcMD/PE+gAgp75UVAAM LCCAFZoCPEA9AJO5jvww32r6B1Ehhb1uI1pd+LFkIxiGlxwIvtLqYzMda1xTCymk HdAblSt6e7J7WQ+7aFeafl1KEgMZISXWrDxLLpBZnewgFnQbKZB9IvclvnLJiI5t m+KTSnbPDOj2VZCmqPboGdiskCVvcA== =KWiT -----END PGP SIGNATURE----- --2nm70CfCPXuLwQqmOidkbnURD84n3NHvx-- From owner-freebsd-emulation@freebsd.org Thu Sep 28 09:56:04 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C90D2E2E1E1 for ; Thu, 28 Sep 2017 09:56:04 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id AC0C377CE9 for ; Thu, 28 Sep 2017 09:56:04 +0000 (UTC) (envelope-from soralx@cydem.org) Received: by mailman.ysv.freebsd.org (Postfix) id A80A8E2E1E0; Thu, 28 Sep 2017 09:56:04 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5B4DE2E1DE for ; Thu, 28 Sep 2017 09:56:04 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 71B2077CE8 for ; Thu, 28 Sep 2017 09:56:04 +0000 (UTC) (envelope-from soralx@cydem.org) Received: by freefall.freebsd.org (Postfix) id 9444215CBE; Thu, 28 Sep 2017 09:56:03 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 7881115CBD; Thu, 28 Sep 2017 09:56:03 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from smtp.triumf.ca (smtp.triumf.ca [142.90.100.188]) by mx1.freebsd.org (Postfix) with ESMTP id AC19377CE5; Thu, 28 Sep 2017 09:56:02 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from mscad14 (mscad14.triumf.ca [142.90.115.36]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.triumf.ca (Postfix) with ESMTP id 060E5F802; Thu, 28 Sep 2017 02:55:56 -0700 (PDT) Date: Thu, 28 Sep 2017 02:55:55 -0700 From: To: Cc: Subject: Re: [virtualbox-ose] Build failure: global register variable Message-ID: <20170928025555.032ce67a@mscad14> In-Reply-To: <6b02f95f-207b-0f55-8e30-11512979804e@FreeBSD.org> References: <20170917195419.431341e7@mscad14> <20170920191710.58d335df@mscad14> <20170921160000.689755f8@mscad14> <5c68323f-5fed-342b-ad92-e74d178f9daf@FreeBSD.org> <20170924180619.23e149be@mscad14> <6b02f95f-207b-0f55-8e30-11512979804e@FreeBSD.org> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; amd64-portbld-freebsd9.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 28 Sep 2017 10:31:09 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 09:56:04 -0000 Jung-uk, > >>> [0] clang/lib/Basic/Targets/X86.h: > >>> 860 bool validateGlobalRegisterVariable(StringRef RegName, > >>> unsigned RegSize, 861 bool > >>> &HasSizeMismatch) const override { 862 // rsp and rbp are the > >>> only 64-bit registers the x86 backend can currently 863 // > >>> handle. 864 if (RegName.equals("rsp") || RegName.equals("rbp")) > >>> { 865 // Check that the register size is 64-bit. > >>> 866 HasSizeMismatch = RegSize != 64; > >>> 867 return true; > >>> 868 } > >> > >> Please try the attached patch. > > > > Thanks for the patch! I gave it a quick try (not an extensive test), > > and VirtualBox, compiled fully with clang, seems to work as usual. > > Committed (r450636), thanks! Sadly, I forgot to disable VT-x when testing. My bad. I tested again, and found that, on unpatched VBox, the virtual machine boots and works fine with both VT-x on and off, while patched version fails to start the VM when VT-x is turned off: VBoxManage: error: No error info VBoxManage: error: Details: code NS_ERROR_CALL_FAILED (0x800706be), component ProgressProxy, interface IProgress How would one go about debugging this? > For more detailed information, please read the commit log. > > https://svnweb.freebsd.org/changeset/ports/450636 > > Jung-uk Kim -- [SorAlx] ridin' VN2000 Classic LT From owner-freebsd-emulation@freebsd.org Thu Sep 28 23:05:54 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67F7AE0E727 for ; Thu, 28 Sep 2017 23:05:54 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ua0-x232.google.com (mail-ua0-x232.google.com [IPv6:2607:f8b0:400c:c08::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F02F715B6 for ; Thu, 28 Sep 2017 23:05:54 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ua0-x232.google.com with SMTP id b34so340278uab.0 for ; Thu, 28 Sep 2017 16:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=gaf86BZKqVFEe0ZSXDgEcnpof8g1YKsDXNECjoekDIo=; b=loF512OMNBjEygl9DmPi2HQyw7m+WKpxo4RnQd17kPKgE3ZxHF0FdNMBFdy+CFHH91 KnD3nFP9Z1Qvm7z6h+ddsVPG7TbWTlYIgEaM+oOEXexwULEDLvuOECeBS8SkyehsSf4K J5O0jNYHAJ4f2+hxkHkAEncqvYfWa2F8g4ovAL1a7m58u8iHt6dJRPsTxoJHtdFP+Dg+ kfIwkWaD8Ek2jyrRPvPiUUHmFTNVXMdDa2Ub5UQZlK1XPxeio6ya4Ljrd0M4ZWJZNEhP axnX4iXHAhHW27J8VjiCsEsstH3Lef6nOyJ8iUn2INONw2R5AzSbGx+80ZksHP/hCJOg Nmbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=gaf86BZKqVFEe0ZSXDgEcnpof8g1YKsDXNECjoekDIo=; b=iCxGvNx+5bv7gidzMq2/8JOfjbd1xV3d+l8lg2rvrfyF0/nF96sGSqXCUnix05Nd+V zyHvbl+Xysp1TPweRfZDfofQd1qxRd7DHzYUT5pPBdfMceThRIL4fBAx9HwDfjl7ETUA y2AXgu7yNlllc9zmsCEDcnykvLgQ4USmPmA7ncVA4HJ6lJedTgC0Q73fpWe8KHO0DFGM 4KcFk/21jR2rR/96T6kaBwjPMMQiO0XsEV4HyQkb/Egqx/VAwSqc4AVm5NATMxkgVp7u jM8TLJDoFYaWOvTyzcCVDfLcqQvZ+KVVJlvQxtJyTk7za7pvqbK+1WcpHdh5tmqkWEh/ YNTQ== X-Gm-Message-State: AMCzsaVPb704tb0aCAAcy+DgftTL9U3n7C1lSFKC6nSv/4EhTb0HXinJ 2Cf9wvNdCNcgQ3JHW3r72lgsrZQkG91Q4xau9ZCZzWp9 X-Google-Smtp-Source: AOwi7QA6Pl7PLuVrk2nZun6u6dVcf6ulsjZpczR+WQmsIGUON/bQmvPuaFnYPNgoSQsRpdmP0xL0uftszLjUEAGaHgM= X-Received: by 10.176.71.81 with SMTP id i17mr1095189uac.24.1506639952861; Thu, 28 Sep 2017 16:05:52 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.103.134.194 with HTTP; Thu, 28 Sep 2017 16:05:52 -0700 (PDT) From: Kevin Oberman Date: Thu, 28 Sep 2017 16:05:52 -0700 X-Google-Sender-Auth: Ahh3zwNHAb7iecd1pQwO7kRpA4U Message-ID: Subject: VirtualBox VM fails to start after upgrade of 11-stable system To: "freebsd-emulation@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 23:05:54 -0000 I m unable to get the Windows7 virtual machine to resume after upgrading my kernel from r320666 to r324075. I did rebuild and reinstall the kmod after the upgrade. It fails with the following error: Failed to open a session for the virtual machine Win7. The VM session was aborted. Result Code: NS_ERROR_FAILURE (0x80004005) Component: SessionMachine Interface: ISession {7844aa05-b02e-4cdd-a04f-ade4a762e6b7} Has anyone else seen this or have an idea of what is happening? Much as I hate to admit it, I really need the VM running. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 From owner-freebsd-emulation@freebsd.org Thu Sep 28 23:50:29 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14D76E0F4C1 for ; Thu, 28 Sep 2017 23:50:29 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E4DA4725ED for ; Thu, 28 Sep 2017 23:50:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id E421FE0F4BF; Thu, 28 Sep 2017 23:50:28 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3A72E0F4BE for ; Thu, 28 Sep 2017 23:50:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4FCB725EC for ; Thu, 28 Sep 2017 23:50:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: by freefall.freebsd.org (Postfix) id 193D0135C; Thu, 28 Sep 2017 23:50:28 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id CC5DA135B for ; Thu, 28 Sep 2017 23:50:27 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) by mx1.freebsd.org (Postfix) with ESMTP id AD62D725EB; Thu, 28 Sep 2017 23:50:26 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: [virtualbox-ose] Build failure: global register variable To: soralx@cydem.org Cc: vbox@FreeBSD.org References: <20170917195419.431341e7@mscad14> <20170920191710.58d335df@mscad14> <20170921160000.689755f8@mscad14> <5c68323f-5fed-342b-ad92-e74d178f9daf@FreeBSD.org> <20170924180619.23e149be@mscad14> <6b02f95f-207b-0f55-8e30-11512979804e@FreeBSD.org> <20170928025555.032ce67a@mscad14> From: Jung-uk Kim Message-ID: Date: Thu, 28 Sep 2017 19:50:15 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170928025555.032ce67a@mscad14> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1UBG38NjrWHRvO63BiPof6wcap2wO9Guf" X-Mailman-Approved-At: Fri, 29 Sep 2017 00:17:52 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 23:50:29 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1UBG38NjrWHRvO63BiPof6wcap2wO9Guf Content-Type: multipart/mixed; boundary="xAN9aAOwPlXc2xqgf3bV9s5HwerH1lOGP"; protected-headers="v1" From: Jung-uk Kim To: soralx@cydem.org Cc: vbox@FreeBSD.org Message-ID: Subject: Re: [virtualbox-ose] Build failure: global register variable References: <20170917195419.431341e7@mscad14> <20170920191710.58d335df@mscad14> <20170921160000.689755f8@mscad14> <5c68323f-5fed-342b-ad92-e74d178f9daf@FreeBSD.org> <20170924180619.23e149be@mscad14> <6b02f95f-207b-0f55-8e30-11512979804e@FreeBSD.org> <20170928025555.032ce67a@mscad14> In-Reply-To: <20170928025555.032ce67a@mscad14> --xAN9aAOwPlXc2xqgf3bV9s5HwerH1lOGP Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 09/28/2017 05:55, soralx@cydem.org wrote: >=20 > Jung-uk, >=20 >>>>> [0] clang/lib/Basic/Targets/X86.h: >>>>> 860 bool validateGlobalRegisterVariable(StringRef RegName, >>>>> unsigned RegSize, 861 bool >>>>> &HasSizeMismatch) const override { 862 // rsp and rbp are the >>>>> only 64-bit registers the x86 backend can currently 863 // >>>>> handle. 864 if (RegName.equals("rsp") || RegName.equals("rbp"))= >>>>> { 865 // Check that the register size is 64-bit. >>>>> 866 HasSizeMismatch =3D RegSize !=3D 64; >>>>> 867 return true; >>>>> 868 } =20 >>>> >>>> Please try the attached patch. =20 >>> >>> Thanks for the patch! I gave it a quick try (not an extensive test), >>> and VirtualBox, compiled fully with clang, seems to work as usual. =20 >> >> Committed (r450636), thanks! >=20 > Sadly, I forgot to disable VT-x when testing. My bad. >=20 > I tested again, and found that, on unpatched VBox, the virtual > machine boots and works fine with both VT-x on and off, while > patched version fails to start the VM when VT-x is turned off: > VBoxManage: error: No error info > VBoxManage: error: Details: code NS_ERROR_CALL_FAILED (0x800706be), > component ProgressProxy, interface IProgress >=20 > How would one go about debugging this? Hmm... Unfortunately, I don't think we can "fix" it easily. I'll take a look but I just reverted it for now. Jung-uk Kim >> For more detailed information, please read the commit log. >> >> https://svnweb.freebsd.org/changeset/ports/45063 --xAN9aAOwPlXc2xqgf3bV9s5HwerH1lOGP-- --1UBG38NjrWHRvO63BiPof6wcap2wO9Guf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlnNisIACgkQfJ+WJvzb 8UZEKwgAmQX+EYQUzsYcCvH/FWriL+g1xnH4FZfclqDRuIE9Oi2XpmKO2KwXPYhW fTCOiu8oJukZsAs+XhLmtQyxtOYoWEkMChm3dU9HXMCtfZSlPwmHqKd4DcWWhqtP SlRz40iv+7TX9W6max93iRQdx2jLXzgPxoi44E8ptqzvl34kKcu40Q67oCrDep0C uQXzbEqFxyzPoS28deDC5Vcb321fTgMNW1KBlUC+aNgDrAJ9G+dCBoS5IyZmiksz l0q0LeWbikdEDdxUBILSGaOdGlTqDggHQA8k7oO5WpC0zXeYLK1/k5VpHKKbn7KU 3yg0ipXsw5fCrn6hPfm7XFPD07WCpA== =dh0z -----END PGP SIGNATURE----- --1UBG38NjrWHRvO63BiPof6wcap2wO9Guf--