Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Feb 2023 14:22:01 +0000
From:      Jamie Landeg-Jones <jamie@catflap.org>
To:        pmc@citylink.dinoex.sub.org, freebsd-stable@FreeBSD.org
Subject:   Re: 13.2-BETA2: xz: illegal instruction
Message-ID:  <202302231422.31NEM1dn001786@donotpassgo.dyslexicfish.net>
In-Reply-To: <Y/VaKbBm4ekNobDO@disp.intra.daemon.contact>
References:  <Y/VaKbBm4ekNobDO@disp.intra.daemon.contact>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter <pmc@citylink.dinoex.sub.org> wrote:

> > # ./xz < /dev/zero > /dev/null
> > Illegal instruction (core dumped)
>                                                                                 
> > CPU: Intel(R) Core(TM) i3 CPU         540  @ 3.07GHz (3059.08-MHz K8-class CPU)
> > Origin="GenuineIntel"  Id=0x20655  Family=0x6  Model=0x25  Stepping=5         
>                                                                                 
> > CPUTYPE?=westmere
>
> It's liblzma, and it doesn't want westmere, it apparently wants
> penryn.

Doesn't "CPUTYPE?=native" do the right thing?

You can see what features this enables/disables on your machine
and also the determined "-target-cpu" in the following output:

/usr/bin/env -i /usr/bin/clang -v -x c -march=native -fsyntax-only -o /dev/null /dev/null 2>&1

Cheers, Jamie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302231422.31NEM1dn001786>