From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 28 11:42:58 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B7F616A41F for ; Wed, 28 Dec 2005 11:42:58 +0000 (GMT) (envelope-from christopher.illies@web.de) Received: from fmmailgate07.web.de (fmmailgate07.web.de [217.72.192.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id A137343D5A for ; Wed, 28 Dec 2005 11:42:57 +0000 (GMT) (envelope-from christopher.illies@web.de) Received: by fmmailgate07.web.de (8.12.10/8.12.10/webde Linux 0.7) with SMTP id jBSBewDw024933 for ; Wed, 28 Dec 2005 12:42:56 +0100 Received: from [84.142.162.104] by freemailng5502.web.de with HTTP; Wed, 28 Dec 2005 12:42:54 +0100 Date: Wed, 28 Dec 2005 12:42:54 +0100 Message-Id: <439636031@web.de> MIME-Version: 1.0 From: Christopher Illies To: freebsd-ppc@freebsd.org Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Subject: make buildkernel fails X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 11:42:58 -0000 A recently csup'ed CURRENT kernel failed to build on my iBook G4. I have never before rebuild world and kernel on a powerpc, so I don't know whether this due to some silly mistake I made or caused by recent, or not so recent changes to the source code. I csup'ed a few hours later and the problem remained. make buildworld worked without problems. My CUSTOM kernel has only debugging support commented out, but is ortherwise identical to GENERIC (see below). If my reading of the mailing list is correct, no more patches are needed to rebuild world and kernel on powerpc, right? Christopher # make buildkernel KERNCONF=CUSTOM [...] MAKE=make sh /usr/src/sys/conf/newvers.sh CUSTOM cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -W cast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERN EL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function -growth=1000 -msoft-float -msoft-float -ffreestanding -Wno-error vers.c linking kernel.debug geom_io.o(.text+0x170): In function `g_new_bio': /usr/src/sys/geom/geom_io.c:122: undefined reference to `stack_save' geom_io.o(.text+0x18c):/usr/src/sys/geom/geom_io.c:123: undefined reference to `stack_ktr' geom_io.o(.text+0x220): In function `g_alloc_bio': /usr/src/sys/geom/geom_io.c:140: undefined reference to `stack_save' geom_io.o(.text+0x23c):/usr/src/sys/geom/geom_io.c:141: undefined reference to `stack_ktr' geom_io.o(.text+0x2bc): In function `g_destroy_bio': /usr/src/sys/geom/geom_io.c:155: undefined reference to `stack_save' geom_io.o(.text+0x2d8):/usr/src/sys/geom/geom_io.c:156: undefined reference to `stack_ktr' geom_io.o(.text+0x3cc): In function `g_clone_bio': /usr/src/sys/geom/geom_io.c:182: undefined reference to `stack_save' geom_io.o(.text+0x3e8):/usr/src/sys/geom/geom_io.c:183: undefined reference to `stack_ktr' *** Error code 1 Stop in /usr/obj/usr/src/sys/CUSTOM. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. The only change I did to the GENERIC kernel config file is commenting out debugging support: # diff GENERIC CUSTOM 22c22 < ident GENERIC --- > ident CUSTOM 62,66c62,66 < options KDB #Enable the kernel debugger < options DDB #Support DDB < options INVARIANTS #Enable calls of extra sanity checking < options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS < options WITNESS #Enable checks to detect deadlocks and cycles --- > #options KDB #Enable the kernel debugger > #options DDB #Support DDB > #options INVARIANTS #Enable calls of extra sanity checking > #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS > #options WITNESS #Enable checks to detect deadlocks and cycles From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 28 14:59:51 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADA1816A41F for ; Wed, 28 Dec 2005 14:59:51 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from hummer.onthenet.com.au (hummer.onthenet.com.au [203.13.68.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BE0943D58 for ; Wed, 28 Dec 2005 14:59:51 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.18.111] (CPE-18-111.dsl.OntheNet.net [203.144.18.111]) by hummer.onthenet.com.au (Postfix) with ESMTP id CA91A19FB5B; Thu, 29 Dec 2005 00:59:41 +1000 (EST) Message-ID: <43B2A85C.1070208@freebsd.org> Date: Thu, 29 Dec 2005 00:59:40 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christopher Illies References: <439636031@web.de> In-Reply-To: <439636031@web.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: make buildkernel fails X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 14:59:51 -0000 Hi Christopher, > If my reading of the mailing list is correct, no more > patches are needed to rebuild world and kernel on powerpc, > right? Yep, that's right. The KTR_COMPILE line needs to be commented out: it causes the GEOM code to do stack backtraces. You'll find the same problem (feature?) on all archs. #options KTR_COMPILE=0xffffffff later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 28 17:44:36 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4AC016A41F; Wed, 28 Dec 2005 17:44:36 +0000 (GMT) (envelope-from christopher.illies@web.de) Received: from fmmailgate07.web.de (fmmailgate07.web.de [217.72.192.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2169643D5F; Wed, 28 Dec 2005 17:44:35 +0000 (GMT) (envelope-from christopher.illies@web.de) Received: by fmmailgate07.web.de (8.12.10/8.12.10/webde Linux 0.7) with SMTP id jBSHgiE4030823; Wed, 28 Dec 2005 18:44:34 +0100 Received: from [84.142.162.104] by freemailng5503.web.de with HTTP; Wed, 28 Dec 2005 18:44:30 +0100 Date: Wed, 28 Dec 2005 18:44:30 +0100 Message-Id: <439889611@web.de> MIME-Version: 1.0 From: Christopher Illies To: PeterGrehan Precedence: fm-user Organization: http://freemail.web.de/ Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: make buildkernel fails X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 17:44:36 -0000 Hi Peter, Peter Grehan schrieb am 28.12.05 15:59:49: > The KTR_COMPILE line needs to be commented out: it causes the GEOM > code to do stack backtraces. You'll find the same problem (feature?) on > all archs. > > #options KTR_COMPILE=0xffffffff Thanks for the hint. I actually needed to comment out all of the KTR related options for it to work: #options KTR #options KTR_COMPILE=0xffffffff #options KTR_MASK=KTR_SIG #options KTR_VERBOSE I could not find any documentation on this in NOTES, UPDATING et al. nor with google. Maybe GENERIC should be changed if this is a known and persistent issue? Christopher From owner-freebsd-ppc@FreeBSD.ORG Thu Dec 29 00:31:35 2005 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF5C216A41F for ; Thu, 29 Dec 2005 00:31:35 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from cayenne.onthenet.com.au (cayenne.OntheNet.com.au [203.22.124.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EC3C43D58 for ; Thu, 29 Dec 2005 00:31:35 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [203.144.18.111] (CPE-18-111.dsl.OntheNet.net [203.144.18.111]) by cayenne.onthenet.com.au (Postfix) with ESMTP id 2E48D759131; Thu, 29 Dec 2005 10:31:34 +1000 (EST) Message-ID: <43B32E65.9040805@freebsd.org> Date: Thu, 29 Dec 2005 10:31:33 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christopher Illies References: <439889611@web.de> In-Reply-To: <439889611@web.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: make buildkernel fails X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 00:31:36 -0000 > I could not find any documentation on this in NOTES, > UPDATING et al. nor with google. Maybe GENERIC should > be changed if this is a known and persistent issue? GENERIC is in need of an overhaul. I'll commit the changes to remove the compile-time GEOM KTR debug, and probably WITNESS as well. later, Peter.