From owner-freebsd-stable@FreeBSD.ORG Thu Aug 14 15:03:09 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F48D1065672; Thu, 14 Aug 2008 15:03:09 +0000 (UTC) (envelope-from bazerka@beardz.net) Received: from mail.btshosting.co.uk (mail.btshosting.co.uk [213.228.232.37]) by mx1.freebsd.org (Postfix) with ESMTP id BE8BF8FC3A; Thu, 14 Aug 2008 15:03:08 +0000 (UTC) (envelope-from bazerka@beardz.net) Received: from [192.168.1.65] (host86-148-119-122.range86-148.btcentralplus.com [86.148.119.122]) (authenticated bits=0) by mail.btshosting.co.uk (8.13.8/8.13.8) with ESMTP id m7EEfrJ9018975; Thu, 14 Aug 2008 15:41:53 +0100 Message-ID: <48A4442D.7060203@beardz.net> Date: Thu, 14 Aug 2008 15:41:49 +0100 From: Jase Thew User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Jeremy Chadwick References: <48A431C6.1050401@moneybookers.com> <57200BF94E69E54880C9BB1AF714BBCB5DE086@w2003s01.double-l.local> <20080814143648.GB28316@eos.sc1.parodius.com> In-Reply-To: <20080814143648.GB28316@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on 87.117.208.49 X-Virus-Status: Clean Cc: Johan Hendriks , freebsd-stable@freebsd.org Subject: Re: CPUTYPE weirdness X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bazerka@beardz.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 15:03:09 -0000 Jeremy Chadwick wrote: > On Thu, Aug 14, 2008 at 04:13:51PM +0200, Johan Hendriks wrote: >>> Jeremy Chadwick wrote: >>>> On Thu, Aug 14, 2008 at 02:35:46PM +0200, Pascal Hofstee wrote: >>>> >>>>> I just installed a fresh FreeBSD/amd64 7.0-RELEASE and trying to update >>>>> to RELENG_7_0. >>>>> >>>>> I added CPUTYPE ?= core2 to my /etc/src.conf and every call to make >>>>> in /usr/src now gives me the error >>>>> >>>>> "/usr/src/Makefile.inc1", line 142: CPUTYPE global should be set >>>>> with ?=. >>>>> *** Error code 1 >>>>> >>>>> Anyone has any idea what i am doing wrong here ... this same mechanism >>>>> has worked flawlessly on several other systems (although they were not >>>>> RELENG_7_0) ? >>>>> >>>> 1) Remove the space after the word "CPUTYPE", e.g.: >>>> >>>> CPUTYPE?=core2 >>>> >>>> You can put a tab after the "=" if you want, e.g.: >>>> >>>> CPUTYPE?= core2 >>>> >>>> 2) According to some very old mail I have (will dig it up if you want), >>>> Core2Duo users should be using CPUTYPE?=nocona. >>>> >>> This should be fixed long time ago. core2 is alias for nocona but the >>> idea is users to >>> be ready when additional optimization for core2 are added. >> If you install amd64 then you need nocona if you install i386 you will need presscot. >> Or use core2 and FreeBSD itself looks at the arch and use nocona or presscot. >> >> That?s what I understand from what I read on the net > > 1) It's prescott, not presscot. > > 2) You can use nocona on both i386 and amd64 -- I speak from > experience. I'm referring to RELENG_7 by the way; I don't think > nocona is recognised by the base system gcc on RELENG_6. > nocona is definitely supported by base gcc in RELENG_6_3 and is listed in the gcc manpage : nocona Improved version of Intel Pentium4 CPU with 64-bit extensions, MMX, SSE, SSE2 and SSE3 instruction set support. I have it in my /etc/make.conf for 6.3-REL/amd64 and it works a charm. Regards, Jase.