Date: Sun, 10 Feb 2019 12:03:55 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: freebsd-toolchain@freebsd.org Subject: Re: clang broken on current? Message-ID: <F26ACA01-4132-4020-8089-FB862347F37E@FreeBSD.org> In-Reply-To: <20190210050003.GA31811@troutmask.apl.washington.edu> References: <20190210050003.GA31811@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <sgk@troutmask.apl.washington.edu> = 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE= ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > = Features2=3D0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM= > > AMD Features=3D0x20000000<LM> > AMD Features2=3D0x1<LAHF> > 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F26ACA01-4132-4020-8089-FB862347F37E>