From owner-freebsd-questions@FreeBSD.ORG Wed Mar 13 21:26:30 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DA7A0EB2 for ; Wed, 13 Mar 2013 21:26:30 +0000 (UTC) (envelope-from andre@drenet.info) Received: from mail-ye0-f171.google.com (mail-ye0-f171.google.com [209.85.213.171]) by mx1.freebsd.org (Postfix) with ESMTP id A09B4C41 for ; Wed, 13 Mar 2013 21:26:30 +0000 (UTC) Received: by mail-ye0-f171.google.com with SMTP id m13so265569yen.30 for ; Wed, 13 Mar 2013 14:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drenet.info; s=google; h=x-received:content-type:date:to:subject:mime-version :content-transfer-encoding:from:message-id:user-agent; bh=Zch/f01sr7bYCXW68O8giC28HRkpWSUTCPjJx4PLuLk=; b=QnkZyy9oyMdKCEBvRnjXsQbou9LKvr77J0Lixs9yXhvTWzg+KJk3szRkvaAkchwEsf cpJ7crhSY1xivX3zgIQ2ysww6o0yqPqxeAJiqlNoBsYVRYH5mm/JIKqLGDvvmtOO+bPf ++LiH1sKMghIIdbr2eb38pUBrrIDqllc6ybnc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:date:to:subject:mime-version :content-transfer-encoding:from:message-id:user-agent :x-gm-message-state; bh=Zch/f01sr7bYCXW68O8giC28HRkpWSUTCPjJx4PLuLk=; b=OHKolJ1lMK8l/ALGanW2ESfsv6rh8JNQceytJ4+OZQYgKr9SVwQVy/UzB7fc8Wy1FG CT+BhBNIoSvbU/F6HPUGl/5TSQtiTSnrpAY1GKOyCRqfPQ89zjdHlt1jhdQgFhvvgtpe R+OoO4WTeqtCj/Rp2z+JLF2m4qb/RNFpwAVCEHtagJxmJK1ix4c/WJMECVK8fUtjd2NU v8BrvIUrL1q+ve10R1Uy93YTDwfSJazRLVuKbbPinzbjyLtpr+5onghUEPz+uFweM66O G5PJj5T4UPX4VOJtcvS7Ls1F1cDc+rFfV3tuCKybBjPaEtAApTsQZYROnSSRzaGXj8W3 F3FQ== X-Received: by 10.236.137.107 with SMTP id x71mr16997114yhi.2.1363209989288; Wed, 13 Mar 2013 14:26:29 -0700 (PDT) Received: from sideswipe-dt.accesso.office ([75.112.170.101]) by mx.google.com with ESMTPS id s34sm16869yhe.9.2013.03.13.14.26.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 13 Mar 2013 14:26:28 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Date: Wed, 13 Mar 2013 17:26:26 -0400 To: "freebsd-questions@freebsd.org" Subject: Issue with building custom kernel MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Andre Goree" Message-ID: User-Agent: Opera Mail/12.14 (FreeBSD) X-Gm-Message-State: ALoCoQmPMvkJWndCJ5ae7mmAowqb9OLL5dq64p2vrwjaJPN2vWG2+OfowfNJzfSKuIE7LrRCbMJ/ 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: Wed, 13 Mar 2013 21:26:30 -0000 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