Re: Buildkernel+ALTQ error

From: Max Laier <max_at_love2party.net>
Date: Mon, 2 Aug 2004 12:20:14 +0200
On Monday 02 August 2004 10:51, Dan Cojocar wrote:
> On Mon, 2 Aug 2004 11:09:22 +0300, Dan Cojocar <dan.cojocar_at_gmail.com> 
wrote:
> > On Mon, 2 Aug 2004 09:50:51 +0200, Max Laier <max_at_love2party.net> wrote:
> > > On Monday 02 August 2004 09:35, you wrote:
> > > > Hello,
> > > >
> > > > Sorry for this delay, but i was offline :(
> > >
> > > Once more: I need your *complete* kernel config!
> > >
> > > > I made a cvsup today, and now i get another error:
> > > >
> > > > cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls
> > > > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> > > > -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g
> > > > -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
> > > > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
> > > > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
> > > > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
> > > > -D_KERNEL -include opt_global.h -finline-limit=8000 --param
> > > > inline-unit-growth=100 --param large-function-growth=1000
> > > > -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
> > > > /usr/src/sys/i386/i386/genassym.c
> > > > cc1: error: invalid parameter `inline-unit-growth'
> > > > cc1: error: invalid parameter `large-function-growth'
> > > > *** Error code 1
> > >
> > > This seems not linked to ALTQ at all. Looks more like a defect build
> > > environment. Did you do a complete buildworld before? Try:
> > > $ rm -rf /usr/obj/*
> > > $ cd /usr/src && make buildworld && make buildkernel
> > > KERNCONF=<yourconf> to have a clean starting point. The gcc update
> > > created a lot of noise all over the build.
> >
> >  I know that this is not related to ALTQ, i'm doing now a
> > buildworld, again :(, and i will post my results asap.
>
>    I did a cvsup, buildworld went ok, and when i buildkernel, i get
> the same error, like that on 29.07:

Uhm, well ... attached diff should fix this, but I still think that your build 
environment is somehow defective as the required headers would be pulled in 
via the following - certainly discussable - include chain:
 net/if.h -> _KERNEL => net/if_var.h -> altq/if_altq.h -> sys/lock.h & mutex.h

I have to clean that up and add lock headers where needed. Can you meanwhile 
check out if that helps and/or if a #make installincludes helps? Thanks.

-- 
/"\  Best regards,			| mlaier_at_freebsd.org
\ /  Max Laier				| ICQ #67774661
 X   http://pf4freebsd.love2party.net/	| mlaier_at_EFnet
/ \  ASCII Ribbon Campaign		| Against HTML Mail and News

Received on Mon Aug 02 2004 - 08:22:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC