Subject: Problem making kernel
To: None <port-i386@netbsd.org>
From: Joe Abley <jabley@patho.gen.nz>
List: port-i386
Date: 11/14/1999 15:41:45
[I am a NetBSD newbie. Many apologies if there is a more suitable
stupid-questions list elsewhere (please feel free to point me at it)]

I just installed 1.4.1/i386 on an IBM ThinkPad 380. Everything works
just fine, except that when I attempt to configure a kernel, make
bombs out on me. This is with the as-shipped GENERIC kernel config,
by way of illustration:

  nomad# cd /sys/arch/i386/conf
  nomad# config GENERIC
  Don't forget to run "make depend"
  nomad# cd ../compile/GENERIC
  nomad# make depend
  *** Error code 2

  Stop.
  nomad# make
  sh ../../../../kern/genassym.sh cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes  -Wpointer-arith -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DDIAGNOSTIC -DNS -DMAXUSERS=32 -D_KERNEL -Di386   < ../../../../arch/i386/i386/genassym.cf > assym.h.tmp &&  mv -f assym.h.tmp assym.h
  *** Error code 2

  Stop.
  nomad# 

I tried turning on some debugging make, since "Stop." seemed a little
terse for me, and found this:

  nomad# make -dA depend

  [... vast great screeds of debug snipped to preserve sanity ...]

  Searching for ../../../../arch/i386/i386/genassym.cf...failed. Trying subdirectories...failed. Looking for "../../../../arch/i386/i386/genassym.cf"...Caching  3:23:45 Mar 24, 1999 for ../../../../arch/i386/i386/genassym.cf
  ../../../../arch/i386/i386/genassym.cf:@ = ../../../../arch/i386/i386/genassym.cf
  ../../../../arch/i386/i386/genassym.cf:* = genassym.cf
  Examining __always_make_kernlib...Searching for __always_make_kernlib...failed.
  non-existent...non-existent and no sources...out-of-date.
  __always_make_kernlib:? = 
  __always_make_kernlib:> = 
  *** Error code 2

  Stop.
  nomad# 

The kernel source came from

  ftp://ftp.au.netbsd.org/pub/NetBSD/NetBSD-1.4.1/source/sets/syssrc.tgz

and I unpacked it using

  nomad# cd /
  nomad# tar xzfp /home/jabley/syssrc.tgz

The md5 for this file (5bc07373388f1d93d9fe63bd25295b64) matches the
one in ftp://ftp.au.netbsd.org/pub/NetBSD/NetBSD-1.4.1/source/sets/MD5.

I'm all out of ideas... I can't see anything in the mailing list
archives indicating a kernel compile problem in 1.4.1, and I can't
see any patches. Any assistance would be appreciated :)


Joe

-- 
När det regnar flyglar från himlen så har de fattiga inga noter.