From owner-freebsd-questions@FreeBSD.ORG Tue Feb 21 15:22:51 2006 Return-Path: X-Original-To: freebsd-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 A688616A422 for ; Tue, 21 Feb 2006 15:22:51 +0000 (GMT) (envelope-from duncan.fbsd@gmail.com) Received: from smtp105.sbc.mail.re2.yahoo.com (smtp105.sbc.mail.re2.yahoo.com [68.142.229.100]) by mx1.FreeBSD.org (Postfix) with SMTP id DECDF43D4C for ; Tue, 21 Feb 2006 15:22:50 +0000 (GMT) (envelope-from duncan.fbsd@gmail.com) Received: (qmail 44969 invoked from network); 21 Feb 2006 15:22:46 -0000 Received: from unknown (HELO pres1750.mylan.net) (donaldj@ameritech.net@68.248.238.36 with plain) by smtp105.sbc.mail.re2.yahoo.com with SMTP; 21 Feb 2006 15:22:46 -0000 From: "Donald J. O'Neill" To: freebsd-questions@freebsd.org Date: Tue, 21 Feb 2006 09:22:38 -0600 User-Agent: KMail/1.9.1 References: <7.0.1.0.2.20060221103409.021a8808@broadpark.no> <43FAFBDC.2000403@dial.pipex.com> In-Reply-To: <43FAFBDC.2000403@dial.pipex.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200602210922.38445.duncan.fbsd@gmail.com> Cc: Alex Zbyslaw 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 15:22:51 -0000 On Tuesday 21 February 2006 05:39, 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=3D'"/bin/csh"'... > Mine: > cc -E -O -pipe -I. -I/usr/src/bin/csh > -I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL=3D'"/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. > Hello Kristian, Have you ever been able to do a buildworld sequence? What version of=20 =46reeBSD are you trying to work with? What does your make.conf look=20 like? How about your /conf/ARBA (your custom kernel config)? What do=20 you have in your /etc/cvsupfile? In my make.conf I use: CFLAGS=3D -O2 -pipe COPTFLAGS=3D -O2 -pipe That's worked for years, well, a very long time anyway.=20 Comparing the same section in your script run, to mine, which was run=20 last night: yours: =3D=3D=3D> bin/csh (obj,build-tools) grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh/sh.err.c | grep=20 '^#define' >> sh.err.h cc -E -O2 -fno-strict-aliasing -pipe -I. -I/usr/src/bin/csh=20 =2DI/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL=3D'"/bin/csh"' =20 =2DI/usr/obj/usr/src/tmp/legacy/usr/include /usr/src/bin/csh/../../contrib /tcsh/tc.const.c /usr/src/bin/csh/../../contrib/tcsh/sh.char.h /usr/src /bin/csh/config.h /usr/src/bin/csh/../../contrib/tcsh/config_f.h /usr/src /bin/csh/../../contrib/tcsh/sh.types.h sh.err.h -D_h_tc_const | grep=20 'Char STR' | sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1 [];/' | sort >> tc.const.h mine: =3D=3D=3D> bin/csh (obj,build-tools) grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh/sh.err.c | grep=20 '^#define' >> sh.err.h cc -E -O2 -pipe -I. -I/usr/src/bin/csh=20 =2DI/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL=3D'"/bin/csh"' =20 =2DI/usr/obj/usr/src/tmp/legacy/usr/include /usr/src/bin/csh/../../contrib /tcsh/tc.const.c /usr/src/bin/csh/../../contrib/tcsh/sh.char.h /usr/src /bin/csh/config.h /usr/src/bin/csh/../../contrib/tcsh/config_f.h /usr/src /bin/csh/../../contrib/tcsh/sh.types.h sh.err.h -D_h_tc_const | grep=20 'Char STR' | sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1 [];/' | sort >> tc.const.h They look very similar except: you have -fno-stict-aliasing and I don't;=20 yours starts erroring before buildworld completes (looks to be about a=20 fourth of the way through) and mine builds to completion. Your buildworld sequence appears to be a little lacking - either in the=20 detail you gave, or because some things are missing. The buildworld sequence I us is: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D (I use the alternate step 10 when I run the sequence) 1)Script /home/script/buildworld/bw-=E2=80=9Ddate run=E2=80=9D 2)cd /usr/obj pwd 3)chflags -R noschg * 4)rm -rf * 5)cd /usr/src pwd make cleandir make cleandir 6)make buildworld && make buildkernel KERNCONF=3Dcustomconfname 7)make installkernel KERNCONF=3Dcustomconfname 8)exit 9)shutdown now 10) to accept default location of sh alternate step 10 a) shutdown -r now b) at boot menu <6> c) boot -s d) fsck -p e) mount -u / f) mount -a -t ufs g) swapon -a h) cd /usr/src i)adjkerntz -i 11) script /home/script/buildworld/iw-=E2=80=9Ddate run" 12) cd /usr/src pwd 13) mergemaster -p 14) make installworld 15) mergemaster -i =E2=80=9Cinstall everything=E2=80=9D 16) exit 17)shutdown -r now =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D This should help a bit. Don