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 sever=
al things that I believe were unnecessary, and added Linux support, but I do=
n't think I'm missing anything that is very important.  Here is the last few=
 lines of the build:
>=20
> =3D=3D=3D> 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=3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D=
1000 -fno-common -g -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/BUILD1303=
13  -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asy=
nchronous-unwind-tables -ffreestanding -fstack-protector -std=3Diso9899:1999=
 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototy=
pes  -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=3Dzlib.ko.symbols zlib.ko.debug z=
lib.ko
> 1 error
> *** [buildkernel] Error code 2
> 1 error
> *** [buildkernel] Error code 2
> 1 error
>=20
> Here is my KERNCONF:
> http://www.drenet.net/BUILD130313
>=20
> I've also created a diff of what's missing from my configuration compared t=
o GENERIC:
> http://www.drenet.net/kern_diff.txt
>=20
> Thanks in advance for any guidance you can provide!
>=20
> --=20
> 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.or=
g"

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>