From owner-freebsd-ports@FreeBSD.ORG Fri Nov 5 22:43:40 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D99A16A4CE; Fri, 5 Nov 2004 22:43:40 +0000 (GMT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74BE343D31; Fri, 5 Nov 2004 22:43:39 +0000 (GMT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 36B0B5310; Fri, 5 Nov 2004 23:43:38 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id B833F530A; Fri, 5 Nov 2004 23:43:30 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 662C2B861; Fri, 5 Nov 2004 23:43:30 +0100 (CET) To: Kris Kennaway References: <20041102222000.GA65845@xor.obsecurity.org> <639522fe041103144732ea6683@mail.gmail.com> <1099522198.59328.4.camel@blueheron.ahze.net> <200411050919.09547.freebsd.nospam@mekanix.dk> <20041105215220.GA32961@xor.obsecurity.org> <7CBFDBE9-2F75-11D9-8D06-000A958C81C6@ahze.net> <20041105221020.GA39140@xor.obsecurity.org> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Fri, 05 Nov 2004 23:43:30 +0100 In-Reply-To: <20041105221020.GA39140@xor.obsecurity.org> (Kris Kennaway's message of "Fri, 5 Nov 2004 14:10:20 -0800") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.64 cc: FreeBSD ports cc: Michael Johnson cc: current@freebsd.org Subject: Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 22:43:40 -0000 Kris Kennaway writes: > On Fri, Nov 05, 2004 at 04:56:03PM -0500, Michael Johnson wrote: > > Is there a list of what's broke with -O2 in ports anywhere? > Some of the bugs are probably silent. For example, different versions > of gcc sometimes have bugs at higher optimization levels or with > certain CPUTYPE values. As far as we know, that is not the case for FreeBSD 5.3 and 6.0. > -O2 will also cause build errors in other ways, e.g. if functions in a > library are improperly declared static and not referenced internally > (but are referenced externally by another application trying to link > with the library), since -O2 may optimize them out completely. That's crap. You can't reference a static symbol outside your own compilation unit. That's the whole point with declaring it static. The problem with arj is that it uses a tool to embed a checksum in each binary, and the placeholder for that checksum was declared static but never referenced, so gcc optimized it out and the tool couldn't find it. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no