From owner-freebsd-stable@FreeBSD.ORG Sat Dec 29 19:03:06 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7699B55A for ; Sat, 29 Dec 2012 19:03:06 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 382808FC13 for ; Sat, 29 Dec 2012 19:03:05 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so14004127iec.13 for ; Sat, 29 Dec 2012 11:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=A5c+54RzkS/EeW6ufWAG57k4QoQx6zDxu3O5Tcx9Jo4=; b=0jZnhArqErbn6VS1N/8IPOT0aVVXu46lAocMfVuHpf4xxstv0DG3UWL560+oO0RTFE iOsn/K42Nmr6V8CsTU9J4NeCud+q4GkBHk3fGFtTgR1hUfWGUvjvrlENdr886bhDyrnL Tr7w31Gv7O3JTZu/edMLcbi/WpTdrfxESp3OVCcyNXzkLRYl3rAUnKeorjRURpN3F4I9 d+UwBt2MJ7KPKNYOUIDWO/W5DZQiV9cbP4bwtaFX/y0DHgh9+RjrWmmvruXJRdN3YdSa Bxv19KueLNw7nSUIe2cCNrfNQfvAD0OQpEDGMMnKeSThco+oNetq8wjQajfxFKFF+RzR kKBw== MIME-Version: 1.0 Received: by 10.50.91.168 with SMTP id cf8mr33068602igb.20.1356807778865; Sat, 29 Dec 2012 11:02:58 -0800 (PST) Received: by 10.50.192.167 with HTTP; Sat, 29 Dec 2012 11:02:58 -0800 (PST) In-Reply-To: <50DEFF85.3030103@internecto.net> References: <50DED9BA.1000400@internecto.net> <50DEFF85.3030103@internecto.net> Date: Sat, 29 Dec 2012 13:02:58 -0600 Message-ID: Subject: Re: FreeBSD 9 (amd64) buildworld stage 4.2 fails with clang: unknown target cpu i686 From: Scot Hetzel To: Mark van Dijk Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Dec 2012 19:03:06 -0000 On Sat, Dec 29, 2012 at 8:34 AM, Mark van Dijk wrote: > On 29-12-12 12:53, Mark van Dijk wrote: >> I suspect that the error is caused by -march=native, my CPU is an Intel >> Core i5. > > Looks like I was correct. CPUTYPE?=core2 will build world fine so > perhaps 'native' does not know about my processor yet. Apparently it > falls back to assuming it's a i686. > Tha problem that src/share/mk/bsd.cpu.mk doesn't know how to handle CPUTYPE=native correctly. CPUTYPE=core2 i386: MACHINE_CPU = ssse3 sse3 sse2 sse i686 mmx i586 i486 amd64: MACHINE_CPU = ssse3 sse3 amd64 sse2 sse mmx CPUTYPE=native i386: MACHINE_CPU = i486 amd64: MACHINE_CPU = amd64 sse2 sse mmx See http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/112997 for one possible fix. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.