[Bug 269792] 13.2-BETA2: sigILL: lzma does not compile to westmere

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 24 Feb 2023 00:23:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269792

            Bug ID: 269792
           Summary: 13.2-BETA2: sigILL: lzma does not compile to westmere
           Product: Base System
           Version: 13.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: pmc@citylink.dinoex.sub.org

Target is i3-540 (westmere)
Build machine is E5-2660v3 (haswell) - but that's not relevant.

Result is this:

# ./xz < /dev/zero > /dev/null                                            
Illegal instruction (core dumped)                                         

Wikipedia says that the i3-540 is westmere.
The compiler itself, when configured CPUTYPE?=native, says that
the chip is westmere (but it shows a lot of more detailed flags
in addition).
But when then compiling for cpu westmere, the code is defect.
(Compiling on-site with cpu "native", gives working code.)

Bottomline: one cannot currently compile for target westmere on a build
machine.

$  /usr/bin/env -i /usr/bin/clang -v -x c -march=3Dnative -fsyntax-only -o =
/dev/null /dev/null 2>&1
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvm=
org-14.0.5-0-gc12386ae247c)
Target: x86_64-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin
 (in-process)
 "/usr/bin/clang" -cc1 -triple x86_64-unknown-freebsd13.2 -fsyntax-only -di=
sable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-=
names -main-file-name null -mrelocation-model static -mframe-pointer=3Dall =
-ffp-contract=3Don -fno-rounding-math -mconstructor-aliases -funwind-tables=
=3D2 -target-cpu westmere -target-feature -avx512pf -target-feature -tsxldt=
rk -target-feature +cx16 -target-feature +sahf -target-feature -tbm -target=
-feature -avx512ifma -target-feature -sha -target-feature +crc32 -target-fe=
ature -fma4 -target-feature -vpclmulqdq -target-feature -prfchw -target-fea=
ture -bmi2 -target-feature -cldemote -target-feature -fsgsbase -target-feat=
ure -ptwrite -target-feature -amx-tile -target-feature -uintr -target-featu=
re -gfni -target-feature +popcnt -target-feature -widekl -target-feature -a=
es -target-feature -avx512bitalg -target-feature -movdiri -target-feature -=
xsaves -target-feature -avx512er -target-feature -avxvnni -target-feature -=
avx512fp16 -target-feature -avx512vnni -target-feature -amx-bf16 -target-fe=
ature -avx512vpopcntdq -target-feature -pconfig -target-feature -clwb -targ=
et-feature -avx512f -target-feature -xsavec -target-feature -clzero -target=
-feature -pku -target-feature +mmx -target-feature -lwp -target-feature -rd=
pid -target-feature -xop -target-feature -rdseed -target-feature -waitpkg -=
target-feature -kl -target-feature -movdir64b -target-feature -sse4a -targe=
t-feature -avx512bw -target-feature -clflushopt -target-feature -xsave -tar=
get-feature -avx512vbmi2 -target-feature +64bit -target-feature -avx512vl -=
target-feature -serialize -target-feature -hreset -target-feature -invpcid =
-target-feature -avx512cd -target-feature -avx -target-feature -vaes -targe=
t-feature -avx512bf16 -target-feature +cx8 -target-feature -fma -target-fea=
ture -rtm -target-feature -bmi -target-feature -enqcmd -target-feature -rdr=
nd -target-feature -mwaitx -target-feature +sse4.1 -target-feature +sse4.2 =
-target-feature -avx2 -target-feature +fxsr -target-feature -wbnoinvd -targ=
et-feature +sse -target-feature -lzcnt -target-feature -pclmul -target-feat=
ure -prefetchwt1 -target-feature -f16c -target-feature +ssse3 -target-featu=
re -sgx -target-feature -shstk -target-feature +cmov -target-feature -avx51=
2vbmi -target-feature -amx-int8 -target-feature -movbe -target-feature -avx=
512vp2intersect -target-feature -xsaveopt -target-feature -avx512dq -target=
-feature +sse2 -target-feature -adx -target-feature +sse3 -mllvm -treat-sca=
lable-fixed-error-as-warning -debugger-tuning=3Dgdb -v -fcoverage-compilati=
on-dir=3D/home/operator -resource-dir /usr/lib/clang/14.0.5 -fdebug-compila=
tion-dir=3D/home/operator -ferror-limit 19 -fgnuc-version=3D4.2.1 -faddrsig=
 -D__GCC_HAVE_DWARF2_CFI_ASM=3D1 -x c /dev/null
clang -cc1 version 14.0.5 based upon LLVM 14.0.5 default target x86_64-unkn=
own-freebsd13.2
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/clang/14.0.5/include
 /usr/include
End of search list.

$  /usr/bin/env -i /usr/bin/clang -v -x c -march=3Dwestmere -fsyntax-only -=
o /dev/null /dev/null 2>&1
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvm=
org-14.0.5-0-gc12386ae247c)
Target: x86_64-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin
 (in-process)
 "/usr/bin/clang" -cc1 -triple x86_64-unknown-freebsd13.2 -fsyntax-only -di=

-- 
You are receiving this mail because:
You are the assignee for the bug.