From owner-freebsd-toolchain@freebsd.org Sun Feb 10 19:36:50 2019 Return-Path: Delivered-To: freebsd-toolchain@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 AEB5D14D8FD6 for ; Sun, 10 Feb 2019 19:36:50 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) (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 6E2878DB99 for ; Sun, 10 Feb 2019 19:36:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 5z5XLV8VM1ldyYij46f2IjWkOdTS2bmyA8i9m9sijNere4q8a0HgE8mJjHLg7M0 bMbdEMvONikg6TrHZx3HZwhmklUEJglQa8nc4Y.yKfgzdgGrQTpqrnu5uTWv.H2Zgxo_RGyWOUD5 w_kp8ez3svh22O01Xi6AFbqEuJx6rIe44PU56vNaiTHp0VVWERXLmyoLZ3OguQPFfrVkMGfSwQJT x2Rpje55scUSfGMdfD9cA2w7K2bT9KBoEL515ksSJuCehq3S7ETnWLdcgFtTSf3bxkPI_AQOJTa2 _yBAK.b5RQUGDZvI_XRNGFFzWbe02VIb9vcELaOffGdJuLuX7vVjRuWa5rWOUSOcTX2soSRqiGLR zRkPmUY.lHeH95nQSQgDIP9GCXEAS47QUcfbsYrQY3rmrUN3qZj.pZMlJzK6LAv2kngGxQjZhSzT dCGB2d78xlzFFW5lVN86j5xeqqmDZjDzkqj9m9cbXmKLoLVTcXQ4pweGaWZWxhoURpl9M1W3BUFD oYVdMlJFGlGLVa.bMLXb81SgTIZisKO4duCOMgzwChqrDus3XRp_735eZs8T7utku.GXAAoLca2C HqrZkM6qHVAcdRJrXhu4XbfJO7.AIZvWMufqVbRSXEsy6YdkLnzlBr0ZdxNBqDEmf9pK7DcPQ5DC yhP.AXnJoPdBXWeJTDil7F3f2L1oaCfSy.7a9S5esHI1h9Y0IePjHyeV.SLLMpJ.15Jw584HXpep ylNhdjqKlSvQwGcuwmdGehFRKGSn1e_2LWTqYWcL4doHIV9v1FI.d1UbAI41FZ4fy0y.JPnhmIux g3wJEKGZMRVrjsAt2RNavuhKpBwAOxrVPU9fc4y2LR6kyzmQOSiF_MJJgIU8Vp_NtOcF354nlZ8y gSVSh7XpBHG05pzU37kw4q796x913SAK75XLEwx7s1OZHUKST_BtcdCTdjVXXPFVZPeu_EttvZBC gbpl7vWuUeFopTfLD0Ag_eUve0fGhX8f8ILbd3__AYhckst2qP9d_C_255bW7k6l4hgnJ6g7Wfd9 B34xrqSckeEJCNEx1i1FC.ySiIt2e50bEDAiOpMVouUb4YzAspzW2YLhSTduI3LIkEE04 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Sun, 10 Feb 2019 19:36:47 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.113]) ([67.170.167.181]) by smtp428.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID f1ae942db96a70c5c1ee6b4ce9791412; Sun, 10 Feb 2019 19:36:42 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: clang broken on current? From: Mark Millard In-Reply-To: <20190210192432.GA35876@troutmask.apl.washington.edu> Date: Sun, 10 Feb 2019 11:36:42 -0800 Cc: Dimitry Andric , freebsd-toolchain@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <83DCFB59-224E-4D14-8593-44496044B80D@yahoo.com> References: <20190210050003.GA31811@troutmask.apl.washington.edu> <20190210184656.GD35569@troutmask.apl.washington.edu> <59881520-AB59-49C3-810F-C0676C3B037C@yahoo.com> <20190210192432.GA35876@troutmask.apl.washington.edu> To: Steve Kargl X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 6E2878DB99 X-Spamd-Bar: / X-Spamd-Result: default: False [0.81 / 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]; 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)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.58)[-0.578,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.91)[0.908,0]; NEURAL_HAM_LONG(-0.78)[-0.784,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.77)[ip: (2.66), ipnet: 98.137.64.0/21(0.71), asn: 36647(0.57), country: US(-0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[83.68.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2019 19:36:50 -0000 On 2019-Feb-10, at 11:24, Steve Kargl wrote: > On Sun, Feb 10, 2019 at 11:13:09AM -0800, Mark Millard wrote: >>=20 >> On 2019-Feb-10, at 10:46, Steve Kargl wrote: >>>=20 >>> On Sun, Feb 10, 2019 at 12:03:55PM +0100, Dimitry Andric wrote: >>>> On 10 Feb 2019, at 06:00, Steve Kargl wrote: >>>>=20 >>>> How did you arrive at the conclusion that this has anything to do = with >>>> the specific compiler? =46rom these errors, I think it is more = likely >>>> something in Qt5 that is erroneously convinced that those = qt_memfillXY >>>> functions exist. Or they get referenced, but not compiled at all, = for >>>> some reason. >>>>=20 >>>=20 >>> If I have "CFLAGS+=3D -march=3Di686 -mmmx -msse" in /etc/make.conf >>> qt5-gui builds without issue. If I add -msse2 to CFLAGS, then >>> the build dies. >>>=20 >>> So, either clang is miscompiling qt5-gui with -mmse2 or the >>> qt5-gui port is being too smart for its own good. >>=20 >> That lead to an old memory of getting results like ((armv6 >> time frame I think, before the armv7 addition to FreeBSD): >>=20 >> image/qimage.cpp:(.text+0x1e14): undefined reference to = `qt_memfill32(unsigned int*, unsigned int, int)' >> image/qimage.cpp:(.text+0x1f34): undefined reference to = `qt_memfill32(unsigned int*, unsigned int, int)' >>=20 >> where it turned out that arm NEON was not supported by various >> parts of qt5. >>=20 >=20 > It is definitely some problem between clang and the qt5-gui > port. It seems qt5-gui tries to auto-detect sse2. Don't > know if qt5-gui has a bogus auto-detect code, clang miscompiles > the auto-detect code, or FreeBSD is lying about the features > of my cpu (although x86info says it found sse2). In poking > around the qt5-gui sources, I found that configure can be=20 > given a -sse2 argument. I tried to force sse2, but I'm seeing > qt5-gui is doing >=20 > % find qtbase-everywhere-src-5.12.0 -name config.\* | xargs grep -i = sse2 > qtbase-everywhere-src-5.12.0/config.log:Command line: -no-eglfs -sse2 = -no-evdev -no-libudev -system-harfbuzz -c++std c++14 -opensource = -confirm-license -no-pch -prefix /usr/local -bindir = /usr/local/lib/qt5/bin -headerdir /usr/local/include/qt5 -libdir = /usr/local/lib/qt5 -plugindir /usr/local/lib/qt5/plugins -importdir = /usr/local/lib/qt5/imports -datadir /usr/local/share/qt5 -docdir = /usr/local/share/doc/qt5 -translationdir = /usr/local/share/qt5/translations -sysconfdir /usr/local/etc/xdg -nomake = examples -nomake tests -platform freebsd-clang -archdatadir = /usr/local/lib/qt5 -libexecdir /usr/local/libexec/qt5 -qmldir = /usr/local/lib/qt5/qml -examplesdir /usr/local/share/examples/qt5 = -testsdir /usr/local/share/qt5/tests -no-sse2 -no-use-gold-linker = -recheck-all -release -no-separate-debug-info > qtbase-everywhere-src-5.12.0/config.opt:-sse2 > qtbase-everywhere-src-5.12.0/config.opt:-no-sse2 >=20 > Note my -sse2 is followed by a -no-sse2! FYI: from the "24 May 2015 16:41:17" check in description: Qt 5.3 removed runtime detection of SSE2 so it needs to be configured with -no-sse2 at buildtime on i386. PR: 198738, 200258 Reported by: sasamotikomi@gmail.com Approved by: maintainer timeout (2 weeks) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)