From owner-freebsd-questions@FreeBSD.ORG Fri Mar 15 03:21:57 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4B1A3E29 for ; Fri, 15 Mar 2013 03:21:57 +0000 (UTC) (envelope-from andre@drenet.info) Received: from mail-ye0-f175.google.com (mail-ye0-f175.google.com [209.85.213.175]) by mx1.freebsd.org (Postfix) with ESMTP id D7A1BD07 for ; Fri, 15 Mar 2013 03:21:56 +0000 (UTC) Received: by mail-ye0-f175.google.com with SMTP id j12so521912yeg.34 for ; Thu, 14 Mar 2013 20:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drenet.info; s=google; h=x-received:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=xin7OlKO9XSk8/wZmX4RoNBFYlYHzvEYz7yCc4EqFeM=; b=O6YEISoz8l1D9hd9nEAlQa9I4rX8Q4Q+xM+gINU078i9HpPSplw/SW9hxeK14idfxJ SXJuklOh07vI1BQMGuvmZwPjXRiLGDqcIs9enMfxCQISOy5x6wD+04mRa07pJV5hH1/U MLcwOEt7DkTES3kL2s1jiyT33D285WbXqo60M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent :x-gm-message-state; bh=xin7OlKO9XSk8/wZmX4RoNBFYlYHzvEYz7yCc4EqFeM=; b=SdTAyqrwNKRO4BKNHheRVaYsfHrulERYR7eqtUQZrwuJKVQt0q+xNFTvHtuZUA+QEf 8kLIeXXnx/v/sQaI3YmD52pfShR1okvj2M2JSEV5WmRcSP9Nwdq40RNu4w8ItMv0g64d +80uUFeDct5AZpFIC/krTm/Rae0Gg1ZWu3uxSHC1c2SI5HYY3bL6r9qoiT9SM5BqLRW5 Csh3hyVxsPI+ZeuMGcu5hKbCb5t3qWvP0g1UMlGY7lP4zF99q5EiKAYjZ3E5KsRFUwY3 IoIgBw6y7718vWRNi60+PbnK2DDR2FZL4NGEAyM45ZAYu3AZifKszRMhW1KN0XWnrMeY VA1g== X-Received: by 10.236.165.38 with SMTP id d26mr6683993yhl.163.1363317710168; Thu, 14 Mar 2013 20:21:50 -0700 (PDT) Received: from desktop.drenet.local ([97.100.190.35]) by mx.google.com with ESMTPS id s34sm9314552yhe.9.2013.03.14.20.21.48 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 Mar 2013 20:21:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Damien Fleuriot" Subject: Re: Issue with building custom kernel References: Date: Thu, 14 Mar 2013 23:21:37 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Andre Goree" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.14 (FreeBSD) X-Gm-Message-State: ALoCoQnXDeYec9qiiF/wB7ZdE36AGfDiNX1PTq1AWlFttksXnsT5Sp0X+6AaL0IRFz0hSL9Sd22Q Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Mar 2013 03:21:57 -0000 On Wed, 13 Mar 2013 17:43:40 -0400, Damien Fleuriot wrote: > > On 13 Mar 2013, at 22:26, "Andre Goree" 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 ? Hmmm, just tried that, and still get the same result. Seems I'll need to resort to trial-and-error at this point -- or just add Linux support to GENERIC, remove firewire, fdc and RAID controllers and call it a day :p Thanks for looking over the diff! -- Andre Goree andre@drenet.info