From nobody Thu Feb 23 16:05:42 2023 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PMydx5WW0z3s9ph for ; Thu, 23 Feb 2023 16:09:41 +0000 (UTC) (envelope-from pmc@citylink.dinoex.sub.org) Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840::12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "uucp.dinoex.sub.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PMydx22Qqz3L24 for ; Thu, 23 Feb 2023 16:09:41 +0000 (UTC) (envelope-from pmc@citylink.dinoex.sub.org) Authentication-Results: mx1.freebsd.org; none Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]) by uucp.dinoex.org (8.17.1/8.17.1) with ESMTPS id 31NG96U2052761 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 23 Feb 2023 17:09:07 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: (from uucp@localhost) by uucp.dinoex.org (8.17.1/8.17.1/Submit) with UUCP id 31NG96qS052760; Thu, 23 Feb 2023 17:09:06 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from disp.intra.daemon.contact (disp-e.intra.daemon.contact [IPv6:fd00:0:0:0:0:0:0:112]) by admn.intra.daemon.contact (8.17.1/8.17.1) with ESMTPS id 31NG6lWQ098670 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Thu, 23 Feb 2023 17:06:48 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from disp.intra.daemon.contact (localhost [127.0.0.1]) by disp.intra.daemon.contact (8.17.1/8.17.1) with ESMTPS id 31NG5gbF036465 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 23 Feb 2023 17:05:42 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: (from pmc@localhost) by disp.intra.daemon.contact (8.17.1/8.17.1/Submit) id 31NG5gmG036464; Thu, 23 Feb 2023 17:05:42 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) X-Authentication-Warning: disp.intra.daemon.contact: pmc set sender to pmc@citylink.dinoex.sub.org using -f Date: Thu, 23 Feb 2023 17:05:42 +0100 From: Peter To: Jamie Landeg-Jones Cc: freebsd-stable@freebsd.org Subject: Re: 13.2-BETA2: xz: illegal instruction Message-ID: References: <202302231422.31NEM1dn001786@donotpassgo.dyslexicfish.net> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <202302231422.31NEM1dn001786@donotpassgo.dyslexicfish.net> X-Milter: Spamilter (Reciever: uucp.dinoex.org; Sender-ip: 0:0:2a0b:f840::; Sender-helo: uucp.dinoex.org;) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]); Thu, 23 Feb 2023 17:09:09 +0100 (CET) X-Rspamd-Queue-Id: 4PMydx22Qqz3L24 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:205376, ipnet:2a0b:f840::/32, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Feb 23, 2023 at 02:22:01PM +0000, Jamie Landeg-Jones wrote: ! Peter wrote: !=20 ! > > # ./xz < /dev/zero > /dev/null ! > > Illegal instruction (core dumped) ! > = =20 ! > > CPU: Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz (3059.08-MHz K8-= class CPU) ! > > Origin=3D"GenuineIntel" Id=3D0x20655 Family=3D0x6 Model=3D0x25 St= epping=3D5 =20 ! > = =20 ! > > CPUTYPE?=3Dwestmere ! > ! > It's liblzma, and it doesn't want westmere, it apparently wants ! > penryn. !=20 ! Doesn't "CPUTYPE?=3Dnative" do the right thing? Good point, I should test that. (It doesn't concern me, because that would likely get me code for the machine that is actually doing the build, and that is not the old i3) ! You can see what features this enables/disables on your machine ! and also the determined "-target-cpu" in the following output: !=20 ! /usr/bin/env -i /usr/bin/clang -v -x c -march=3Dnative -fsyntax-only -o /= dev/null /dev/null 2>&1 Thanks, You're helpful! :) -target-cpu westmere But when building with CPTYPE?=3Dnative, the code works! $ /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= 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 -mllvm -treat-scalable-fixed-error-as-warning -de= bugger-tuning=3Dgdb -v -fcoverage-compilation-dir=3D/home/operator -resourc= e-dir /usr/lib/clang/14.0.5 -fdebug-compilation-dir=3D/home/operator -ferro= r-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.