From owner-freebsd-ppc@freebsd.org Fri May 24 07:44:29 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B499B15A1329 for ; Fri, 24 May 2019 07:44:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-15.consmr.mail.bf2.yahoo.com (sonic309-15.consmr.mail.bf2.yahoo.com [74.6.129.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A312681288 for ; Fri, 24 May 2019 07:44:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: FQuF48AVM1mMPnsP4i.4xB.WLt6bCBWpr6LIUoDnoMeFFV8Sb.RcxYv4qr5KJLa hcLIY095MvavstWhEYeiYceR1txwFD7VceSNdDBJmRfBenoeQ0lQ5xDqaAQmH9meI3Eem6zxtBlV Qg4YVthWRkvtOUx7Fk3FUre3aKDJXyDOFtK_zrmE0_5DRV0x8ttJ4dCpmdfE7aBthn0jqCXT2LTd C1ihUDadH8fAfVbza5ciQGYcbTYyUQ3AZ.NHCbzj8ZUZ0c3lLvYapSxGjLHUdq2ZAi._5nqJ1_9t dvnQyE6CGYSgNDVnWW9NRjMbXQ5Hioc_.GTzHj5QcXP7Ax02AiS.C2rT5ytw05Q7qUtTwKhcRikZ 3C7a6Ve1SJCr.7p3s5AOOUkyIdhU1Jy4bt59VMl4MYx.tJQqSdgC7bFyDkzgJzqCOIBy8yPkl_wS TYQavoSF5eExp3DVbj57DzEs.Sp0tmoAzKCRpWn8JoUsXN8wryvdscanbfaTIvytQfoP05mdEsXC qgUVf.blkUipES054_PP4t3tDsMcKoY3Y_Yy83HZyQGXq79UqGhfiBDECz7VUWxXZ16NJtk4_HyA T3I_a0nIybd0RtxGGlbhfyQxbBWa5TUBWYBTWo9s0CKcqyqXSrAeYfJP9gZEeOZyLiGpzjGGS9eL yEPU7gT1QzEIREN5TR5B8o2omnJi0R.WQXGmml9jYhxgE45uPzEa8oqrLzCIY_k2fjFAP4Lx4RUi reV0sXl4ueOlcMfT8GVOukxJ8_FEKUwfzSr1wSb3j_a3ydQtiwgMOiEI5TTLQuPq0SiEiLl21iT3 t48XK6H2eMIChTNef4a1CLlvNAS971E_131b4v8rwACGe4cbhZBr4kuNfwYU635B9yniSG5VHj2X tah2WGyE8n5BY5dG21ZLVC6uUDd5YXGPNcDvhe6ABlFviCEv.Wjsz_PL3bNJ5lQVZ2gyQ_laMeUa ltIhBMxU2oulXFV9oLdSnguFUBKlbFfdYZLh1wxYV8V33FujsfYNji0VnKhf3I6weV5AZZ9OGih5 pydwogNnH3Mdn6VM9N0LAzx2EFjhZVBcrvmh366a_9k3_wUUX0rWIomI9LwtQEHDd_hPQAqxFeM6 6_1dmsvaaMLyFu5ezloPGUqATQmS4lCMlo81SVCXFOeInoHX.gLHKDHrIGAHbcgaYFt87JcT3F8c 0G3O1fmcGskWqIptkCpG76Tqv0KXtfidC0uBvJzawtmLHOwhygUZmqxnRpApGnFLb.7iRyJekFUs - Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Fri, 24 May 2019 07:44:21 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp414.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3442a52ee41fe2ac2bddb9b8d1b04b20; Fri, 24 May 2019 07:44:17 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: powerpc64 graphics/mesa-dri build failure in poudriere, system clang's /usr/bin/cc got assert failure: "Target supports vector op, but scalar requires expansion?" From: Mark Millard In-Reply-To: Date: Fri, 24 May 2019 00:44:14 -0700 Cc: Jan Beich , FreeBSD Toolchain , ports-list freebsd , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <160C4524-F6D0-4F8D-AB9B-334D833E7927@yahoo.com> References: <1C226A5A-147D-4307-89D6-0E88F70ADFD6@yahoo.com> To: Ralf Wenk X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: A312681288 X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.63 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; NEURAL_SPAM_SHORT(0.81)[0.814,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.43)[ip: (4.40), ipnet: 74.6.128.0/21(1.56), asn: 26101(1.25), country: US(-0.06)]; NEURAL_SPAM_MEDIUM(0.11)[0.110,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.79)[0.786,0]; RCVD_IN_DNSWL_NONE(0.00)[125.129.6.74.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[125.129.6.74.rep.mailspike.net : 127.0.0.17] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2019 07:44:30 -0000 On 2019-May-24, at 00:10, Ralf Wenk wrote: > On 2019-05-23, at 12:31 -0700, Mark Millard wrote: >> On 2019-May-23, at 11:47, Jan Beich wrote: >>=20 >>> Mark Millard writes: >>>=20 >>>> Unfortunately poudiere bulk tar archives of failures do not >>>> catch the /tmp/* material from: >>>>=20 >>>> cc: error: unable to execute command: Abort trap (core dumped) >>>> cc: error: clang frontend command failed due to signal (use -v to = see invocation) >>>> FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based = on LLVM 8.0.0) >>>> Target: powerpc64-unknown-freebsd13.0 >>>> Thread model: posix >>>> InstalledDir: /usr/bin >>>=20 >>> Do you have the build log? Maybe it's possible to reproduce simply = by adding >>> -target powerpc64-unknown-freebsd13.0 while cross-building that = particular file >>> using otherwise the same command line options as native build. >>=20 >> I have expanded the poudriere bulk's tar of the failure and rerun the >> command from there. The problem reproduced: >>=20 >> # ls -lTdt /tmp/nir_constant_expressions-9b094e.* >> -rw-r--r-- 1 root wheel 11069 May 23 12:08:35 2019 = /tmp/nir_constant_expressions-9b094e.sh >> -rw-r--r-- 1 root wheel 1951892 May 23 12:08:35 2019 = /tmp/nir_constant_expressions-9b094e.c >>=20 >>=20 >> So I gzip'd the .c and created: >>=20 >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238082 >>=20 >> with the two files as 2 attachments. >=20 > This looks familiar to me. Is the kernel you are using at r348115 or = newer? No, based on head -r347549 : # uname -apKU FreeBSD FBSDG5L 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r347549M: Wed May = 22 15:14:43 PDT 2019 = markmi@FBSDG5L:/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/= usr/src/powerpc.powerpc64/sys/GENERIC64vtsc-NODBG powerpc powerpc64 = 1300025 1300025 > r348115 triggers such kind of "unable to execute" compiler errors on = my > system. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238084 I've had no troubles with buildworld or buildkernel. "Unable to execute" is very generic, meaning little more than did-not-finish for whatever reason. In my case it did not finish because: assert(!TLI.isOperationLegalOrCustom(N->getOpcode(), = WideVecVT) && "Target supports vector op, but scalar requires = expansion?"); failed the test and assert called abort, whihc in turn sent a SIGABRT to the process. Nothing about this suggests a kernel issue. It is more likely a error in handling code generation related to powerpc64 vector operations. I used the core file produced to get the backtrace via gdb: Core was generated by `/usr/bin/cc -cc1 -triple = powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -'. Program terminated with signal SIGABRT, Aborted. #0 .__sys_thr_kill () at thr_kill.S:3 3 RSYSCALL(thr_kill) (gdb) bt #0 .__sys_thr_kill () at thr_kill.S:3 #1 0x00000000133072d0 in __raise (s=3D330578472) at = /usr/src/lib/libc/gen/raise.c:52 #2 0x00000000132c7898 in abort () at = /usr/src/lib/libc/stdlib/abort.c:79 #3 0x00000000132f6c64 in __assert (func=3D, = file=3D, line=3D, failedexpr=3D) at /usr/src/lib/libc/gen/assert.c:51 #4 0x00000000130f7c18 in WidenVectorResult () at = /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:253= 1 #5 0x0000000012ad91f0 in run () at = /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:281 #6 0x0000000012adfa5c in LegalizeTypes () at = /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:1115 #7 0x000000001297ebb4 in CodeGenAndEmitDAG () at = /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:776 #8 0x000000001297e114 in SelectBasicBlock () at = /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:669 #9 0x000000001297cbc4 in SelectAllBasicBlocks () at = /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1784 #10 0x0000000000000000 in ?? () But I build with debug symbols generally, even for optimized builds. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)