From owner-freebsd-ports@FreeBSD.ORG Sun Jul 3 00:52:54 2005 Return-Path: X-Original-To: ports@freebsd.org 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 7ED8216A43E; Sun, 3 Jul 2005 00:52:44 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id A87604433B; Sun, 3 Jul 2005 00:32:55 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 12909656A4; Sat, 2 Jul 2005 17:29:30 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id 658595C9CB for ; Fri, 5 Nov 2004 14:43:59 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id BC3C156128; Fri, 5 Nov 2004 22:43:47 +0000 (GMT) (envelope-from owner-freebsd-current@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 5246616A4F7; Fri, 5 Nov 2004 22:43:44 +0000 (GMT) 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 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?=) 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-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Sender: owner-freebsd-current@freebsd.org Errors-To: owner-freebsd-current@freebsd.org X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on elvis.mu.org X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.0 X-Spam-Level: Cc: FreeBSD ports , Michael Johnson , current@freebsd.org Subject: Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0 X-BeenThere: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 00:52:54 -0000 X-Original-Date: Fri, 05 Nov 2004 23:43:30 +0100 X-List-Received-Date: Sun, 03 Jul 2005 00:52:54 -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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"