From owner-freebsd-questions@FreeBSD.ORG Tue Feb 21 14:47:04 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09BE116A420 for ; Tue, 21 Feb 2006 14:47:04 +0000 (GMT) (envelope-from vaaf@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id E192543D75 for ; Tue, 21 Feb 2006 14:46:55 +0000 (GMT) (envelope-from vaaf@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IV100EGUL26T560@osl1smout1.broadpark.no> for questions@freebsd.org; Tue, 21 Feb 2006 15:46:54 +0100 (CET) Received: from urban.broadpark.no ([213.187.181.70]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IV100582L24CS30@osl1sminn1.broadpark.no> for questions@freebsd.org; Tue, 21 Feb 2006 15:46:54 +0100 (CET) Date: Tue, 21 Feb 2006 15:46:54 +0100 From: Kristian Vaaf In-reply-to: <43FAFBDC.2000403@dial.pipex.com> To: Alex Zbyslaw Message-id: <7.0.1.0.2.20060221154602.00ed0868@broadpark.no> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <7.0.1.0.2.20060221103409.021a8808@broadpark.no> <43FAFBDC.2000403@dial.pipex.com> Cc: questions@freebsd.org Subject: Re: Haven't been able to make world in about a year 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: Tue, 21 Feb 2006 14:47:04 -0000 At 12:39 21.02.2006, Alex Zbyslaw wrote: >Kristian Vaaf wrote: > >> I don't know what's wrong. But all my makes error out. I've tried >> over and over again. And sent about a dozen e-mails to this list. >> >> http://www.home.no/hedhnta/result.txt > >This is my supposition. There have been many messages to this list >which clearly say that advanced gcc options (like advanced >optmisations) are a bad idea for CFLAGS defaults in make.conf >because they can prevent world/kernel from rebuilding properly. So, >playing spot-the-difference between your compile line which fails, >and my last one which succeeded... > >Yours: >cc -E -O2 -fno-strict-aliasing -pipe -I. -I/usr/src/bin/csh >-I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"'... >Mine: >cc -E -O -pipe -I. -I/usr/src/bin/csh >-I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"'... > >You'll see that your has -O2 and -fno-strict-aliasing while mine has >just -O. So the first thing I would do is to try fixing CFLAGS in >make.conf to get rid of "-fno-strict-aliasing" and change "-O2" to >"-O". I can't say whether one, both or neither is actually wrong, >but mine worked and yours didn't, so at least one of them is a good >potential source for the problem. > >Let us know if it helps. Someone out there undoubdetdly knows which >options are safe to add here, and may even be able to say where they >are documented. > >--Alex > >PS You neglected to mention which version of FreeBSD you were running. >My compile line is from 5.4. Thank you Alex for a very interesting reply. My bad for not mentioning FreeBSD 5.4-STABLE: Wed Sep 21 01:34:15 CEST 2005 All the best, Vaaf