Date: Tue, 4 Apr 2017 20:31:50 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Eric McCorkle <eric@metricspace.net> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@FreeBSD.org> Subject: Re: Source of QEMU woes: CPUTYPE Message-ID: <A5077163-17D6-4416-B52C-325027E5BBEB@FreeBSD.org> In-Reply-To: <ee20545b-9937-bbfd-ea33-ca7d4d3deb46@metricspace.net> References: <ee20545b-9937-bbfd-ea33-ca7d4d3deb46@metricspace.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_C01E471F-D4CA-4FDB-B623-75CED0A40087 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 4 Apr 2017, at 14:34, Eric McCorkle <eric@metricspace.net> wrote: > > A while ago I posted on here about some problems I'd had with testing > boot loader modifications on QEMU, and which also showed up on an > unmodified HEAD. > > I ultimately tracked down the source of the problem: I had > CPUTYPE?=native set in my /etc/make.conf. As my CPU is relatively > recent, this caused some instructions that QEMU doesn't support to be > generated in various places (most notoriously, in strlen), which would > trigger illegal instruction exceptions. Out of interest, what does "llvm-tblgen -version | grep 'Host CPU'" show? (This is a simple way to see what LLVM auto-detects.) > I'm posting this here, as it's somewhat non-obvious, and probably ought > to be documented somewhere. I usually find it clearer to specify the exact CPU type myself, for example CPUTYPE?=core-avx2 (which is an alias for "haswell"). You can also specify a lower CPUTYPE to build the world that you are going to run inside QEMU. -Dimitry --Apple-Mail=_C01E471F-D4CA-4FDB-B623-75CED0A40087 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAljj5qEACgkQsF6jCi4glqN04QCbBmPw//EYF5txrecmdiRq060M SFcAn226Jwp6HtgLpANSBPqf0pgijGUM =KP2T -----END PGP SIGNATURE----- --Apple-Mail=_C01E471F-D4CA-4FDB-B623-75CED0A40087--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A5077163-17D6-4416-B52C-325027E5BBEB>