From owner-freebsd-current@FreeBSD.ORG Tue Mar 23 02:57:59 2010 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 BB61A1065673 for ; Tue, 23 Mar 2010 02:57:59 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-iw0-f185.google.com (mail-iw0-f185.google.com [209.85.223.185]) by mx1.freebsd.org (Postfix) with ESMTP id 818F98FC1F for ; Tue, 23 Mar 2010 02:57:59 +0000 (UTC) Received: by iwn15 with SMTP id 15so1342940iwn.7 for ; Mon, 22 Mar 2010 19:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=9Kn+guz0GB9BYd2OC4T0fHnbJLaWXbMRBzzR8/9DTYU=; b=EFc5pqupvNJDgzsuUR3eF0IBhB0hJ9+a0MtaCJSMaxSMjGBhDv24qUGqJzYnrxEnju J55mTs5n1aXo9EktJ0+Ymtlp7NDT+I2rJizVLgGy+xjypccxWEKlzcv4xrcSh3O0+lE1 w8Jvpmr5qqcLuzp/BwgVpqBbS3MSpMOIZ2CSU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=S3Lr1K8VT+Ox+c8/tV5BhTOmm8ZS4sRB03umr1mPQRLZRD0jqzkSN9299E6JCqgOso Soo0XLvUSa1LUGpLxQfo7GtraJqZgvesb33PcMJyNtpHPtNW+QtcVmubCz6QNt5AHVUl dvXTED/kDiT1kvhM0MdagjBPlA1PAEMtAHhUA= MIME-Version: 1.0 Received: by 10.231.153.141 with SMTP id k13mr1745389ibw.95.1269313078715; Mon, 22 Mar 2010 19:57:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Mar 2010 21:57:58 -0500 Message-ID: <790a9fff1003221957x6e2b001i3102302618d24051@mail.gmail.com> From: Scot Hetzel To: jhell Content-Type: text/plain; charset=ISO-8859-1 Cc: Alexander Best , freebsd-current@freebsd.org, Garrett Cooper Subject: Re: build failures after stdlib update 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, 23 Mar 2010 02:57:59 -0000 On Sun, Mar 21, 2010 at 7:29 PM, jhell wrote: > Native is equal to CPUTYPE not being defined right ? > Built into GCC is the ability to auto-detect the CPUTYPE when -mtune=native, if you run this command GCC will tell ouput your processor type: gcc -v -x c -E -mtune=native /dev/null -o /dev/null 2>&1 | grep mtune | sed -e 's/.*mtune=//' > So if the above is true why would you set CPUTYPE to native in the first > place ? when you can just leave it unset and its equal to native. > Native allows one to build the sources to the current build machines cputype. There is one bug when setting the CPUTYPE to native, the FreeBSD build system fails to correctly set the MACHINE_CPU to the correct value. I had discovered this problem back in May 2007: http://www.freebsd.org/cgi/query-pr.cgi?pr=112997 Just apply the last patch to share/mk/bsd.cpu.mk and that will fix the problem. Scot