Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2013 22:43:40 +0100
From:      Damien Fleuriot <ml@my.gd>
To:        Andre Goree <andre@drenet.info>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Issue with building custom kernel
Message-ID:  <C1F08495-F0CE-4A3C-8425-35BD4BB9FF48@my.gd>
In-Reply-To: <op.wtwlucocqdqf40@sideswipe-dt.accesso.office>
References:  <op.wtwlucocqdqf40@sideswipe-dt.accesso.office>

next in thread | previous in thread | raw e-mail | index | archive | help


On 13 Mar 2013, at 22:26, "Andre Goree" <andre@drenet.info> wrote:

> 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
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

Nothing in your diff shocks me.

Wanna re SVN up your sources, rebuild your kernel-toolchain and try again ?


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C1F08495-F0CE-4A3C-8425-35BD4BB9FF48>