Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Dec 2009 19:59:25 +0100
From:      Marius Strobl <marius@alchemy.franken.de>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        freebsd-current@freebsd.org, freebsd-sparc64@freebsd.org
Subject:   Re: current sparc buildkernel error
Message-ID:  <20091208185925.GJ6562@alchemy.franken.de>
In-Reply-To: <20091208124024.GA20313@mech-cluster241.men.bris.ac.uk>
References:  <20091207100536.GA33324@mech-cluster241.men.bris.ac.uk> <20091207153223.GA51206@alchemy.franken.de> <20091208124024.GA20313@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 08, 2009 at 12:40:24PM +0000, Anton Shterenlikht wrote:
> On Mon, Dec 07, 2009 at 04:32:23PM +0100, Marius Strobl wrote:
> > On Mon, Dec 07, 2009 at 10:05:36AM +0000, Anton Shterenlikht wrote:
> > > On FreeBSD 8.0-RELEASE sparc64
> > > 
> > > I've successfully build current world, but on buildkernel I get:
> > > 
> > > cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -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=medany -msoft-float -ffreestanding -fstack-protector -Werror  /usr/src/sys/sparc64/sparc64/trap.c
> > > /usr/src/sys/sparc64/sparc64/trap.c: In function 'syscall':
> > > /usr/src/sys/sparc64/sparc64/trap.c:561: error: dereferencing pointer to incomplete type
> > > *** Error code 1
> > > 
> > 
> > This should be fixed in r200215. AFAICT it was only exposed by
> > UP kernel builds.
> 
> I updated the sources, but still get the same error:
> 
> cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -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=medany -msoft-float -ffreestanding -fstack-protector -Werror  /usr/src/sys/sparc64/sparc64/trap.c
> /usr/src/sys/sparc64/sparc64/trap.c: In function 'syscall':
> /usr/src/sys/sparc64/sparc64/trap.c:561: error: dereferencing pointer to incomplete type
> *** Error code 1
> 1 error

This suggests that you are using sources prior to r200215 as
line 561 now is a comment.

> 
> This is on FreeBSD 8.0-RELEASE sparc64.
> 
> buildworld stage went fine.
> 
> What is r200215? I tried to search for it, but got nothing.
> 

This is the SVN revision at which the UP compile problem was
fixed. It was exported to CVS as src/sys/sparc64/sparc64/trap.c
rev. 1.99.

Marius




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091208185925.GJ6562>