From owner-freebsd-ports@freebsd.org Sun Apr 16 18:55:08 2017 Return-Path: Delivered-To: freebsd-ports@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 4A21BD41403 for ; Sun, 16 Apr 2017 18:55:08 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-42.reflexion.net [208.70.210.42]) (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 0D27B105C for ; Sun, 16 Apr 2017 18:55:07 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 6319 invoked from network); 16 Apr 2017 18:56:08 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 16 Apr 2017 18:56:08 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.0) with SMTP; Sun, 16 Apr 2017 14:55:05 -0400 (EDT) Received: (qmail 1395 invoked from network); 16 Apr 2017 18:55:05 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 16 Apr 2017 18:55:05 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id E2563EC7E2B; Sun, 16 Apr 2017 11:55:04 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: amd64 head -r317015 system clang 4.0 crashes during qt5-widgets "checking" activity: "Wrong prefetch hint in intrinsic: should be 0 or 1" (avx512.cpp) Message-Id: <61B01D71-933E-454B-8878-C021CC93DF43@dsl-only.net> Date: Sun, 16 Apr 2017 11:55:04 -0700 Cc: FreeBSD Current , freebsd-amd64@freebsd.org To: FreeBSD Toolchain , FreeBSD Ports X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2017 18:55:08 -0000 [ports -r438577 with devel/*binutils reverted to 2.27 via -r436731 .] The qr5-widgets build attempt reported: checking for avx512cd...=20 clang++ -c -pipe -O2 -g -fstack-protector -fno-strict-aliasing = -mavx512cd -g -Wall -W -fPIC -DAVX512WANT=3DCD -I. -I/usr/local/include = -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o avx512.o avx512.cpp clang++ -o avx512 avx512.o -L/usr/local/lib avx512cd enabled. checking for avx512pf...=20 clang++ -c -pipe -O2 -g -fstack-protector -fno-strict-aliasing = -mavx512pf -g -Wall -W -fPIC -DAVX512WANT=3DPF -I. -I/usr/local/include = -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o avx512.o avx512.cpp Assertion failed: (HintVal < 2 && "Wrong prefetch hint in intrinsic: = should be 0 or 1"), function LowerINTRINSIC_W_CHAIN, file = /usr/src/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp, line 19956. clang++: ESC[0;1;31merror: ESC[0munable to execute command: Abort trap = (core dumped)ESC[0m clang++: ESC[0;1;31merror: ESC[0mclang frontend command failed due to = signal (use -v to see invocation)ESC[0m FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on = LLVM 4.0.0) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin clang++: ESC[0;1;30mnote: ESC[0mdiagnostic msg: PLEASE submit a bug = report to https://bugs.freebsd.org/submit/ and include the crash = backtrace, preprocessed source, and associated run script.ESC[0m clang++: ESC[0;1;30mnote: ESC[0mdiagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located = at:ESC[0m clang++: ESC[0;1;30mnote: ESC[0mdiagnostic msg: = /tmp/avx512-258133.cppESC[0m clang++: ESC[0;1;30mnote: ESC[0mdiagnostic msg: = /tmp/avx512-258133.shESC[0m clang++: ESC[0;1;30mnote: ESC[0mdiagnostic msg:=20 ********************ESC[0m *** Error code 254 Stop. make[2]: stopped in = /usr/obj/portswork/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensour= ce-src-5.7.1/config.tests/common/avx512 # more /tmp/avx512-258133.sh # Crash reproducer for FreeBSD clang version 4.0.0 = (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) # Driver args: "--driver-mode=3Dg++" "-c" "-pipe" "-O2" "-g" = "-fstack-protector" "-fno-strict-aliasing" "-mavx512pf" "-g" "-Wall" = "-W" "-fPIC" "-D" "AVX512WANT=3DPF" "-I" "." "-I" "/usr/local/include" = "-I" "/usr/local/lib/qt5/mkspecs/freebsd-clang" "-o" "avx512.o" = "avx512.cpp" # Original command: "/usr/bin/clang++" "-cc1" "-triple" = "x86_64-unknown-freebsd12.0" "-emit-obj" "-disable-free" = "-main-file-name" "avx512.cpp" "-mrelocation-model" "pic" "-pic-level" = "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-relaxed-aliasing" = "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" = "x86-64" "-target-feature" "+avx512pf" "-dwarf-column-info" = "-debug-info-kind=3Dstandalone" "-dwarf-version=3D2" = "-debugger-tuning=3Dgdb" "-coverage-notes-file" = "/usr/obj/portswork/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensou= rce-src-5.7.1/config.tests/common/avx512/avx512.gcno" "-resource-dir" = "/usr/bin/../lib/clang/4.0.0" "-D" "AVX512WANT=3DPF" "-I" "." "-I" = "/usr/local/include" "-I" "/usr/local/lib/qt5/mkspecs/freebsd-clang" = "-internal-isystem" "/usr/include/c++/v1" "-O2" "-Wall" "-W" = "-fdeprecated-macro" "-fdebug-compilation-dir" = "/usr/obj/portswork/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensou= rce-src-5.7.1/config.tests/common/avx512" "-ferror-limit" "19" = "-fmessage-length" "80" "-stack-protector" "1" "-fobjc-runtime=3Dgnustep" = "-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option" = "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-o" = "avx512.o" "-x" "c++" "avx512.cpp" "/usr/bin/clang++" "-cc1" "-triple" "x86_64-unknown-freebsd12.0" = "-emit-obj" "-disable-free" "-main-file-name" "avx512.cpp" = "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" = "-mdisable-fp-elim" "-relaxed-aliasing" "-masm-verbose" = "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" = "-target-feature" "+avx512pf" "-dwarf-column-info" = "-debug-info-kind=3Dstandalone" "-dwarf-version=3D2" = "-debugger-tuning=3Dgdb" "-coverage-notes-file" = "/usr/obj/portswork/usr/ports/x11-toolkits/qt5-widgets/work/qtbase-opensou= rce-src-5.7.1/config.tests/common/avx512/avx512.gcno" "-D" = "AVX512WANT=3DPF" "-O2" "-Wall" "-W" "-fdeprecated-macro" = "-ferror-limit" "19" "-fmessage-length" "80" "-stack-protector" "1" = "-fobjc-runtime=3Dgnustep" "-fcxx-exceptions" "-fexceptions" = "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" = "-vectorize-slp" "-x" "c++" "avx512-258133.cpp" Unfortunately the /tmp/avx512-258133.cpp is somewhat over 2 MiBytes and so it not appropriate here. (Note: I got to this via trying to build x11/lumina .) As for build environment details/oddities for my context: # more /etc/make.conf=20 WANT_QT_VERBOSE_CONFIGURE=3D1 # DEFAULT_VERSIONS+=3Dperl5=3D5.24 WRKDIRPREFIX=3D/usr/obj/portswork # # =46rom a local /usr/ports/Mk/bsd.port.mk extension: ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG=3D # .if ${.CURDIR:M*/devel/*llvm*} #WITH_DEBUG=3D .elif ${.CURDIR:M*/www/webkit-qt5*} #WITH_DEBUG=3D .else WITH_DEBUG=3D .endif WITH_DEBUG_FILES=3D MALLOC_PRODUCTION=3D # svnlite diff /usr/ports/Mk/ Index: /usr/ports/Mk/bsd.port.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/Mk/bsd.port.mk (revision 436747) +++ /usr/ports/Mk/bsd.port.mk (working copy) @@ -1646,7 +1646,11 @@ STRIP_CMD=3D ${TRUE} .endif DEBUG_FLAGS?=3D -g +.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG) +CFLAGS:=3D ${CFLAGS} ${DEBUG_FLAGS} +.else CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} +.endif .if defined(INSTALL_TARGET) INSTALL_TARGET:=3D ${INSTALL_TARGET:S/^install-strip$/install/g} .endif # svnlite info /usr/ports/devel/binutils Path: /usr/ports/devel/binutils Working Copy Root Path: /usr/ports URL: svn://svn0.us-west.freebsd.org/ports/head/devel/binutils Relative URL: ^/head/devel/binutils Repository Root: svn://svn0.us-west.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 436731 Node Kind: directory Schedule: normal Last Changed Author: bdrewery Last Changed Rev: 434651 Last Changed Date: 2017-02-22 15:33:44 -0800 (Wed, 22 Feb 2017) # svnlite diff /usr/src/contrib/llvm/ Index: /usr/src/contrib/llvm/tools/lld/ELF/Target.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/contrib/llvm/tools/lld/ELF/Target.cpp (revision = 315914) +++ /usr/src/contrib/llvm/tools/lld/ELF/Target.cpp (working copy) @@ -1070,7 +1070,8 @@ } =20 PPC64TargetInfo::PPC64TargetInfo() { - PltRel =3D GotRel =3D R_PPC64_GLOB_DAT; + GotRel =3D R_PPC64_GLOB_DAT; + PltRel =3D R_PPC64_JMP_SLOT; RelativeRel =3D R_PPC64_RELATIVE; GotEntrySize =3D 8; GotPltEntrySize =3D 8; (So TARGET_ARCH=3Dpowerpc64 tied.) =3D=3D=3D Mark Millard markmi at dsl-only.net