Date: Tue, 21 Feb 2006 17:08:54 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Kristian Vaaf <vaaf@broadpark.no> Cc: questions@freebsd.org, Alex Zbyslaw <xfb52@dial.pipex.com> Subject: Re: Haven't been able to make world in about a year Message-ID: <20060221150854.GC27905@flame.pc> In-Reply-To: <7.0.1.0.2.20060221154602.00ed0868@broadpark.no> References: <7.0.1.0.2.20060221103409.021a8808@broadpark.no> <43FAFBDC.2000403@dial.pipex.com> <7.0.1.0.2.20060221154602.00ed0868@broadpark.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-02-21 15:46, Kristian Vaaf <vaaf@broadpark.no> wrote: > 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 Have you, by any chance, set CFLAGS or CPPFLAGS in the environment of your root user? If yes, then it's a bad idea. Unset both of these and try rebuilding from a clean checkout and a clean /usr/obj object tree.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060221150854.GC27905>