Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2017 10:20:13 +0000
From:      Grzegorz Junka <list1@gjunka.com>
To:        Mathieu Arnold <mat@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   Re: poudriere and CPUTYPE
Message-ID:  <be5d6b7c-8f68-4ebf-8507-c5fe4b8eb73f@gjunka.com>
In-Reply-To: <07e5ed6f-97be-5977-017e-18ee1de3ff36@FreeBSD.org>
References:  <9df9eff0-aae9-18b8-641f-2f5209faad79@gjunka.com> <07e5ed6f-97be-5977-017e-18ee1de3ff36@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 30/01/2017 09:14, Mathieu Arnold wrote:
> Le 29/01/2017 à 18:17, Grzegorz Junka a écrit :
>> When building packages for a different machine it's possible to
>> specify CPU target, e.g.:
>>
>> CPUTYPE?=core2
>>
>> However, when building packages that depend on other packages
>> poudriere will install the already build dependencies in order to
>> build the new packages. That will fail if the CPU on the build machine
>> doesn't execute instructions specified in the CPUTYPE for the target
>> machine. For example, on amdfam10 build machine pkg build for core2
>> fails to install and as a result none of the packages can be build
>> since pkg is required to install any dependency.
>>
>> How this CPUTYPE should be used then when building for different
>> machines? Bhyve?
> You should use the oldest CPUTYPE that any machine that will use those
> packages has. If the host does not support core2, don't use it, use some
> older one. Also, if it does not support it, bhyve won't work there as it
> is too old.
>
> (As a rule of the thumb, don't use CPUTYPE, at best you will win a few
> cycles here and there, but it will more generally be more painful when
> you discover you need to use the packages some place where that CPUTYPE
> is to recent.)
>

OK, so in that case should I ever enable any of the CPU_OPTS or SIMD 
options when configuring ports? What will they do when CPUTYPE isn't 
specified? Will they try to detect my CPU? Will it break ports built on 
amdfam10 when I try to install them on core2?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?be5d6b7c-8f68-4ebf-8507-c5fe4b8eb73f>