make buildkernel fails
Christopher Illies
christopher.illies at web.de
Wed Dec 28 03:42:58 PST 2005
A recently csup'ed CURRENT kernel failed to build on my
iBook G4. I have never before rebuild world and kernel on
a powerpc, so I don't know whether this due to some silly
mistake I made or caused by recent, or not so recent changes
to the source code. I csup'ed a few hours later and the
problem remained. make buildworld worked without problems.
My CUSTOM kernel has only debugging support commented out,
but is ortherwise identical to GENERIC (see below).
If my reading of the mailing list is correct, no more
patches are needed to rebuild world and kernel on powerpc,
right?
Christopher
# make buildkernel KERNCONF=CUSTOM
[...]
MAKE=make sh /usr/src/sys/conf/newvers.sh CUSTOM
cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -W
cast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERN
EL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function
-growth=1000 -msoft-float -msoft-float -ffreestanding -Wno-error vers.c
linking kernel.debug
geom_io.o(.text+0x170): In function `g_new_bio':
/usr/src/sys/geom/geom_io.c:122: undefined reference to `stack_save'
geom_io.o(.text+0x18c):/usr/src/sys/geom/geom_io.c:123: undefined reference to `stack_ktr'
geom_io.o(.text+0x220): In function `g_alloc_bio':
/usr/src/sys/geom/geom_io.c:140: undefined reference to `stack_save'
geom_io.o(.text+0x23c):/usr/src/sys/geom/geom_io.c:141: undefined reference to `stack_ktr'
geom_io.o(.text+0x2bc): In function `g_destroy_bio':
/usr/src/sys/geom/geom_io.c:155: undefined reference to `stack_save'
geom_io.o(.text+0x2d8):/usr/src/sys/geom/geom_io.c:156: undefined reference to `stack_ktr'
geom_io.o(.text+0x3cc): In function `g_clone_bio':
/usr/src/sys/geom/geom_io.c:182: undefined reference to `stack_save'
geom_io.o(.text+0x3e8):/usr/src/sys/geom/geom_io.c:183: undefined reference to `stack_ktr'
*** Error code 1
Stop in /usr/obj/usr/src/sys/CUSTOM.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
The only change I did to the GENERIC kernel config file is
commenting out debugging support:
# diff GENERIC CUSTOM
22c22
< ident GENERIC
---
> ident CUSTOM
62,66c62,66
< options KDB #Enable the kernel debugger
< options DDB #Support DDB
< options INVARIANTS #Enable calls of extra sanity checking
< options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS
< options WITNESS #Enable checks to detect deadlocks and cycles
---
> #options KDB #Enable the kernel debugger
> #options DDB #Support DDB
> #options INVARIANTS #Enable calls of extra sanity checking
> #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS
> #options WITNESS #Enable checks to detect deadlocks and cycles
More information about the freebsd-ppc
mailing list