From owner-freebsd-questions@FreeBSD.ORG Mon Jan 2 12:16:22 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C796D106566B for ; Mon, 2 Jan 2012 12:16:22 +0000 (UTC) (envelope-from coco@executive-computing.de) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 7E7428FC12 for ; Mon, 2 Jan 2012 12:16:22 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id C45AF8B1423; Mon, 2 Jan 2012 13:16:21 +0100 (CET) X-Spam-Flag: NO X-Spam-Score: -100.963 X-Spam-Level: X-Spam-Status: No, score=-100.963 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=0.037, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id 93pfZoUdMiBf; Mon, 2 Jan 2012 13:16:19 +0100 (CET) Received: from [192.168.100.30] (p54B0AD46.dip.t-dialin.net [84.176.173.70]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id A0C6F8B141C; Mon, 2 Jan 2012 13:16:19 +0100 (CET) Message-ID: <4F019FFF.5020909@executive-computing.de> Date: Mon, 02 Jan 2012 13:15:59 +0100 From: Marco Steinbach User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Janos Dohanics References: <20111231135633.02c92213.web@3dresearch.com> <4F014C4D.80001@executive-computing.de> <20120102050430.f2074796.web@3dresearch.com> In-Reply-To: <20120102050430.f2074796.web@3dresearch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: buildworld error 8.2-STABLE amd64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2012 12:16:22 -0000 Janos Dohanics wrote on 02.01.2012 11:04: > On Mon, 02 Jan 2012 07:18:53 +0100 > Marco Steinbach wrote: > >> Janos Dohanics wrote on 31.12.2011 19:56: >>> Buildworld stopped with this error (with updated source): >>> >>> [...] >>> cc "-O3" -DNEED_SOLARIS_BOOLEAN >> [...] >>> I have posted the build log at >>> http://wwwp.3dresearch.com/ALMAVIVA2011123101_buildworld >>> >>> Would you please advise? >> Quoting /usr/share/examples/etc/make.conf: >> >> # CFLAGS controls the compiler settings used when compiling C code. >> # Note that optimization settings other than -O and -O2 are not >> # recommended or supported for compiling the world or the kernel - >> # please revert any nonstandard optimization settings to "-O" or "-O2 >> # -fno-strict-aliasing" before submitting bug reports without patches >> # to the developers. >> >> The error you're seeing is a result from using O3 for building the >> source in question -- At least my 8.2-STABLE ran into the same >> problem, once I used O3, instead of the default '-O2 -pipe'. >> >> MfG CoCo > > Thank you, there was indeed the line CFLAGS="-O3" in make.conf, after I > have commented it out, I could build world. > > I'm wondering how was my make.conf changed though; I'm sure I did not > add CFLAGS="-O3" - is it possible that one of the ports have added this? Although, as far as I can tell, not explicitly forbidden in the porter's handbook, I think that to be highly unlikely in the case of CFLAGS. The least I'd expect would be some kind notice, if so intrusive a change is done deliberately. If I'd suspect a port fiddling with /etc/make.conf, I'd probably go looking for entries carrying a timestamp close to /etc/make.confs in /var/db/pkg. Of course, this largely depends on what happened in between the time of actual modification and me noticing, but I think that's the first thing I'd do. MfG CoCo