Subject: Re: current "src" building problems
To: None <>
From: Paul M. Newhouse <>
List: current-users
Date: 09/05/1998 10:44:37
>I've got some problems while building -current "src" (suped yesterday)
>with compiler binary from 1.3.2 distribution.
>These are the most relevant buildings
>1) gnu/usr/bin/ld
>cc -O  -Werror  -fpic -fno-function-cse -DRTLD -DLIBC_SCCS
>-I/usr/local/src/gnu/usr.bin/ld/rtld/../arch/i386 -c rtld.c
>cc1: warnings being treated as errors
>rtld.c:190: warning: initialization from incompatible pointer type
>*** Error code 1
>*** Error code 1

Here's what I do (and I know a bunch of people are going to say things
like, "yuck, phooey" and "that's wrong" BUT,) I've found it to be useful.

I edit ...<build area>/src/share/mk/ (and /usr/share/mk/ 
if I'm not going to do a make build),  and commnet out the -Werror part of the

CFLAGS+= .... -Werror ....

so it looks like:

CFLAGS+= ... ...

Then I build.  After this works and is installed I put the -Werror stuff
back and do a "make build" from the top (/usr/src), mostly cause it makes
me feel better, I don't know how necessary it is to rebuild (I don't want 
to find out the hard way).

On occasion I've done this in the /usr/src/sys/arch/i386/... kernel area

My 2 cents worth,