Date: Wed, 7 Oct 2015 13:33:23 +0200 From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: Dimitry Andric <dim@FreeBSD.org> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: CURRENT: build failure with clang 3.7.0 Message-ID: <20151007133323.364655dd@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: <EB5AD370-5FFF-4C90-8510-14DB3EFED961@FreeBSD.org> References: <20151007093727.0db8e2e6@freyja.zeit4.iv.bundesimmobilien.de> <EB5AD370-5FFF-4C90-8510-14DB3EFED961@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 7 Oct 2015 13:23:48 +0200 Dimitry Andric <dim@FreeBSD.org> wrote: > On 07 Oct 2015, at 09:37, O. Hartmann <ohartman@zedat.fu-berlin.de> 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<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> Jul 29 07:05:52 freyja kernel: Features2=0x7dfefbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,XSAVE,OSXSAVE,AVX,F16C,RDRAND> Jul 29 07:05:52 freyja kernel: AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> Jul 29 07:05:52 freyja kernel: AMD Features2=0x21<LAHF,ABM> Jul 29 07:05:52 freyja kernel: Structured Extended Features=0x37ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,NFPUSG> [...] 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<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=0x7fbae3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM> AMD Features2=0x1<LAHF> Structured Extended Features=0x281<FSGSBASE,SMEP,ERMS> XSAVE Features=0x1<XSAVEOPT> 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<allocator_type>::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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151007133323.364655dd>