Subject: Help newbie fix a build failure?
To: None <netbsd-users@netbsd.org>
From: Kirk Strauser <kirk@strauser.com>
List: netbsd-users
Date: 05/19/2005 07:04:47
--nextPart1389038.BNgc7iLfHL
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I installed 2.0.2 on a K6-3 laptop, and used cvs to checkout a -stable
src tree.  Following the advice from http://www.home.unix-ag.org/bmeurer/Ne=
tBSD/tips.html,
my /etc/mk.conf looks like:

COMMONFLAGS?=3D-march=3Dk6-3 -O2 -pipe
COPTS:=3D${COMMONFLAGS} ${COPTS:C/-O[0-9]*//g}
CFLAGS:=3D${COMMONFLAGS} ${CFLAGS:C/-O[0-9]*//g}
X11_TYPE=3Dxorg

=2Eif exists(/usr/pkg/bin/sudo)
SU_CMD=3D/usr/pkg/bin/sudo /bin/sh -c
=2Eendif

I've made some tiny changes to the source to include my wireless PCMCIA
card, but have been able to manually build a working kernel incorporating
those changes so I'm pretty sure that part's OK.

Anyway, when I tried to run "./build.sh -U -u build", it fails with these
errors.  Any idea what may be causing them?  If I fix that problem, how
can I resume the build were it left off (I think it was almost done, and
this is a pretty slow machine)?

#    create  cat/.depend
rm -f .depend
CC=3D/usr/src/tooldir.NetBSD-2.0.2_STABLE-i386/bin/i386--netbsdelf-gcc /usr=
/src/tooldir.NetBSD-2.0.2_STABLE-i386/bin/nbmkdep -d -f .depen
d -s .o\ .ln cat.d
#   compile  cat/cat.o
/usr/src/tooldir.NetBSD-2.0.2_STABLE-i386/bin/i386--netbsdelf-gcc -march=3D=
k6-3 -O2 -pipe s -march=3Dk6-3 -O2 -pipe   -Wall -Wstrict-protot
ypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditiona=
l -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow  -Werro
r    -nostdinc -isystem /usr/src/destdir.i386/usr/include  -c    /usr/src/b=
in/cat/cat.c
i386--netbsdelf-gcc: s: No such file or directory

*** Failed target:  cat.o
*** Failed command: /usr/src/tooldir.NetBSD-2.0.2_STABLE-i386/bin/i386--net=
bsdelf-gcc -march=3Dk6-3 -O2 -pipe s -march=3Dk6-3 -O2 -pipe -Wa
ll -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compa=
re -Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitc
h -Wshadow -Werror -nostdinc -isystem /usr/src/destdir.i386/usr/include -c =
/usr/src/bin/cat/cat.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src/rescue/obj/cat

*** Failed target:  cat_make
*** Failed command: if [ \! -d cat ]; then mkdir cat; fi; cd cat; printf ".=
PATH: /usr/src/bin/cat\n.CURDIR:=3D /usr/src/bin/cat\n.include
 \"\${.CURDIR}/Makefile\"\n" | /usr/src/tooldir.NetBSD-2.0.2_STABLE-i386/bi=
n/nbmake -f- CRUNCHEDPROG=3D1 DBG=3D"-Os" depend cat.o
*** Error code 1

Stop.
nbmake: stopped in /usr/src/rescue/obj

*** Failed target:  rescue
*** Failed command: RESCUEDIR=3D/rescue /usr/src/tooldir.NetBSD-2.0.2_STABL=
E-i386/bin/nbmake -f rescue.mk rescue.crunched
*** Error code 1

Stop.
nbmake: stopped in /usr/src/rescue

*** Failed target:  dependall
*** Failed command: cd /usr/src/rescue; /usr/src/tooldir.NetBSD-2.0.2_STABL=
E-i386/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/rescue

*** Failed target:  dependall-rescue
*** Failed command: targ=3Ddependall;dir=3Drescue; case "$dir" in /*) echo =
"$targ =3D=3D=3D> $dir"; cd "$dir"; /usr/src/tooldir.NetBSD-2.0.2_STABLE-i3=
86/bin/nbmake "_THISDIR_=3D$dir/" $targ; ;; *) echo "$targ =3D=3D=3D> $dir"=
; cd "/usr/src/$dir"; /usr/src/tooldir.NetBSD-2.0.2_STABLE-i386/bin/nbmake =
"_THISDIR_=3D$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  do-build
*** Failed command: (cd /usr/src && /usr/src/tooldir.NetBSD-2.0.2_STABLE-i3=
86/bin/nbmake dependall BUILD_tools=3Dno BUILD_lib=3Dno)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: (cd /usr/src && /usr/src/tooldir.NetBSD-2.0.2_STABLE-i3=
86/bin/nbmake do-build)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make build
*** BUILD ABORTED ***

=2D-=20
Kirk Strauser

--nextPart1389038.BNgc7iLfHL
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBCjIDk5sRg+Y0CpvERAsEzAKCF8gDYLpQQ3CMqL2XfxpzBAAt5fgCgjHB/
y1xSvpUyKNlMbjirSr1+plc=
=RQvW
-----END PGP SIGNATURE-----

--nextPart1389038.BNgc7iLfHL--