Subject: Re: 'build.sh -t' fails
To: Greywolf <greywolf@starwolf.com>
From: Todd Vierling <tv@wasabisystems.com>
List: current-users
Date: 01/10/2002 08:17:28
On Thu, 10 Jan 2002, Greywolf wrote:

: Greetings.  Working with a current source tree freshly cvs updated.

`Please post the contents of your mk.conf, and the command you are using to
build, if you are having a build problem.'

: cc -O2 -O3 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
: -Wpointer-arith -Wno-uninitialized -Werror -Wall -c -o mkdep.lo
: /usr/src/tools/mkdep/../../usr.bin/mkdep/mkdep.c

Where are you setting -O3 -pipe ... -Werror?  This compilation line should
read:

cc -O -Wall   -c -o mkdep.lo /usr/src/tools/mkdep/../../usr.bin/mkdep/mkdep.c

DO NOT add all that stuff to HOST_CFLAGS (particularly not -Werror), if you
are doing so.  The host tools are certainly not in a state to make that work
correctly at the moment (and it's very unlikely that the GNU tools will be
made to work with -Werror).

: This has happened on two separate boxes (both i386en, but still).
: Why is "HAVE_SETPROGNAME" not being set?  It appears, too, as though
: "config.h" is not making it into the file (as HAVE_CONFIG_H is
: also not being set, thus HAVE_SETPROGNAME is never making it).

src/tools/mkdep cannot make use of src/tools/compat because mkdep must be
built *before* src/tools/compat.  I plan to fix this, but it still won't
necessarily make -Wstrict-prototypes happy in any case.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/