From owner-freebsd-questions@FreeBSD.ORG Fri Jun 13 17:20:18 2014 Return-Path: Delivered-To: freebsd-questions@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 BCBA8DD6 for ; Fri, 13 Jun 2014 17:20:18 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6905F2243 for ; Fri, 13 Jun 2014 17:20:18 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s5DHKGlC047807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 13 Jun 2014 11:20:17 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s5DHKFWR047804; Fri, 13 Jun 2014 11:20:16 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 13 Jun 2014 11:20:15 -0600 (MDT) From: Warren Block To: Rolf Nielsen Subject: Re: Build of FreeBSD-10 fails on 9 with unknown target CPU In-Reply-To: <539B2041.7000202@gmail.com> Message-ID: References: <539AC3A7.4040309@rawbw.com> <539B2041.7000202@gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 13 Jun 2014 11:20:17 -0600 (MDT) Cc: Yuri , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2014 17:20:18 -0000 On Fri, 13 Jun 2014, Rolf Nielsen wrote: > On 2014-06-13 11:25, Yuri wrote: >> 'make buildworld' fails in llvm build with the message: error: >> unknown target CPU 'amd64' /etc/make.conf has the line: >> CPUTYPE?=core And CPU is: Intel(R) Core(TM) i7 CPU 920 @ >> 2.67GHz >> >> /usr/src/UPDATING only says that CPUTYPE should be set with ?=, but >> the build fails with and without CPUTYPE. >> >> What causes the build to fail? > > I use > > CPUTYPE?=corei7 > > and it works fine. Do you set some variables on the commandline as > well, that might confuse the compiler? And by llvm build, do you mean > when building llvm or do you mean that you use llvm/clang to perform > the build? How did you find that? /usr/share/examples/etc/make.conf does not list it. "corei5" does not work here, but "corei7" does.