From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 11 14:30:24 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D02B16A421 for ; Thu, 11 Aug 2005 14:30:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC37443D46 for ; Thu, 11 Aug 2005 14:30:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7BEUHvo026452 for ; Thu, 11 Aug 2005 14:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7BEUHMK026451; Thu, 11 Aug 2005 14:30:17 GMT (envelope-from gnats) Resent-Date: Thu, 11 Aug 2005 14:30:17 GMT Resent-Message-Id: <200508111430.j7BEUHMK026451@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, Michael Conlen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CD1616A41F for ; Thu, 11 Aug 2005 14:22:17 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B42943D48 for ; Thu, 11 Aug 2005 14:22:17 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j7BEMHES085222 for ; Thu, 11 Aug 2005 14:22:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j7BEMGLL085221; Thu, 11 Aug 2005 14:22:16 GMT (envelope-from nobody) Message-Id: <200508111422.j7BEMGLL085221@www.freebsd.org> Date: Thu, 11 Aug 2005 14:22:16 GMT From: Michael Conlen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: conf/84800: setting CPUTYPE=nocona on an Intel system results in -march=prescott being used X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2005 14:30:24 -0000 >Number: 84800 >Category: conf >Synopsis: setting CPUTYPE=nocona on an Intel system results in -march=prescott being used >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 11 14:30:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Michael Conlen >Release: 5.4-RELEASE-p6 >Organization: Conlen & Associates Consulting, Inc. >Environment: FreeBSD db1 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Wed Aug 10 06:22:56 EDT 2005 root@:/usr/obj/usr/src/sys/DB i386 >Description: The file /usr/share/mk/bsd.cpu.mk thinks that a nocona processor is an AMD processor as opposed to Intel and will change the CPUTYPE from nocona to prescott on an Intel Xeon "nocona" system. I've made the change and built world/kernel and many ports including MySQL with nocona. >How-To-Repeat: set CPUTYPE=nocona in make.conf on a nocona system and buildworld, watch as it uses -march=prescott >Fix: This isn't the best of solutions but it was quick and dirty and it's the one that works. Obviously the whole logic could be reworked but I need to get this box in to production. --- bsd.cpu.mk.orig Thu Aug 11 10:10:24 2005 +++ bsd.cpu.mk Thu Aug 11 10:10:06 2005 @@ -24,7 +24,7 @@ . if ${MACHINE_ARCH} == "i386" . if ${CPUTYPE} == "nocona" -CPUTYPE = prescott +CPUTYPE = nocona . elif ${CPUTYPE} == "p4" CPUTYPE = pentium4 . elif ${CPUTYPE} == "p4m" >Release-Note: >Audit-Trail: >Unformatted: