From owner-freebsd-ppc@freebsd.org Fri Nov 23 09:13:46 2018 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 5C3ED1140034 for ; Fri, 23 Nov 2018 09:13:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-31.consmr.mail.ne1.yahoo.com (sonic301-31.consmr.mail.ne1.yahoo.com [66.163.184.200]) (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 3CCDD7DA17 for ; Fri, 23 Nov 2018 09:13:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: Wrt7PpwVM1kK24QK0bDFK2.UdON8qvIWAsZJ3YEoAoNWOfj.ExPU5aF0Vjof.R9 Y4RF6kseYiG4L6jTrca8zoIiaVFm2wcroJU0SBCM7q989vZzJSj16Gm10vJhS9Izz9U0HaRjFWeG 6GBj.F4RuZYXu1qk1fxApaBQ.1IR1C_83QLj4.dKOJhTsVDrk0W2ssU4Lp5KwsqrRD4J3yQjnlQB y0Ci4GDg6FHn2H.9i082m7S0wNZmdeBLxAecj3HMgdCbSrUv.ckXgnzWxqOyrqxq3QVdcvuvVuSo cezUFh3iQePzYV8baNgQH1wRP_iTjEmFIJK5t53uIbDP9XoCNRDKCD7BfzjjRS_R.31fSaaV7n8P 3NLfogHDdMV_eh167ct357YK4wlh3G_DhtpXrYWgRbhEgi9k.qZMRHFPiIkxnJMP9C3XgdM69bXU wgD0QVObkH.jSDtv3UjpIiiJSX4QvvCa0aGm1OFSxqxV2Xx7Ab.kY.sxgKkF2oCdDyX3b7UFlwT8 oUl7W3pDEaB1RJwCISKBovSyycWqH2aBxA6t.aZ0xFTUXFeS.pKyrGRPbqq1inUXeiQ5n7EbUCM8 GvxOG8QE5OeLHk6AkOBOD6rnZ.80b7T79bROcp3rTmi47w0MEwAL2mXEB50om1rLNl42QXn1sGOg ipdXW0YnUBatjsELPEpDd3POwBkDHuXIdkiFebZr8ZZOkCf3nG4e6MtkD.etdzvPZfhrE.4.Pmyj 2aVLUtJS_0y1JdlfIc1eYAOcgC0gA8CQz21Huyzb1qNwachH.KmWfI5jxP_sVYirGBUYl1_yUTVb 0vhaNLaU9agx5KPLvZUZrtImbKJkEkwNEo5eLPxiD1fHLvhvMsId2diFpFowELTHp0LHC2JsUXDG zypIPGsElcLm1TjZXMsfjwzzGPKRaDacjzHlGw25cLoEo5vgHk4wKrmk5DX22SlYfDg_nuUKBZl9 WLeHIPDGY8IUuHwq0lw_od_wNMCcQA1qs8XPd3DwO5qbXjv1zLvuuK9W7HPfh1P87lShHDhYBuGU 9aFz.0CUxAz6qc.zMCGLtkv7J8t8dxlEQwpOWB3OU_fZKNeQWrouo0rcF_yEJnguLA_ZPUDc- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Fri, 23 Nov 2018 09:13:44 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp404.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID b6010412285e6aab5c8c1878e33b2248; Fri, 23 Nov 2018 09:13:41 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: head -r340287 based powerpc64: multimedia/ffmpeg -r484273 gets a system-clang assert failure [reduced to 15 program] From: Mark Millard In-Reply-To: Date: Fri, 23 Nov 2018 01:13:39 -0800 Cc: FreeBSD PowerPC ML , multimedia@FreeBSD.org, ports-list freebsd Content-Transfer-Encoding: quoted-printable Message-Id: <420A14D5-270D-4360-963C-673A59A2F7D8@yahoo.com> References: To: FreeBSD Toolchain , Dimitry Andric X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: 3CCDD7DA17 X-Spamd-Result: default: False [3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(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]; 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)[]; IP_SCORE(1.61)[ip: (5.10), ipnet: 66.163.184.0/21(1.69), asn: 36646(1.35), country: US(-0.09)]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_NEUTRAL(0.00)[200.184.163.66.rep.mailspike.net : 127.0.0.13]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.94)[0.938,0]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.84)[0.840,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.62)[0.618,0]; RCVD_IN_DNSWL_NONE(0.00)[200.184.163.66.list.dnswl.org : 127.0.5.0] X-Rspamd-Server: mx1.freebsd.org 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, 23 Nov 2018 09:13:46 -0000 [I isolated the compiler crash down to a 20 line program that makes the assert fail.] On 2018-Nov-22, at 13:03, Mark Millard wrote: > During a (native) poudriere-devel run I got the following failure. > [Unfortunately clang and poudriere are mismatched for where the > preprocessed source(s) and run script(s) are placed as far as > what is in the poudriere tar archive produced. But I did have > kern.corefile set so that the core file was captured.] >=20 > This happens to be on powerpc64 where I experiment with using > fairly modern cc/c++ and the like. devel/powerpc64-xtoolchain-gcc > was used for buildworld buildkernel and clang was built as cc. > But the system binutils is from base/binutils . So not an official > gcc 4.2.1 toolchain context, more of a futures-testing context. >=20 > The error report from clang (after 332 other ports had built): >=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 6.0.1 (tags/RELEASE_601/final 335540) (based on = LLVM 6.0.1) > Target: powerpc64-unknown-freebsd13.0 > Thread model: posix > InstalledDir: /usr/bin > cc: note: diagnostic msg: PLEASE submit a bug report to = https://bugs.freebsd.org/submit/ and include the crash backtrace, = preprocessed source, and associated run script. > cc: note: diagnostic msg:=20 > ******************** >=20 > PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: > Preprocessed source(s) and associated run script(s) are located at: > cc: note: diagnostic msg: /tmp/vf_convolution-9639c0.c > cc: note: diagnostic msg: /tmp/vf_convolution-9639c0.sh > cc: note: diagnostic msg:=20 >=20 > ******************** > gmake[1]: *** [ffbuild/common.mak:60: libavfilter/vf_convolution.o] = Error 254 > gmake[1]: *** Waiting for unfinished jobs.... > gmake[1]: Leaving directory = '/wrkdirs/usr/ports/multimedia/ffmpeg/work/ffmpeg-4.1' > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to > the maintainer. > *** Error code 1 >=20 > . . . >=20 I isolated the system-clang crash down to a 15 line program that makes the assert fail for the reduced command: "/usr/bin/cc" "-cc1" "-emit-obj" "-target-cpu" "ppc64" "-O1" = "-vectorize-loops" "vf_convolution-mmjnk.c" ( -O2 and -O3 also cause the failure. ) # more vf_convolution-mmjnk.c=20 double sqrt(double); static void filter_sobel(unsigned char *dst, int width, const unsigned char *c[]) { const unsigned char *c0 =3D c[0], *c1 =3D c[1]; int x; for (x =3D 0; x < width; x++) { dst[x] =3D sqrt(c0[x] * -1 + c1[x] * -2); } } void (*mmjnk)(unsigned char *dst, int width, const unsigned char *c[]) =3D filter_sobel; The error reported is: Assertion failed: (isSimple() && "Expected a SimpleValueType!"), = function getSimpleVT, file = /usr/src/contrib/llvm/include/llvm/CodeGen/ValueTypes.h, line 254. Abort trap (core dumped) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)