Date: Sat, 5 Oct 2019 15:19:31 +0100 From: tech-lists <tech-lists@zyxst.net> To: freebsd-hackers@freebsd.org Subject: Re: CPUTYPE?= in make.conf Message-ID: <20191005141931.GA38969@bastion.zyxst.net> In-Reply-To: <A89A9DFF-CA60-41B7-BD09-B24E40F25E7E@FreeBSD.org> References: <20191004141338.GA72749@bastion.zyxst.net> <A89A9DFF-CA60-41B7-BD09-B24E40F25E7E@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191005141931.GA38969>