kernel build error (zlib.ko)

Lars Engels lars.engels at 0x20.net
Wed May 16 20:06:09 UTC 2007


On Wed, May 16, 2007 at 10:03:54PM +0200, Claus Guttesen wrote:
> >With today's sources I get an error while compiling the kernel:
> >
> >===> zlib (all)
> >cc -O2 -fno-strict-aliasing -pipe -march=pentium-m -Werror -D_KERNEL
> >-DKLD_MODULE -std=c99 -nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS
> >-include /usr/obj/usr/src/sys/MAGGIE/opt_global.h -I. -I@
> >-I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100
> >--param large-function-growth=1000 -fno-common -g
> >-I/usr/obj/usr/src/sys/MAGGIE -mno-align-long-strings
> >-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> >-mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs
> >-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
> >-Wcast-qual  -Wundef -fformat-extensions -c
> >/usr/src/sys/modules/zlib/../../net/zlib.c
> >ld  -d -warn-common -r -d -o zlib.kld zlib.o
> >:> export_syms
> >awk -f /usr/src/sys/modules/zlib/../../conf/kmod_syms.awk zlib.kld
> >export_syms | xargs -J% objcopy % zlib.kld
> >ld -Bshareable  -d -warn-common -o zlib.ko.debug zlib.kld
> >objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols
> >objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug
> >zlib.ko
> >1 error
> >*** Error code 2
> >1 error
> >*** Error code 2
> >1 error
> >
> >
> >Any ideas what could be the cause?
> 
> Do you happen to have
> 
> options         INVARIANTS
> #options         INVARIANT_SUPPORT
> 
> in your kernel-config where the second line is commented out?
>

No, I have both options in the kernel config.

> -- 
> regards
> Claus
> 
> When lenity and cruelty play for a kingdom,
> the gentlest gamester is the soonest winner.
> 
> Shakespeare.
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
> 

-- 
Lars Engels
E-Mail: lars.engels at 0x20.net 	
Mobil: +49 172 266 72 73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070516/4f50b56e/attachment.pgp


More information about the freebsd-current mailing list