make.conf for a poudriere jail and CPUTYPE

Jan Beich jbeich at FreeBSD.org
Sat Sep 28 16:33:03 UTC 2019


tech-lists <tech-lists at zyxst.net> writes:

> On Sat, Sep 28, 2019 at 04:17:43PM +0200, Jan Beich wrote:
>
>>tech-lists <tech-lists at zyxst.net> writes:
>>
>>> On Fri, Sep 27, 2019 at 12:33:36PM +0100, tech-lists wrote:
>>>
>>>> Hi,
>>>>
>>>> If I'm building ports on a poudriere and the jail I'm building for has say
>>>> Host CPU: btver1 and the host running poudriere is Host CPU: sandybridge, is
>>>> there any benefit or advantage in defining CPUTYPE?= in the jail's make.conf?
>>>>
>>>> If yes, which programs does it benefit? I guess maybe openssl
>>>
>>> thought I'd experiment. Seems setting CPUTYPE?=btver1 causes some ports to
>>> fail at the configure or build stage. python36 and lzo2 for example. Unsure
>>> why that should be (or where to ask???)
>>
>>I can't reproduce. Provide poudriere log which documents FreeBSD
>>version, compiler type/version/flags, port options, make.conf, etc.
>
> Ok, for archivers/lzo2:
> https://cloud.zyxst.net/~john/FreeBSD/ports/buildfailures/lzo2-2.10_1.log

Compare with http://beefy6.nyi.freebsd.org/data/latest-per-pkg/lzo2/2.10_1/120amd64-default.log
or mine with CPUTYPE https://reviews.freebsd.org/P325

> for python36:
> https://cloud.zyxst.net/~john/FreeBSD/ports/buildfailures/python36-3.6.9.log

Compare with http://beefy6.nyi.freebsd.org/data/latest-per-pkg/python36/3.6.9/120amd64-default.log
or mine with CPUTYPE https://reviews.freebsd.org/P324

> both of these will build if CPUTYPE?= is commented out
[...]
> #### /usr/local/etc/poudriere.d/12R-bastion-make.conf ####
> OPTIONS_UNSET+=DEBUG 
> OPTIONS_SET+=OPTIMIZED_CFLAGS
> OPTIONS_SET+=ICONV
> CPUTYPE?=btver1
> USE_LOCALE=en_GB.UTF-8
> LICENSES_ACCEPTED+=GPLv2+ MSPAT
> WITH_CCACHE_BUILD=yes
> CCACHE_DIR=/root/.ccache
> NO_CCACHE_DEPEND=1
> CCACHE_WRAPPER_PATH=	/ccache/libexec/ccache

Can you try with *CCACHE* stuff commented out?


More information about the freebsd-ports mailing list