sparc64 kernel build error

Marius Strobl marius at alchemy.franken.de
Tue Oct 2 07:47:38 PDT 2007


On Mon, Oct 01, 2007 at 02:29:54PM +0000, Matthew Herzog wrote:
> Hello Beasties.
> 
> I have attached the error text and my kernel config. The build seems to
> die while building ipfilter but I'm guessing that's not the real
> reason for it failing.
> 
> Thanks for any suggestions.
> 
> -- Matt H

<...>

> cc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000  -mcmodel=medlow -msoft-float -ffreestanding -Werror  /usr/src/sys/dev/syscons/schistory.c
> In file included from /usr/src/sys/dev/syscons/schistory.c:46:
> ./machine/sc_machdep.h:71:1: "SC_NORM_ATTR" redefined
> In file included from /usr/src/sys/dev/syscons/schistory.c:33:
> ./opt_syscons.h:1:1: this is the location of the previous definition
> *** Error code 1
> 

Remove options SC_NORM_ATTR from your kernel config file or if you
really ned green on black change sys/sparc64/include/sc_machdep.h
to include opt_syscons.h and only define SC_NORM_ATTR etc if they're
not already defined.

Marius



More information about the freebsd-stable mailing list