Subject: Re: Current Kernel build fails on IPX
To: None <port-sparc@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-sparc
Date: 06/17/1999 03:00:42
In article <199906170048.RAA18690@mipos2.intel.com>,
Peter Yoo <pyoo@mipos2.intel.com> wrote:
>Hello,
>
>I recently install 1.4 on my IPX box and build new kernel with RAID support.  
>The src tar files that I used from ftp, compiled fine with no errors.  Now, 
>I've been trying to use current on this machine and I'm having some 
>problems....
>
>I've been supping sources for last 5 days and new kernel build fails with the 
>same error message.  I try to search mail-index web page but no luck.
>
>Maybe I need to do something else before I actually make new kernel.  
>1.4-generic kernel builds fine on the system - like I mentioned above.
>
>Can anyone please tell me what I need to do to build current kernel?
>
>And this would be my next question, but after I successfully build current 
>kernel, is there special order I need to compile the source in order to make 
>the user-land to be current?
>
>Thank you.
>
>	Peter.
>
>orange# make
>cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I. -I../../../../arch 
>-I../../../.. -nostdinc -DSUN4C -DSUN4M -DRASTERCONSOLE 
>-DRASTERCONSOLE_FGCOL="WSCOL_BLACK" -DRASTERCONSOLE_BGCOL="WSCOL_WHITE" -DLKM 
>-DNS -DMAXUSERS=64 -D_KERNEL -c ../../../../arch/sparc/sparc/locore.s
>cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  
>-Wpointer-arith -Wno-main -mno-fpu -I. -I../../../../arch -I../../../.. 
>-nostdinc -DSUN4C -DSUN4M -DRASTERCONSOLE -DRASTERCONSOLE_FGCOL="WSCOL_BLACK" 
>-DRASTERCONSOLE_BGCOL="WSCOL_WHITE" -DLKM -DNS -DMAXUSERS=64 -D_KERNEL  -c 
>param.c
>cc1: warnings being treated as errors
>In file included from param.c:48:
>../../../../sys/systm.h:196: warning: conflicting types for built-in function 
>`memcmp'
>../../../../sys/systm.h:197: warning: conflicting types for built-in function 
>`memcpy'
>../../../../sys/systm.h:199: warning: conflicting types for built-in function 
>`memset'
>*** Error code 1

You need to rebuild your compiler with the current includes. There was a
warning about that on port-sparc. Note that you should probably upgrade
to the elf snapshot before then. Or if you *really* want to keep using
a.out OBJECT_FMT=aout in /etc/mk.conf [and I don't advise you do]

Now to avoid the errors setenv NOGCCERROR before you start your build.
You'll still get the warnings but your compilation will proceed.

christos

christos