From owner-freebsd-current@FreeBSD.ORG Tue Aug 28 14:34:14 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAD3716A417 for ; Tue, 28 Aug 2007 14:34:14 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 2C0B313C45A for ; Tue, 28 Aug 2007 14:34:13 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so184933ugf for ; Tue, 28 Aug 2007 07:34:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tv9e0R6bWrJenmtQNKgyfTUVi8i7vcYgIWvdu3nbzVZshzYt4riLkOa+TP746ZDU4VyY0QdjSp9sl6sWVJ5luBSWVDGihCVvKcLgdEq4Eg/8025Hj9heepViRgHuxO4dJUfj2lMDUqOZsfZVDrTzAcTvlWm0mOOLSR7nwekNpvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k14d0Jdckne9g8Yhy6oT2swhY7pcUMepqMNwe/tex/iSnLePajmJOLkR9w5l02XD4Qg9M4y5Doebpl6x6VD7nFMSdOAAdOof332suXKeXLuCyHlm28XFuqZ8QORx4G7UXPMiMSvgxfMXMuIFpgzHQxeZZ0vN3Z4yQzUj/zll4jM= Received: by 10.142.201.3 with SMTP id y3mr573979wff.1188311649064; Tue, 28 Aug 2007 07:34:09 -0700 (PDT) Received: by 10.143.10.17 with HTTP; Tue, 28 Aug 2007 07:34:09 -0700 (PDT) Message-ID: <26ddd1750708280734p432d887ex3bf7ed7892e78a3f@mail.gmail.com> Date: Tue, 28 Aug 2007 10:34:09 -0400 From: "Maxim Khitrov" To: "Scot Hetzel" In-Reply-To: <790a9fff0708272354q31afca4fx1e787f9592a6a4e0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0708272354q31afca4fx1e787f9592a6a4e0@mail.gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Setting CPUTYPE=native, fails to set MACHINE_CPU correctly. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2007 14:34:14 -0000 On 8/28/07, Scot Hetzel wrote: > Gcc 4.2 has a new cpu_type (native) for x86 and amd64 systems. This > cpu_type is to allow gcc to automatically detect the processor type > that gcc is running on. > > The problem is that setting CPUTYPE?=native in either src.conf or > make.conf will cause MACHINE_CPU to be set to the wrong value for the > native cpu. There is actually another problem with using CPUTYPE=native, as I found out yesterday. Certain ports may fail to build with it. For example, I was trying to build openoffice.org-2 and it was failing at gcc-ooo with the message "cannot compute suffix of object files." Since it was using the older compiler version, -march=native caused it to fail. There should probably be an additional note somewhere telling people to be careful with this setting. - Max