Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2013 17:26:26 -0400
From:      "Andre Goree" <andre@drenet.info>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Issue with building custom kernel
Message-ID:  <op.wtwlucocqdqf40@sideswipe-dt.accesso.office>

next in thread | raw e-mail | index | archive | help
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@drenet.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.wtwlucocqdqf40>