Date: Fri, 20 Jul 2001 16:00:36 -0700 From: Kent Stewart <kstewart@urx.com> To: Sung Nae Cho <sucho2@quasar.phys.vt.edu> Cc: Nuno Teixeira <nuno.mailinglists@pt-quorum.com>, Odhiambo Washington <wash@wananchi.com>, freebsd-stable@FreeBSD.ORG, undergra@vallesnet.org Subject: Re: Kernel compile errors Message-ID: <3B58B814.B83A5B4A@urx.com> References: <Pine.LNX.4.33.0107201751180.5952-100000@quasar.phys.vt.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Sung Nae Cho wrote: > > Hi, > > How does your make.conf file look like? Based on my experience, I've > always had make world failure if I added the "CXXFLAGS+=-fmemoize-lookups > -fsave-memoized" option in the make.conf file. Here's what my make.conf > file looks like: > > CPUTYPE=p2 # Celeron (Mendocino) 500Mhz > CFLAGS=-O -pipe > COPTFLAGS=-O -pipe > COMPAT3X=yes # Needs it for some Linux applications > COMPAT4x=yes > BOOT_COMCONSOLE_SPEED=115200 > XFREE86_VERSION=4 # Using XFree86 4 now > USA_RESIDENT=YES > DOC_LANG=en_US.ISO8859-1 > > After I CVSUP, I run from /usr/src: > make world && make kernel KERNCONF=GENERIC && cp -Rp /etc /etc.old && cd > /dev && ./MAKEDEV all && cd /usr/src/release/sysinstall && make clean && > make install all && /usr/sbin/mergemaster -a && reboot > > You can switch some of the steps. It runs smooth for me. I just > CVSUPdated just now. If you still get compilation problem, then you may > need to CVSUP again when connection isn't too busy. > > I've given up much of the C and C++ optimizations for two reasons: > 1) It gives me too much trouble! Compilation fails too oftern. > 2) I really don't see the performance improvement for my daily usage. > Maybe if I run a serious Physics problem simulation that takes days to > simulate, I might see the enlarged perfromance gap (a couple of hours > difference between the seriously optimized compilation and normally > optimized compilation). But, I doubt I would run such serious simulations > on this 500Mhz laptop! I would need a serious desktop with say fastest > ATHLON available (can't afford non i386 architectures with my TA/RA > salary of $1490/month! Besides, I'd rather prefer 1.2Ghz Athlon over > 500Mhz Alpha **** 1.2Ghz Athlon beats out on 500Mhz Alpha by > slight margin! Even Alpha can't rely on good design alone here (too much > of MHZ gap between 1.2G and 500M)! ***) > > The only thing I modify in my make.conf file is the CPUTYPE and sort.... I just did a cvsup (20 July 20:09 GMT) and then did a buildworld. There was a fix made to if_dc.c at 02:01:26 20 July to fix a bogus '(' that was breaking building a kernel. I hadn't built a kernel.GENERIC since 20 Nov 2000. So, I built it as soon as my buildworld finished. The log produced shows cc -O -pipe -march=pentiumpro -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../include -mpreferred-stack-boundary=2 -c /usr/src/sys/modules/dc/../../pci/if_dc.c ld -r -o if_dc.kld if_dc.o touch __miibus_hack_dep.c cc -shared -O -pipe -march=pentiumpro -D_KERNEL -Wall -Wredundant-decls -Wneste d-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wc ast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../i nclude -mpreferred-stack-boundary=2 -o miibus __miibus_hack_dep.c gensetdefs if_dc.kld My system didn't have any problem building the "dc" driver using a current cvsup. Kent > > Regards, > Sung N. Cho, > Friday, July 20, 2001. > > Dept. of Physics, > Virginia Polytechnic Institute & State University. > > On Fri, 20 Jul 2001, Nuno Teixeira wrote: > > > On Fri, Jul 20, 2001 at 03:45:31PM +0300, Odhiambo Washington wrote: > > > Hi, > > > > > > Someone knows why my kernel compile is failing after a cvsup today? > > > > > > [snip] > > > ld -Bshareable -o if_cue.ko setdef0.o if_cue.kld setdef1.o > > > ===> dc > > > cc -nostdinc -O -pipe -D_KERNEL -Wall -Wredundant-decls > > > -Wnested-externs -Wst > > > rict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > > > -ffo > > > rmat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../include > > > -mpref > > > erred-stack-boundary=2 -c /usr/src/sys/modules/dc/../../pci/if_dc.c > > > *** Error code 1 > > > Stop in /usr/src/sys/modules/dc. > > > *** Error code 1 > > > Stop in /usr/src/sys/modules. > > > *** Error code 1 > > > Stop in /usr/obj/usr/src/sys/Kern4.x. > > > *** Error code 1 > > > Stop in /usr/src. > > > *** Error code 1 > > > Stop in /usr/src. > > > [snip] > > > > > > Thanks > > > > > > -Wash > > > > > > -- > > > Odhiambo Washington > > > Wananchi Online Ltd., > > > wash@wananchi.com 1st Flr Loita Hse. > > > Tel: 254 2 313985 Loita Street., > > > Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE. > > > > > > The hardest of all is learning to be a well of affection, and not a fountain; > > > to show them we love them not when we feel like it, but when they do. > > > -Nan Fairbrother > > > > Hi, > > > > I have the same problem today when I trying to make buildkernel. > > > > Let's wait for fix. > > > > Bye, > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message -- Kent Stewart Richland, WA Cool site http://www.bmwfilms.com mailto:kbstew99@hotmail.com http://kstewart.urx.com/kstewart/index.html http://daily.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B58B814.B83A5B4A>