Subject: Re: Help newbie fix a build failure?
To: None <netbsd-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: netbsd-users
Date: 05/19/2005 14:57:49
Kirk Strauser --> netbsd-users (2005-05-19 07:04:47 -0500):
> 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/NetBSD/tips.html,
> my /etc/mk.conf looks like:
> 
> COMMONFLAGS?=-march=k6-3 -O2 -pipe
> COPTS:=${COMMONFLAGS} ${COPTS:C/-O[0-9]*//g}
> CFLAGS:=${COMMONFLAGS} ${CFLAGS:C/-O[0-9]*//g}
[...]
> #   compile  cat/cat.o
> /usr/src/tooldir.NetBSD-2.0.2_STABLE-i386/bin/i386--netbsdelf-gcc -march=k6-3 -O2 -pipe s -march=k6-3 -O2 -pipe   -Wall -Wstrict-protot
> ypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow  -Werro
> r    -nostdinc -isystem /usr/src/destdir.i386/usr/include  -c    /usr/src/bin/cat/cat.c
> i386--netbsdelf-gcc: s: No such file or directory

You probably have -Os in COPTS or CFLAGS. Change the lines you posted above
in your /etc/mk.conf to look like this:

COPTS:=${COMMONFLAGS} ${COPTS:C/-O[0-9s]*//g}
CFLAGS:=${COMMONFLAGS} ${CFLAGS:C/-O[0-9s]*//g}

Using the -u option to build.sh sets MKUPDATE=yes; this is probably what
you want to "resume" the build.


HTH, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~