Subject: Re: Kernel Compile
To: Sean Murphy <sean@cbrmain.cbr.nrc.ca>
From: Eduardo E. Horvath <eeh@one-o.com>
List: port-sparc
Date: 03/07/2000 13:11:03
> While I'm on the subject, I've been having a problem getting a current
> kernel to compile on my SPARCstation 4 (64M RAM, 1G HD) running
> NetBSD-1.4.1. The output from the make is:
>
> <SNIP>
> In file included from ../../../../sys/systm.h:310,
> from param.c:48:
> ../../../../lib/libkern/libkern.h:162: warning: conflicting types for
> built-in function `memcmp'
> ../../../../lib/libkern/libkern.h:163: warning: conflicting types for
> built-in function `memcpy'
> ../../../../lib/libkern/libkern.h:165: warning: conflicting types for
> built-in function `memset'
> *** Error code 1
>
> Anyone seen this before? I've cut a bunch of extraenous junk out of the
> config file, and this is the error I get every time.. Any hints?
In the process of cenversion to an ELF userland, ansi.h was made
64-bit clean to match the sparc64 port. This had the unfortunate
sideffect of changing things like size_t and ssize_t from `int' to
`long'. While this makes no real difference to 32-bit code, it is
critical for 64-bit code, and for some stupid reason gcc is not at all
happy about it.
Your options are to turn off -Werror and ignore the problem, upgrade
completely to a -current snapshot, or rebuild the 1.4.1 gcc/egcs with
the -current src/sys/arch/sparc/include/ansi.h file.
=========================================================================
Eduardo Horvath eeh@netbsd.org
"I need to find a pithy new quote." -- me