From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 5 00:00:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B7FE0C6B for ; Wed, 5 Mar 2014 00:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8A4CAE5D for ; Wed, 5 Mar 2014 00:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s25000Jv029936 for ; Wed, 5 Mar 2014 00:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2500075029933; Wed, 5 Mar 2014 00:00:00 GMT (envelope-from gnats) Resent-Date: Wed, 5 Mar 2014 00:00:00 GMT Resent-Message-Id: <201403050000.s2500075029933@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Don Lewis Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0AC1961 for ; Tue, 4 Mar 2014 23:51:52 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 94DCDE0A for ; Tue, 4 Mar 2014 23:51:52 +0000 (UTC) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s24Npp1v007446 for ; Tue, 4 Mar 2014 15:51:51 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (localhost.catspoiler.org [127.0.0.1]) by mousie.catspoiler.org (8.14.7/8.14.7) with ESMTP id s24Nppth010668 for ; Tue, 4 Mar 2014 15:51:51 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: (from dl@localhost) by mousie.catspoiler.org (8.14.7/8.14.7/Submit) id s24NppZA010667; Tue, 4 Mar 2014 15:51:51 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201403042351.s24NppZA010667@mousie.catspoiler.org> Date: Tue, 4 Mar 2014 15:51:51 -0800 (PST) From: Don Lewis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/187266: clang 3.4 aborts when building math/py-numeric with -march=athlon64 on i386 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Don Lewis List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 00:00:00 -0000 >Number: 187266 >Category: bin >Synopsis: clang 3.4 aborts when building math/py-numeric with -march=athlon64 on i386 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 05 00:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Don Lewis >Release: FreeBSD 11.0-CURRENT i386 >Organization: FreeBSD Project >Environment: System: FreeBSD scratch.catspoiler.org 11.0-CURRENT FreeBSD 11.0-CURRENT #71 r262666M: Sat Mar 1 16:42:54 PST 2014 dl@scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICSMB Ports tree revision r346717. py27-numeric-24.2_3 >Description: When attempting to build math/py-numeric on a machine with an Athlon 64 CPU running in i386 mode, clang 3.4 aborts while compiling the dlaed3_() function in the file dlapack_lite.c. cc -DNDEBUG -O2 -pipe -march=athlon64 -fno-strict-aliasing -fPIC -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/usr/local/include/python2.7 -c Src/dlapack_lite.c -o build/temp.freebsd-11.0-CURRENT-i386-2.7/Src/dlapack_lite.o Instruction does not dominate all uses! %arrayidx106 = getelementptr inbounds double* %dlamda, i32 %sub83 %bound1492 = icmp ule double* %arrayidx106, %scevgep473 Instruction does not dominate all uses! %arrayidx106 = getelementptr inbounds double* %dlamda, i32 %sub83 %bound0491 = icmp ule double* %scevgep471, %arrayidx106 Broken module found, compilation aborted! Stack dump: 0. Program arguments: /usr/bin/cc -cc1 -triple i386-unknown-freebsd11.0 -emit-obj -disable-free -main-file-name dlapack_lite.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu athlon64 -coverage-file /usr/ports/math/py-numeric/work/Numeric-24.2/build/temp.freebsd-11.0-CURRENT-i386-2.7/Src/dlapack_lite.o -resource-dir /usr/bin/../lib/clang/3.4 -D NDEBUG -I Include -I Packages/FFT/Include -I Packages/RNG/Include -I /usr/local/include/python2.7 -O2 -fdebug-compilation-dir /usr/ports/math/py-numeric/work/Numeric-24.2 -ferror-limit 19 -fmessage-length 80 -mstackrealign -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o build/temp.freebsd-11.0-CURRENT-i386-2.7/Src/dlapack_lite.o -x c Src/dlapack_lite.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'Src/dlapack_lite.c'. 4. Running pass 'Module Verifier' on function '@dlaed3_' cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216 Target: i386-unknown-freebsd11.0 Thread model: posix cc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/dlapack_lite-26ef53.c cc: note: diagnostic msg: /tmp/dlapack_lite-26ef53.sh cc: note: diagnostic msg: ******************** error: command 'cc' failed with exit status 254 *** Error code 1 Stop. make[1]: stopped in /usr/ports/math/py-numeric *** Error code 1 Stop. make: stopped in /usr/ports/math/py-numeric The compilation succeeds if -march=athlon64 is *not* specified. A bug report has been filed upstream: >How-To-Repeat: Attempt to compile dlapack_lite.c from math/py-numeric with clang 3.4 on i386 with the -march=athlon64 flag. >Fix: >Release-Note: >Audit-Trail: >Unformatted: