Issue with building custom kernel
Andre Goree
andre at drenet.info
Wed Mar 13 21:26:30 UTC 2013
I seem to be having trouble building my custom kernel. I've removed
several things that I believe were unnecessary, and added Linux support,
but I don't think I'm missing anything that is very important. Here is
the last few lines of the build:
===> zlib (all)
/usr/local/libexec/ccache/world/cc -O2 -pipe -fno-strict-aliasing -Werror
-D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/BUILD130313/opt_global.h -I. -I@ -I@/contrib/altq
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer
-I/usr/obj/usr/src/sys/BUILD130313 -mcmodel=kernel -mno-red-zone -mno-mmx
-mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-fstack-protector -std=iso9899:1999 -fstack-protector -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs
-fdiagnostics-show-option -c /usr/src/sys/modules/zlib/../../net/zlib.c
ld -d -warn-common -r -d -o zlib.ko.debug zlib.o
:> export_syms
awk -f /usr/src/sys/conf/kmod_syms.awk zlib.ko.debug export_syms | xargs
-J% objcopy % zlib.ko.debug
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
*** [buildkernel] Error code 2
1 error
*** [buildkernel] Error code 2
1 error
Here is my KERNCONF:
http://www.drenet.net/BUILD130313
I've also created a diff of what's missing from my configuration compared
to GENERIC:
http://www.drenet.net/kern_diff.txt
Thanks in advance for any guidance you can provide!
--
Andre Goree
andre at drenet.info
More information about the freebsd-questions
mailing list