From owner-freebsd-toolchain@freebsd.org Sun Feb 10 05:00:09 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 D817814DDFFC for ; Sun, 10 Feb 2019 05:00:08 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (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 "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6718B9478F for ; Sun, 10 Feb 2019 05:00:06 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id x1A503Co031900 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sat, 9 Feb 2019 21:00:03 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x1A503Uk031899 for freebsd-toolchain@freebsd.org; Sat, 9 Feb 2019 21:00:03 -0800 (PST) (envelope-from sgk) Date: Sat, 9 Feb 2019 21:00:03 -0800 From: Steve Kargl To: freebsd-toolchain@freebsd.org Subject: clang broken on current? Message-ID: <20190210050003.GA31811@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.2 (2019-01-07) X-Rspamd-Queue-Id: 6718B9478F X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.24 / 15.00]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: troutmask.apl.washington.edu]; RCVD_IN_DNSWL_MED(-0.20)[21.76.95.128.list.dnswl.org : 127.0.11.2]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.12)[ip: (0.27), ipnet: 128.95.0.0/16(0.32), asn: 73(0.09), country: US(-0.07)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.94)[0.935,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-toolchain@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.60)[0.601,0]; MIME_TRACE(0.00)[0:+]; NEURAL_SPAM_LONG(0.40)[0.397,0]; DMARC_NA(0.00)[washington.edu]; R_SPF_NA(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 05:00:09 -0000 I have % uname -a FreeBSD mobile 13.0-CURRENT FreeBSD 13.0-CURRENT r343477 MOBILE i386 % 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="GenuineIntel" Id=0x6fd Family=0x6 Model=0xf Stepping=13 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20000000 AMD Features2=0x1 VT-x: (disabled in BIOS) HLT,PAUSE TSC: P-state invariant, performance statistics ... If I add 'CFLAGS+=-march=native -mtune=native', I can build world and kernel without a problem. If I try to build x11-toolkits/qt5-gui the build dies with 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 (long list of *.o files) -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)' qimage.cpp:(.text+0x268f): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' qimage.cpp:(.text+0x26cf): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)' .obj/qcompositionfunctions.o: In function `comp_func_solid_Clear(unsigned int*, int, unsigned int, unsigned int)': qcompositionfunctions.cpp:(.text+0x33): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' .obj/qcompositionfunctions.o: In function `comp_func_Clear(unsigned int*, unsigned int const*, int, unsigned int)': qcompositionfunctions.cpp:(.text+0x293): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' .obj/qcompositionfunctions.o: In function `comp_func_solid_Source(unsigned int*, int, unsigned int, unsigned int)': qcompositionfunctions.cpp:(.text+0x4f1): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' .obj/qcompositionfunctions.o: In function `comp_func_solid_SourceOver(unsigned int*, int, unsigned int, unsigned int)': qcompositionfunctions.cpp:(.text+0xc4b): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' .obj/qcompositionfunctions.o: In function `rasterop_solid_NotSource(unsigned int*, int, unsigned int, unsigned int)': qcompositionfunctions.cpp:(.text+0x2da8b): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' .obj/qcompositionfunctions.o:qcompositionfunctions.cpp:(.text+0x2e603): more undefined references to `qt_memfill32(unsigned int*, unsigned int, int)' follow .obj/qdrawhelper.o: In function `blend_color_rgb16(int, QT_FT_Span_ const*, void*)': qdrawhelper.cpp:(.text+0x14968): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)' .obj/qdrawhelper.o: In function `qt_bitmapblit_quint16(QRasterBuffer*, int, int, QRgba64 const&, unsigned char const*, int, int, int)': qdrawhelper.cpp:(.text+0x14ea1): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)' qdrawhelper.cpp:(.text+0x14eed): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)' qdrawhelper.cpp:(.text+0x14f3e): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)' qdrawhelper.cpp:(.text+0x14f8f): undefined reference to `qt_memfill16(unsigned short*, unsigned short, int)' .obj/qdrawhelper.o:qdrawhelper.cpp:(.text+0x14fde): more undefined references to `qt_memfill16(unsigned short*, unsigned short, int)' follow .obj/qdrawhelper.o: In function `qt_rectfill_rgba(QRasterBuffer*, int, int, int, int, QRgba64 const&)': qdrawhelper.cpp:(.text+0x16b7b): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' qdrawhelper.cpp:(.text+0x16b9f): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' .obj/qdrawhelper.o: In function `qt_rectfill_nonpremul_rgba(QRasterBuffer*, int, int, int, int, QRgba64 const&)': qdrawhelper.cpp:(.text+0x16cfc): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' qdrawhelper.cpp:(.text+0x16d21): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' .obj/qdrawhelper.o: In function `_ZL17qt_rectfill_rgb30IL12QtPixelOrder1EEvP13QRasterBufferiiiiRK7QRgba64': qdrawhelper.cpp:(.text+0x17054): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)' .obj/qdrawhelper.o:qdrawhelper.cpp:(.text+0x1707c): more undefined references to `qt_memfill32(unsigned int*, unsigned int, int)' follow .obj/qdrawhelper.o: In function `_GLOBAL__sub_I_qdrawhelper.cpp': qdrawhelper.cpp:(.text+0x2cfe7): undefined reference to `qt_bitmapblit32_sse2(QRasterBuffer*, int, int, QRgba64 const&, unsigned char const*, int, int, int)' qdrawhelper.cpp:(.text+0x2cfff): undefined reference to `qt_bitmapblit16_sse2(QRasterBuffer*, int, int, QRgba64 const&, unsigned char const*, int, int, int)' qdrawhelper.cpp:(.text+0x2d00b): undefined reference to `qt_bitmapblit8888_sse2(QRasterBuffer*, int, int, QRgba64 const&, unsigned char const*, int, int, int)' qdrawhelper.cpp:(.text+0x2d023): undefined reference to `qt_scale_image_argb32_on_argb32_sse2(unsigned char*, int, unsigned char const*, int, int, QRectF const&, QRectF const&, QRect const&, int)' qdrawhelper.cpp:(.text+0x2d047): undefined reference to `qt_blend_rgb32_on_rgb32_sse2(unsigned char*, int, unsigned char const*, int, int, int, int)' qdrawhelper.cpp:(.text+0x2d05f): undefined reference to `qt_blend_argb32_on_argb32_sse2(unsigned char*, int, unsigned char const*, int, int, int, int)' qdrawhelper.cpp:(.text+0x2d089): undefined reference to `qt_fetch_radial_gradient_sse2(unsigned int*, Operator const*, QSpanData const*, int, int, int)' qdrawhelper.cpp:(.text+0x2d095): undefined reference to `comp_func_SourceOver_sse2(unsigned int*, unsigned int const*, int, unsigned int)' qdrawhelper.cpp:(.text+0x2d0a3): undefined reference to `comp_func_solid_SourceOver_sse2(unsigned int*, int, unsigned int, unsigned int)' qdrawhelper.cpp:(.text+0x2d0b1): undefined reference to `comp_func_Source_sse2(unsigned int*, unsigned int const*, int, unsigned int)' qdrawhelper.cpp:(.text+0x2d0ba): undefined reference to `comp_func_Plus_sse2(unsigned int*, unsigned int const*, int, unsigned int)' c++: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Removing the additional of -march=native -mtune=native fixes the build. -- Steve