From owner-freebsd-current@freebsd.org Wed Oct 7 11:33:27 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57F5B9D0BF0 for ; Wed, 7 Oct 2015 11:33:27 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 178A9A06; Wed, 7 Oct 2015 11:33:26 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtp (envelope-from ) id <1ZjmyK-001R8z-TE>; Wed, 07 Oct 2015 13:33:24 +0200 Received: from p578a69f9.dip0.t-ipconnect.de ([87.138.105.249] helo=freyja.zeit4.iv.bundesimmobilien.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (envelope-from ) id <1ZjmyK-002hom-Ky>; Wed, 07 Oct 2015 13:33:24 +0200 Date: Wed, 7 Oct 2015 13:33:23 +0200 From: "O. Hartmann" To: Dimitry Andric Cc: freebsd-current Subject: Re: CURRENT: build failure with clang 3.7.0 Message-ID: <20151007133323.364655dd@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: References: <20151007093727.0db8e2e6@freyja.zeit4.iv.bundesimmobilien.de> Organization: FU Berlin X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 87.138.105.249 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 11:33:27 -0000 On Wed, 7 Oct 2015 13:23:48 +0200 Dimitry Andric wrote: > On 07 Oct 2015, at 09:37, O. Hartmann wrote: > > > > I hit on a box this nasty/sticky error when performing buildworld. > > > > /usr/src is on r288980 > ... > > --- ieee802_11_common.o --- > ... > > -c /usr/src/usr.sbin/wpa/wpa_supplicant/../../../contrib/wpa//src/common/ieee802_11_common.c > > -o ieee802_11_common.o Cannot emit physreg copy instruction UNREACHABLE > > executed > > at /usr/src/lib/clang/libllvmx86codegen/../../../contrib/llvm/lib/Target/X86/X86InstrInfo.cpp:3935! > > Somebody else reported the same to me yesterday. This is an upstream > bug with AVX (which is still present in llvm trunk), so for now you need > to set your CPUTYPE to something that doesn't have AVX, or simply unset > your CPUTYPE. > > The bug has been reported upstream, and once there is a fix, I will > import it ASAP. > > -Dimitry > When I allow to build with CXXFLAGS+= -std=c++11 set in /etx/src.conf, I get the below shown error. Funny, I have several other boxes, definitely having AVX aboard: [... from dmesg] Jul 29 07:05:52 freyja kernel: CPU: Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz (3491.98-MHz K8-class CPU) Jul 29 07:05:52 freyja kernel: Origin="GenuineIntel" Id=0x306f2 Family=0x6 Model=0x3f Stepping=2 Jul 29 07:05:52 freyja kernel: Features=0xbfebfbff Jul 29 07:05:52 freyja kernel: Features2=0x7dfefbff Jul 29 07:05:52 freyja kernel: AMD Features=0x2c100800 Jul 29 07:05:52 freyja kernel: AMD Features2=0x21 Jul 29 07:05:52 freyja kernel: Structured Extended Features=0x37ab [...] which is a most recent Haswell XEON and builds world fine. My personal failing box is a i3-32XX, IvyBridge, but the IvyBridge E3-124XX XEON builds well. The output shown below and the error I reported is from this hardware: CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (3192.81-MHz K8-class CPU) Origin="GenuineIntel" Id=0x306a9 Family=0x6 Model=0x3a Stepping=9 Features=0xbfebfbff Features2=0x7fbae3ff AMD Features=0x28100800 AMD Features2=0x1 Structured Extended Features=0x281 XSAVE Features=0x1 VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics The buildworld error when building with CXXFLAGS+= -std=c++11 is then [...] cc -O2 -pipe -O3 -O3 -pipe -march=native -I. -I/usr/obj/usr/src/lib/ncurses/menu/../ncurses -I/usr/src/lib/ncurses/menu/../ncurses -I/usr/src/lib/ncurses/menu/../ncurses -I/usr/src/lib/ncurses/menu/../../../contrib/ncurses/include -I/usr/src/lib/ncurses/menu/../../../contrib/ncurses/ncurses -Wall -DNDEBUG -DHAVE_CONFIG_H -I/usr/src/lib/ncurses/menu/../../../contrib/ncurses/menu -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Qunused-arguments -c /usr/src/lib/ncurses/menu/../../../contrib/ncurses/menu/m_pad.c -o m_pad.o --- all_subdir_atf --- In file included from /usr/src/contrib/atf/atf-c++/detail/application.cpp:26: In file included from /usr/src/contrib/atf/atf-c++/detail/application.hpp:29: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/ostream:138: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/ios:216: In file included from /usr/obj/usr/src/tmp/usr/include/c++/v1/__locale:15: /usr/obj/usr/src/tmp/usr/include/c++/v1/string:1938:44: error: 'basic_string<_CharT, _Traits, _Allocator>' is missing exception specification 'noexcept(is_nothrow_copy_constructible::value)' [-Werror] basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a) ^ /usr/obj/usr/src/tmp/usr/include/c++/v1/string:1326:40: note: previous declaration is here _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)