Subject: Building a -current (20020202) kernel chokes?
To: None <current-users@netbsd.org>
From: gabriel rosenkoetter <gr@eclipsed.net>
List: current-users
Date: 02/04/2002 07:31:48
--20Lf8O5TUnq2EaQf
Content-Type: multipart/mixed; boundary="NZYMWYzz24GaIu3e"
Content-Disposition: inline
--NZYMWYzz24GaIu3e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Anyone running into trouble building kernels in a source tree using
the new toolchain? I get literal references to $TOOLDIR/bin/tsort
and $TOOLDIR/bin/lorder (both of which ought have an nb prepended if
they're going to work). sym linking these to the nb versions just
devolves all the compat stuff into chaos, so I'm thinking there's
a larger underlying problem.
Note that all of this is after a build.sh -R <foo> that (mostly)
suceeded. (It ran out of space on a floppy, so I just built the rest
of the sets by cd /usr/src/distrib/sets && make sets.) This means
that the snapshot process successfully built GENERIC not once but
five times. To whit:
grappa:binary/sets% ls -l kern-GENERIC*
-rw-r--r-- 1 root wheel 2660069 Feb 3 07:11 kern-GENERIC.tgz
-rw-r--r-- 1 root wheel 2687147 Feb 3 07:11 kern-GENERIC_DIAGNOSTIC.tgz
-rw-r--r-- 1 root wheel 1912632 Feb 3 07:11 kern-GENERIC_LAPTOP.tgz
-rw-r--r-- 1 root wheel 767164 Feb 3 07:12 kern-GENERIC_PS2TINY.tgz
-rw-r--r-- 1 root wheel 710162 Feb 3 07:11 kern-GENERIC_TINY.tgz
Here's what happens without my mucking around, maybe someone can
toss a clue my way. (Note that $TOOLDIR/bin is in my $PATH. Yes,
it's the right one. Yes, the nb* utilities I call are the ones
built in bootstrapping for the snapshot I just built.)
grappa:i386/compile# pwd
/usr/src/sys/arch/i386/compile
grappa:i386/compile# rm -rf GENERIC
grappa:i386/conf# pwd
/usr/src/sys/arch/i386/conf
grappa:i386/conf# nbconfig GENERIC
Don't forget to run "make depend"
grappa:i386/compile# cd GENERIC
grappa:compile/GENERIC# nbmake depend &> /tmp/depend-2002020402 && \
nbmake &> /tmp/kernel-2002020402
The depend completes without errors. Here's the tail of
/tmp/kernel-2002020402:
[...]
/usr/obj/tools/bin/i386--netbsdelf-gcc -ffreestanding -O2 -Werror -Wall -W=
no-ma
in -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitiali=
zed -
I../../../../../../lib/libkern/arch/i386 -Di386 -I../../. -I../../../../../=
../ar
ch -I../../../../../.. -nostdinc -DLKM -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_=
OPT =20
-c /usr/src/sys/arch/i386/compile/GENERIC/lib/kern/../../../../../../lib/l=
ibker
n/_que.c
building standard kern library
/usr/obj/tools/bin/tsort: not found
/usr/obj/tools/bin/lorder: not found
/usr/obj/tools/bin/i386--netbsdelf-ld: no input files
*** Error code 1
Stop.
nbmake: stopped in /usr/src/sys/arch/i386/compile/GENERIC/lib/kern
*** Error code 1
Stop.
nbmake: stopped in /usr/src/sys/arch/i386/compile/GENERIC
Fwiw, this is all with 20020202 (afternoon, EST) sources. And on
this (though that shouldn't matter anymore with the bootstrapped
tools... right?):
NetBSD grappa 1.5Y NetBSD 1.5Y (GRAPPA) #2: Fri Nov 23 11:25:03 EST 2001 =
gr@grappa:/usr/src/sys/arch/i386/compile/GRAPPA i386
My /etc/mk.conf is attached. Note that I have NOT modified GENERIC,
so there shouldn't be a need to post my kernel config. I've got:
# $NetBSD: GENERIC,v 1.469 2002/02/01 15:17:04 wiz Exp $
You might note the EXTRA_KERNELS line in my mk.conf. I built the
snapshot with that commented. I'm going to start a new snapshot
with it set before I leave for work, hoping that this will magically
get me the kernels I need to actually get on with my life. But if
that works, I *really* want to know why.
--=20
gabriel rosenkoetter
gr@eclipsed.net
--NZYMWYzz24GaIu3e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="grappa-etc-mk.conf"
# For src... some of these make pkgsrc freak out, so:
.ifndef BSD_PKG_MK
DESTDIR=/build/i386
#DESTDIR=/build/macppc
#DESTDIR=/build/mac68k
RELEASEDIR=/release/20020202
#RELEASEDIR=/release/20011122-macppc
#RELEASEDIR=/release/20011122-mac68k
TOOLDIR=/usr/obj/tools
MKTOOLS=always
USETOOLS=yes
#USE_NEW_TOOLCHAIN=yes
MKOBJ=yes
MKOBJDIRS=yes
#MKHOSTOBJ=yes
# big honking obj link names; only necessary if we're cross-compiling
# from this tree to a given target on multiple (differently-arched)
# hosts
OBJMACHINE=yes
#NOCLEANDIR=1
#UPDATE=1
#CFLAGS+=-g
.endif
# For src/sys
EXTRA_KERNELS=GRAPPA BITCHBOX
# For pkgsrc
.ifdef BSD_PKG_MK
ACCEPTABLE_LICENSES+=fee-based-commercial-use opera-license no-commercial-use
ACCEPTABLE_LICENSES+=adobe-acrobat-license jdk-license shareware no-profit
.endif
--NZYMWYzz24GaIu3e--
--20Lf8O5TUnq2EaQf
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjxefzQACgkQ9ehacAz5CRqN7ACffmZ/xVtaBUWYszjO40TVfCYc
zUgAnjHY8pwIFzxWEJIcpWVPOlvHcy9q
=kUnO
-----END PGP SIGNATURE-----
--20Lf8O5TUnq2EaQf--