From owner-freebsd-current@FreeBSD.ORG Mon Jul 12 09:13:44 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 997D116A4CE for ; Mon, 12 Jul 2004 09:13:44 +0000 (GMT) Received: from smtp001.bizmail.yahoo.com (smtp001.bizmail.yahoo.com [216.136.172.125]) by mx1.FreeBSD.org (Postfix) with SMTP id 6D67343D31 for ; Mon, 12 Jul 2004 09:13:44 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@70.240.179.251 with login) by smtp001.bizmail.yahoo.com with SMTP; 12 Jul 2004 09:13:44 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 4B6C461E2; Mon, 12 Jul 2004 04:13:43 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09937-03; Mon, 12 Jul 2004 04:13:42 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id F0F916156; Mon, 12 Jul 2004 04:13:41 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.12.11/8.12.11) with ESMTP id i6C9Dege024433; Mon, 12 Jul 2004 04:13:41 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <40F25644.1030001@alumni.rice.edu> Date: Mon, 12 Jul 2004 04:13:40 -0500 From: Jon Noack User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040629) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ilker.ozupak@emu.edu.tr References: <200407121157.01181.ilker.ozupak@emu.edu.tr> In-Reply-To: <200407121157.01181.ilker.ozupak@emu.edu.tr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at noacks.org cc: freebsd-current@freebsd.org Subject: Re: buildworld fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 09:13:44 -0000 On 07/12/04 03:57, Ilker OZUPAK wrote: > when i try to buildworld using "CPUTYPE=p4" i get errors in > lib/libc/gen/getnetgrant.c. i got the same error in both > -march=pentium4 and mcpu=pentium4 cases > > CFLAGS= -O3 -pipe -mcpu=pentium4 Um... have you tried not using -O3? As far as I know, -O2 and below should work. I use the following: CPUTYPE= p4 CFLAGS= -Os -pipe COPTFLAGS= -Os -pipe Although it is slightly broken (don't use it with (xfree86|xorg)-libraries, for example), I find -Os gives the best performance on my p4. In case you haven't heard of it, -Os includes all the optimizations from -O2 that don't increase code size and additionally optimizes for size. I think the extra performance over -O2 is due to better cache hit rates, but that's just idle speculation. Perhaps I don't know something everyone else knows, but I'm surprised more people don't benchmark -Os. Jon