From owner-freebsd-stable@FreeBSD.ORG Thu Dec 10 02:35:17 2009 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 EAC3F106566B for ; Thu, 10 Dec 2009 02:35:17 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (dsl081-172-045.sea1.dsl.speakeasy.net [64.81.172.45]) by mx1.freebsd.org (Postfix) with ESMTP id 971DC8FC08 for ; Thu, 10 Dec 2009 02:35:17 +0000 (UTC) Received: from webmail.1command.com (localhost.1command.com [127.0.0.1]) by mail.1command.com (8.13.3/8.13.3) with ESMTP id nBA2Z9qP063540 for ; Wed, 9 Dec 2009 18:35:15 -0800 (PST) (envelope-from chris#@1command.com) Received: from hitme.hitometer.net ([64.81.172.194]) (Local authenticated user inf0s) by webmail.1command.com with HTTP; Wed, 9 Dec 2009 18:35:15 -0800 (PST) Message-ID: <6b7e224d62eac69ecb90c7d93f71f12e.HRCIM@webmail.1command.com> In-Reply-To: <200912100033.31850.pieter@degoeje.nl> References: <20091209193239.88ED31CC0C@ptavv.es.net> <200912092055.20383.pieter@degoeje.nl> <4B202135.8040409@yahoo.it> <200912100033.31850.pieter@degoeje.nl> Date: Wed, 9 Dec 2009 18:35:15 -0800 (PST) From: "Chris H" To: freebsd-stable@freebsd.org User-Agent: HRC Internet Messaging/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: RELENG_8 buildworld broken? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2009 02:35:18 -0000 On Wed, December 9, 2009 3:33 pm, Pieter de Goeje wrote: > On Wednesday 09 December 2009 23:14:13 ocean wrote: > >> Pieter de Goeje wrote: >> >>> Actually, the way you specified CFLAGS overrides CPUTYPE. AFAIK you >>> should set CFLAGS/CPUTYPE like this: CPUTYPE?=.... >>> CFLAGS+=... >>> >>> >>> Though bothering with CPUTYPE or CFLAGS is actually a waste of time if >>> you ask me. I've never observed any measurable improvement in the speed of >>> the system by setting these. Note that most ports which DO benefit from >>> specialized CFLAGS (mplayer comes to mind) have an option called >>> WITH_OPTIMIZED_CFLAGS. >>> >> >> i specified it with CPUTYPE?=... and wasn't working for buildworld, had to add >> it in CFLAGS. also doing "make buildworld CPUTYPE=..." didn't work. > It works for me. Just tried with CPUTYPE?=nocona and CFLAGS+=-O3 which > resulted in these CFLAGS: -O2 -pipe -O3 -march=nocona when building tcsh for > example. Not everything build during buildworld honors these settings btw. > > > My point still stands though, I can't see how any of the base tools would > benefit from higher optimization levels. The only thing that could possibly > benefit is the kernel, but the kernel uses COPTFLAGS (and CPUTYPE). I think OPENSSL is another. I have always polluted /etc/make.conf for this purpose. As memory serves, the following was the "advised" method. For example I use: make.conf: CPUTYPE?=cray bulildworld && kernel: make -DALWAYS_CHECK_MAKE buildworld && kernel Still works for me ( <=7-RELEASE; 8_RELEASE is building as I write this ). --Chris H > >> >> on my (old) notebook i noticed good improvements in the boot process, it was >> taking lot of time to start maybe one minute, with a recompiled kernel with >> ipv6. without ipv6 with tweaked CFLAGS boots in less than 30 seconds (~24 >> seconds). > Most likely the difference was cause by leaving out IPv6, not by the CFLAGS. > > > - Pieter > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > >