From owner-freebsd-stable@FreeBSD.ORG Mon Jun 10 12:14:16 2013 Return-Path: Delivered-To: stable@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 EA755278 for ; Mon, 10 Jun 2013 12:14:16 +0000 (UTC) (envelope-from jdc@koitsu.org) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by mx1.freebsd.org (Postfix) with ESMTP id 731451285 for ; Mon, 10 Jun 2013 12:14:16 +0000 (UTC) Received: from mfilter15-d.gandi.net (mfilter15-d.gandi.net [217.70.178.143]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id EBC1E41C061; Mon, 10 Jun 2013 14:14:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter15-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter15-d.gandi.net (mfilter15-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id vFtMxlrmDQws; Mon, 10 Jun 2013 14:14:03 +0200 (CEST) X-Originating-IP: 76.102.14.35 Received: from jdc.koitsu.org (c-76-102-14-35.hsd1.ca.comcast.net [76.102.14.35]) (Authenticated sender: jdc@koitsu.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 1BCEB41C06C; Mon, 10 Jun 2013 14:14:03 +0200 (CEST) Received: by icarus.home.lan (Postfix, from userid 1000) id 46B3073A1C; Mon, 10 Jun 2013 05:14:01 -0700 (PDT) Date: Mon, 10 Jun 2013 05:14:01 -0700 From: Jeremy Chadwick To: Willem Jan Withagen Subject: Re: Error in make buildkernel ` Message-ID: <20130610121401.GA64063@icarus.home.lan> References: <51B5C0EB.6050803@digiware.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51B5C0EB.6050803@digiware.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jun 2013 12:14:17 -0000 On Mon, Jun 10, 2013 at 02:04:59PM +0200, Willem Jan Withagen wrote: > I'm trying to build a stable kernle on a freshly build 8.4-Stable i386 > system. > > And I get: > MAKE=make sh /usr/srcs/src9/src/sys/conf/newvers.sh GENERIC > /usr/local/bin/svnversion > cc -c -O -pipe -std=c99 -g -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 -nostdinc -I. > -I/usr/srcs/src9/src/sys -I/usr/srcs/src9/src/sys/contrib/altq -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float > -ffreestanding -fstack-protector -Werror vers.c > ctfconvert -L VERSION -g vers.o > linking kernel.debug > ld:/usr/srcs/src9/src/sys/conf/ldscript.i386:66: syntax error > *** Error code 1 > > Stop in /usr/obj/usr/srcs/src9/src/sys/GENERIC. > *** Error code 1 > > Stop in /usr/srcs/src9/src. > *** Error code 1 > > Line 66 is: .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } > The piece of "code" around line 66 looks like: > > PROVIDE (__etext = .); > PROVIDE (_etext = .); > PROVIDE (etext = .); > .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } > .rodata1 : { *(.rodata1) } > .eh_frame_hdr : { *(.eh_frame_hdr) } > .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } > .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table > .gcc_except_table.*) } > /* Adjust the address for the data segment. We want to adjust up to > the same address within the page on the next page up. */ > . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & > (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT > (MAXPAGESIZE), CONSTANT (COMMONPAGESI > ZE)); > /* Exception handling */ > > Any suggestions on how to fix this?? I can't help with the actual syntax error, but from the path names involved here, it looks like you: 1) are using an alternate location for src (/usr/srcs not /usr/src), 2) are trying to build FreeBSD 9.x on an 8.4-STABLE box (/usr/obj/usr/srcs/src9) Is that correct? You might want to provide /etc/make.conf and /etc/src.conf from this system or other details of the "build framework" you might be using. That might help/pertain to the situation. -- | Jeremy Chadwick jdc@koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Making life hard for others since 1977. PGP 4BD6C0CB |