From owner-freebsd-amd64@FreeBSD.ORG Mon May 20 16:30:00 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B37817FB for ; Mon, 20 May 2013 16:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 822A03CD for ; Mon, 20 May 2013 16:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4KGU0ea056022 for ; Mon, 20 May 2013 16:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4KGU0hq056021; Mon, 20 May 2013 16:30:00 GMT (envelope-from gnats) Resent-Date: Mon, 20 May 2013 16:30:00 GMT Resent-Message-Id: <201305201630.r4KGU0hq056021@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bert Regeer Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D6B075B0 for ; Mon, 20 May 2013 16:20:23 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id C92DF33D for ; Mon, 20 May 2013 16:20:23 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4KGKNGs075821 for ; Mon, 20 May 2013 16:20:23 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4KGKN2u075820; Mon, 20 May 2013 16:20:23 GMT (envelope-from nobody) Message-Id: <201305201620.r4KGKN2u075820@oldred.FreeBSD.org> Date: Mon, 20 May 2013 16:20:23 GMT From: Bert Regeer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/178792: -march=native fails with clang on certain CPU's X-Mailman-Approved-At: Mon, 20 May 2013 16:38:03 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 May 2013 16:30:00 -0000 >Number: 178792 >Category: amd64 >Synopsis: -march=native fails with clang on certain CPU's >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 20 16:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Bert Regeer >Release: FreeBSD 9.1-RELEASE >Organization: Absio Corporation >Environment: FreeBSD TestVM.absio.local 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When compiling with clang passing the flag "-march=native" causes clang to fail with the following error message: touch test.c clang -march=native test.c error: unknown target CPU 'i686' This is an issue when the Python has also been installed with clang as the compiler, as all of the python packages from pypi that require a c compiler will invoke clang with the -march=native and fail. It is only on certain CPU's that I am able to replicate the issue, see the following output from dmesg: FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 CPU: Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz (2294.19-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x306a9 Family = 6 Model = 3a Stepping = 9 Features=0xfa3fbff Features2=0x9e982203 AMD Features=0x28100800 AMD Features2=0x1 TSC: P-state invariant >How-To-Repeat: touch test.c clang -march=native test.c >Fix: >Release-Note: >Audit-Trail: >Unformatted: