Subject: Re: Current Kernel build fails on IPX
To: None <port-sparc@netbsd.org>
From: Peter Yoo <pyoo@mipos2.intel.com>
List: port-sparc
Date: 06/18/1999 14:35:15
Christoz Zoulas <christos@zoulas.com> wrote :
> 
> 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.
> 

Thanks for the info, this fixes the kernel build problem, and just for other 
people who might be having same problem coming to Current, here is what I did 
to compile Current Kernel on IPX :

cd /usr/src/
make include
cd gnu/usr.bin/egcs
export NOGCCERROR=1
make; make install

make; make install of Current config command
then config and make new kernel

Now, I have 1.4C kernel build, I'm trying to build the user-land with Current 
and I'm having similar errors.  I first thought that I would wait some time 
until they get fixed but it's been some time.  This is the make UPDATE=1 build 
output from this morning's sup :

all ===> sparc_elf
cc -O2 -fPIC -Werror   -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=32 
-I/export/netbsd-current/src/lib/csu/sparc_elf/../../../libexec/ld.elf_so 
-I/export/netbsd-current/src/lib/csu/sparc_elf/../common_elf -c -DCRT0 crt0.c 
-o crt0.o
In file included from /export/netbsd-current/src/lib/csu/sparc_elf/../common_el
f/common.h:41,
                 from crt0.c:35:
/export/netbsd-current/src/lib/csu/sparc_elf/../../../libexec/ld.elf_so/rtld.h:
175: field `linkmap' has incomplete type
cc1: warnings being treated as errors
In file included from crt0.c:35:
/export/netbsd-current/src/lib/csu/sparc_elf/../common_elf/common.h:77: 
warning: parameter names (without types) in function declaration
/export/netbsd-current/src/lib/csu/sparc_elf/../common_elf/common.h:77: 
warning: data definition has no type or storage class
*** Error code 1


Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

Does anyone know what I'm doing wrong here or is someone working on some part 
of the src and I just have to wait?

Thank you.

	Peter.