From owner-freebsd-ports@FreeBSD.ORG Sun Jul 3 17:27:05 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 C204216A41C; Sun, 3 Jul 2005 17:27:05 +0000 (GMT) (envelope-from dmp@bitfreak.org) Received: from mail.bitfreak.org (mail.bitfreak.org [65.75.198.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C1E743D46; Sun, 3 Jul 2005 17:27:05 +0000 (GMT) (envelope-from dmp@bitfreak.org) Received: from SMILEY (mail.bitfreak.org [65.75.198.146]) by mail.bitfreak.org (Postfix) with ESMTP id 62CC019F3B; Sun, 3 Jul 2005 10:29:02 -0700 (PDT) From: "Darren Pilgrim" To: "'Kris Kennaway'" Date: Sun, 3 Jul 2005 10:27:04 -0700 Message-ID: <001401c57ff4$6f429730$0b2a15ac@SMILEY> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 In-Reply-To: <20050703055842.GA1933@xor.obsecurity.org> Importance: Normal Cc: ports@FreeBSD.org, 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.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2005 17:27:05 -0000 From: Kris Kennaway > On Sat, Jul 02, 2005 at 09:47:44PM -0700, Adam Weinberger wrote: > > Kris Kennaway wrote: > > >About a week ago des changed the default value of CFLAGS to "-O2 > > >-pipe" on FreeBSD 6.0-CURRENT. While this is believed to be safe > > >for compiling world + kernel on -CURRENT thesedays (because the > > >aliasing bugs that are exposed with -O2 have been fixed), it's > > >definitely *not* safe for compiling many ports (there are at > > >least 350 ports that emit warnings about aliasing, and would > > >probably have runtime errors when compiled with -O2; moreover, a > > >number of ports fail to even build with -O2). > > > > > >Therefore, if you compile ports on FreeBSD 6.0, you should set > > >CFLAGS=-O -pipe in your /etc/make.conf for now, until we can > > >resolve this problem more satisfactorily. <...> > > P.S. The problem is only if you build without > -fno-strict-alias, which is the default now. Is that to say, then, that ports will build and run safely if you use CFLAGS=-O2 -pipe -fno-strict-alias?