From owner-freebsd-hackers@freebsd.org Sat Oct 5 14:20:03 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5FDA8134413 for ; Sat, 5 Oct 2019 14:20:03 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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 46lpmL2fKZz3HQp for ; Sat, 5 Oct 2019 14:20:01 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5DF1221EAD for ; Sat, 5 Oct 2019 10:20:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 05 Oct 2019 10:20:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=k/6HCuXW9f08XcczkNf0KQej+Ax kA6VUChw6PGVQzgQ=; b=aIcJ2ReKqEA+MO9byUFuZL6/gAVM1LKTbykPTNcnWnU lza6bbd9Q6KKfQ1z9aCAVwjcc8+AY15Wsh+Zrs0f5NFSyMkeotKe80VLnLdVgP+s hixBHr6Y5MkKsaD9/qMS3dKc/r3uQ2Dk103hbFKMNwN+mGe3atzDKzkJyRv4zjVf 6iPWFjnrCkHzqOmAeK4oKljLFJr18wwuifT8QSN/wD8bJEZiIAjWuopMsZPXZxcP pVX5uHgjD3VZQ8G2D8EUUkCO944XmJyJlWSyqUhUEnDLDTmh2VK8xhG7YvgPyMO4 MCJu31lvrvSY1EjiRUwq6jY7ZBkmoNfQLdr4hO9tdCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=k/6HCu XW9f08XcczkNf0KQej+AxkA6VUChw6PGVQzgQ=; b=h74LXIwGGyxepRlk3na7/2 bm+U/YwcGBoBtUll2dYTeWUIhWPPHHZMDEBOXOAIS3wBLY4YQC+UZcpZ1fm3mBt8 VhEVkKy7Nc236ohTKwq7b7xhL6o7K0UrNyiw/LK1dTfm6kbxd2glJJ5sj1f6cNXW BMKtxsRSRNkI89AISNSgvXVUQBAz/xDVvzLn/q92jSVWz+je6WSwGwgkUlfiE8U0 8ptxOrwWQTifu22CYSj7nG1yQqgGggf78bI3hk9N07jPL5pnVUPDemtI1Zr4dnkC up0blLV0qY5EaNQBhrlipfLTzCQKpzEAitay92PHAxiEpYdIqj2BuJ6EfuD5tCqw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrheefgdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjfgesghdtre ertdervdenucfhrhhomhepthgvtghhqdhlihhsthhsuceothgvtghhqdhlihhsthhsseii hiigshhtrdhnvghtqeenucfkphepkedvrdejtddrledurdelleenucfrrghrrghmpehmrg hilhhfrhhomhepthgvtghhqdhlihhsthhsseiihiigshhtrdhnvghtnecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: from bastion.zyxst.net (bastion.zyxst.net [82.70.91.99]) by mail.messagingengine.com (Postfix) with ESMTPA id 94CDE8005C for ; Sat, 5 Oct 2019 10:20:00 -0400 (EDT) Date: Sat, 5 Oct 2019 15:19:31 +0100 From: tech-lists To: freebsd-hackers@freebsd.org Subject: Re: CPUTYPE?= in make.conf Message-ID: <20191005141931.GA38969@bastion.zyxst.net> References: <20191004141338.GA72749@bastion.zyxst.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 46lpmL2fKZz3HQp X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm3 header.b=aIcJ2ReK; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=h74LXIwG; dmarc=none; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 66.111.4.27 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-8.18 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm3,messagingengine.com:s=fm3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zyxst.net]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; IP_SCORE(-3.48)[ip: (-9.82), ipnet: 66.111.4.0/24(-4.86), asn: 11403(-2.68), country: US(-0.05)]; SIGNED_PGP(-2.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[27.4.111.66.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Oct 2019 14:20:03 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Dimitry, On Fri, Oct 04, 2019 at 07:16:26PM +0200, Dimitry Andric wrote: >This will never work. Your host Sandybridge CPU is of an earlier >generation (2nd) than the target, which is Haswell. > >Targeting Haswell, the compiler will generate instructions that the host >CPU does not support, which in turn will lead to SIGILL signals as soon >as such instructions are encountered. > >Similarly, btver1 is an AMD CPU (family 14h), which is likely to differ >from your host CPU in which instructions it supports. I guess you were >just lucky that any programs ran at all... :) ok, I can understand that, but >This is not a hardware failure, but totally expected behavior. You can >only run poudriere builds for CPUs of an equal, or earlier generation, >and even then you will have to ensure that the target CPU does not >accidentally support instructions from your host CPU. If I make a poudriere jail on the sandybridge host cpu (bought in 2013) wit= h atom n450 cpu (CPUTYPE?=3Dbonnell specified in the jail's make.conf,=20 target machine bought in 2010), nothing will build - when pkg tries to buil= d, get "illegal instruction" at the pkg phase. I am going to try the same thing with the haswell host.=20 thanks, --=20 J. --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl2YpoYACgkQs8o7QhFz NAVTmA//QxMudz83rm0RGjp1h4zSPW5TF/IqiIm2o4x+LN2Eza+F+rk0qXynlxYC FOXx+JYNSZGn66Spkj9APNiWf/e47m/+a/1lJLVU8nPLeVZucNEPSQaGCOXaexje zYh9Pwy1fFnM8cZe7UxaMbpke8+KIlEgyiObb4yerNwHroe3umKIkw9AWDNXrcdt 0r0lT6rPegzOzLZheOxIV+ZaeAHSrz05XO1TQT2Vjpeca/5ufG/SRSG9CvWCgOAU H4ZKWmv/yYDnrg8gB3m25f871EfXBkwr/df6f9xyvynsRWoEzDbkE1DvTdX6z+i2 8b1xD9uX9kCAPHjoW9sQ9Rt2ZRVe2VWKrYY2ae7RwllfWcdN0QeEJ8c4D4q4ZcUj tovQQEYj8q4yC4JT0y5Hw4ip9vmWgGLc66TH7umvdYzJKjDMkBtTZLgGHj2HoZPI 4o2JgaH7KohK48MU/S60j1igVf5sofhJEH9ZRAOQ3d4H2qfzglx3qt03bcNtZnYp wJy2o5JQIpRtDir9JgpAb25I/wPaLumKk4g0yRTKheWUcEI88L8igw39VshvZ1GT iN4QVuGPh6WsXArqo7m/411ljYy5u41KI1cOgQUCdQO4ZJLUmf2NcKkGv93AWiFd l9N2KmnJ6ztaGXtn59fFBlJa9EmSlwinHOIav0WDxBd1BK2tpbg= =eDx2 -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--