From owner-freebsd-stable@FreeBSD.ORG Fri Jan 14 00:36:56 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0368616A4CE for ; Fri, 14 Jan 2005 00:36:56 +0000 (GMT) Received: from avscan2.sentex.ca (avscan2.sentex.ca [199.212.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4638843D45 for ; Fri, 14 Jan 2005 00:36:55 +0000 (GMT) (envelope-from mike@sentex.net) Received: from localhost (localhost.sentex.ca [127.0.0.1]) by avscan2.sentex.ca (8.12.11/8.12.11) with ESMTP id j0E0auvr014112; Thu, 13 Jan 2005 19:36:56 -0500 (EST) (envelope-from mike@sentex.net) Received: from avscan2.sentex.ca ([127.0.0.1]) by localhost (avscan2.sentex.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13017-10; Thu, 13 Jan 2005 19:36:55 -0500 (EST) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by avscan2.sentex.ca (8.12.11/8.12.11) with ESMTP id j0E0atc3013948; Thu, 13 Jan 2005 19:36:55 -0500 (EST) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.12.11/8.12.11) with ESMTP id j0E0alTb021743; Thu, 13 Jan 2005 19:36:47 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <6.2.0.14.0.20050113193132.042966c8@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.0.14 Date: Thu, 13 Jan 2005 19:38:27 -0500 To: Ulrich Spoerlein From: Mike Tancsa In-Reply-To: <20050113225145.GA781@galgenberg.net> References: <6.2.0.14.0.20050112173437.089758a0@64.7.153.2> <20050113225145.GA781@galgenberg.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at avscan2b cc: freebsd-stable@freebsd.org Subject: Re: CFLAGS=-O2 -pipe problems in RELENG_5 ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 00:36:56 -0000 At 05:51 PM 13/01/2005, Ulrich Spoerlein wrote: >On Wed, 12.01.2005 at 17:38:56 -0500, Mike Tancsa wrote: > > I did a buildworld /buildkernel with a RELENG_5 box using the following > > flags > > > > > > CPUTYPE=i686 > > KERNCONF=recycle > > CFLAGS=-O2 -pipe > > COPTFLAGS=-O2 -pipe > > NO_MODULES=true # do not build modules with the kernel > > MODULES_WITH_WORLD=true # do not build modules when building kernel > >I'm using -Os -pipe ever since installing 5.x after the gcc update. >Haven't encountered any problem so far.. There are some differences between O2 and Os according to the man page. Are you using that on your kernel and for buildworld ? ICEs (internal compiler errors) usually point to serious hardware >problems. Check that your RAM is OK and the CPU not overheating. heating is not an issue. I have changed the power supply and RAM just in case. Like I said, if I get rid of the O2 optimization and just use -O it works just fine. I have run into bad hardware where make buildworld exposes the problems, but I had never been able to "work around" it by changing to -O instead of O2. I let the box run over night building world 8 times with -j2 through -j5 and all worked just fine. Looking at /usr/src/UPDATING, it appears O2 does not work. However, that seems to contradict statements on the list that it works. 20040728: System compiler has been upgraded to GCC 3.4.2-pre. As with any major compiler upgrade, there are several issues to be aware of. GCC 3.4.x has broken C++ ABI compatibility with previous releases yet again and users will have to rebuild all their C++ programs with the new compiler. A new unit-at-a-time optimization mode, which is default in this compiler release, is more aggressive in removing unused static symbols. This is the likely cause of 'make buildworld' breakages with non-default CFLAGS where optimization level is set to -O2 or higher. ---Mike