From owner-freebsd-toolchain@freebsd.org Sun Feb 10 11:04:06 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 268C514EA31B for ; Sun, 10 Feb 2019 11:04:06 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99F047226F for ; Sun, 10 Feb 2019 11:04:05 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::a496:d164:3f2d:b39f] (unknown [IPv6:2001:470:7a58:0:a496:d164:3f2d:b39f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C12EF386AB; Sun, 10 Feb 2019 12:03:55 +0100 (CET) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_2A6F39A8-7EC7-498E-967A-BD1D4B3D8CEC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: clang broken on current? Date: Sun, 10 Feb 2019 12:03:55 +0100 In-Reply-To: <20190210050003.GA31811@troutmask.apl.washington.edu> Cc: freebsd-toolchain@freebsd.org To: Steve Kargl References: <20190210050003.GA31811@troutmask.apl.washington.edu> X-Mailer: Apple Mail (2.3445.102.3) 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 11:04:06 -0000 --Apple-Mail=_2A6F39A8-7EC7-498E-967A-BD1D4B3D8CEC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 10 Feb 2019, at 06:00, Steve Kargl = wrote: >=20 > I have >=20 > % uname -a > FreeBSD mobile 13.0-CURRENT FreeBSD 13.0-CURRENT r343477 MOBILE i386 >=20 > % dmesg | more > ... > FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on = LLVM 7.0.1) > VT(vga): resolution 640x480 > CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (1995.05-MHz = 686-class CPU) > Origin=3D"GenuineIntel" Id=3D0x6fd Family=3D0x6 Model=3D0xf = Stepping=3D13 > = Features=3D0xbfebfbff > = Features2=3D0xe3bd > AMD Features=3D0x20000000 > AMD Features2=3D0x1 > VT-x: (disabled in BIOS) HLT,PAUSE > TSC: P-state invariant, performance statistics > ... >=20 > If I add 'CFLAGS+=3D-march=3Dnative -mtune=3Dnative', I can build > world and kernel without a problem. If I try to build > x11-toolkits/qt5-gui the build dies with >=20 > c++ -Wl,--as-needed -fstack-protector -Wl,--no-undefined > -Wl,--version-script,QtGui.version -pthread = -Wl,-rpath,/usr/local/lib/qt5 > -shared -Wl,-Bsymbolic-functions > = -Wl,--dynamic-list,/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-= src- > 5.12.0/src/gui/QtGui.dynlist -Wl,-soname,libQt5Gui.so.5 -o = libQt5Gui.so.5.12.0 >=20 > (long list of *.o files) >=20 > = -L/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.12.0/lib = -L/lib > -L/usr/local/lib/qt5 -lQt5Core -L/usr/local/lib -lGL -lpng16 = -lharfbuzz -lz > .obj/qimage.o: In function `QImage::fill(unsigned int)': > qimage.cpp:(.text+0x2442): undefined reference to = `qt_memfill32(unsigned int*, > unsigned int, int)' > qimage.cpp:(.text+0x2477): undefined reference to = `qt_memfill16(unsigned > short*, unsigned short, int)' 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. -Dimitry --Apple-Mail=_2A6F39A8-7EC7-498E-967A-BD1D4B3D8CEC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXGAFGwAKCRCwXqMKLiCW o1h6AKCf1odFI4rz2sU27/gZOv+Nh1ALhwCgxzu+sVMBMx3Kv1gRaRERuCvEQYA= =aIsj -----END PGP SIGNATURE----- --Apple-Mail=_2A6F39A8-7EC7-498E-967A-BD1D4B3D8CEC--