Subject: Re: cannot build kernel with a freshly /usr/src update
To: Florence HENRY <Florence.Henry@obspm.fr>
From: None <cube@cubidou.net>
List: current-users
Date: 02/23/2004 11:40:21
On Mon, Feb 23, 2004 at 11:28:16AM +0000, Florence HENRY wrote:
[...]
> 1) make depend does not fail, but I have the following warning :
> cc: ambiguous option '--'

Update mkdep.

> 2) as the make depend was not failing, I started compilation with make,
> but it failed :
> 
> cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
> -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare
> -Wno-uninitialized -Di386 -I.  -I../../../../arch -I../../../.. -nostdinc
> -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c
> /usr/src/sys/arch/i386/compile/OTARIE/../../../../dev/pci/auich.c
> /usr/src/sys/arch/i386/compile/OTARIE/../../../../dev/pci/auich.c: In
> function `auich_attach':
> /usr/src/sys/arch/i386/compile/OTARIE/../../../../dev/pci/auich.c:514:
> parse error before `<'
> /usr/src/sys/arch/i386/compile/OTARIE/../../../../dev/pci/auich.c:517:
> `status' undeclared (first use in this function)
> [...]
> *** Error code 1

Wouldn't you happen to have an unresolved conflict in there?

> 3) I was told that the problem 1) could be solved by compiling tools. So I
> went in /usr/src and I did "make -O /usr/src/obj/ tools", but it failed

You should use build.sh.

[...]
> I'm a little bit lost now... What can I do ?

Use the fine script that makes everyone happy.  Really.

Quentin Garnier.