From owner-freebsd-stable@FreeBSD.ORG Mon Jun 10 12:21:12 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 E0A5C4DB for ; Mon, 10 Jun 2013 12:21:12 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B01512CF for ; Mon, 10 Jun 2013 12:21:12 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by mail.digiware.nl (Postfix) with ESMTP id 7B073153434 for ; Mon, 10 Jun 2013 14:21:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from mail.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kd4HqUZjQQR8 for ; Mon, 10 Jun 2013 14:21:10 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:45d9:68e8:668d:b40b] (unknown [IPv6:2001:4cb8:3:1:45d9:68e8:668d:b40b]) by mail.digiware.nl (Postfix) with ESMTP id 08742153433 for ; Mon, 10 Jun 2013 14:21:10 +0200 (CEST) Message-ID: <51B5C4B0.4080003@digiware.nl> Date: Mon, 10 Jun 2013 14:21:04 +0200 From: Willem Jan Withagen Organization: Digiware Management b.v. User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: "stable@freebsd.org" Subject: Re: Error in make buildkernel ` References: <51B5C0EB.6050803@digiware.nl> <20130610121401.GA64063@icarus.home.lan> In-Reply-To: <20130610121401.GA64063@icarus.home.lan> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:21:12 -0000 On 2013-06-10 14:14, Jeremy Chadwick wrote: > 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), Correct. That's where I store all revisions on my file-server and then build to a local /usr/obj. Each system has a soft-link pointing to the place where it's sources are stored. > 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. Good point. Did not think of those... --WjW make.conf: # To build ppp with normal permissions PPP_NOSUID= true # # To avoid building various parts of the base system: NO_FORTRAN= true # do not build g77 and related libraries NO_LPR= true # do not build lpr and related programs NO_OBJC= true # do not build Objective C support NO_GAMES= true # do not build games (games/ subdir) NO_PROFILE= true # Avoid compiling profiled libraries NO_UUCP= true # do not build uucp related programs NO_SENDMAIL=true # COMPAT22= yes COMPAT3X= yes COMPAT4X= yes COMPAT5X= yes # PRINTERDEVICE= ps # # The list of languages and encodings to build and install # DOC_LANG= en_US.ISO_8859-1 # MODULES_OVERRIDE=splash geom ipfw ipdivert libalias acpi nfsserver coretemp nfsclient nfscl aio KERNCONF=RACK1 BATCH=yes WITHOUT_X11=yes # added by use.perl 2013-04-18 15:28:08 PERL_VERSION=5.16.2 ---------------- src.conf: # To avoid building various parts of the base system: WITHOUT_FORTRAN = true # do not build g77 and related libraries WITHOUT_LPR = true # do not build lpr and related programs WITHOUT_OBJC = true # do not build Objective C support WITHOUT_GAMES = true # do not build games (games/ subdir) WITHOUT_PROFILE = true # Avoid compiling profiled libraries WITHOUT_UUCP = true # do not build uucp related programs WITHOUT_SENDMAIL= true WITHOUT_X11 = true WITHOUT_ATM = true WITHOUT_AUDIT = true WITHOUT_AUTHPF = true WITHOUT_BLUETOOTH=true WITHOUT_GPIB = true WITHOUT_I4B = true WITHOUT_IPFILTER= true WITHOUT_IPX = true WITHOUT_NCP = true WITHOUT_PF = true WITHOUT_RESUE = true WITHOUT_CALENDAR = true WITH_IDEA = true WITHOUT_KERBEROS = true WITHOUT_MAILWRAPPER = true # without NIS this jdk does not compile..... # WITHOUT_NIS = true WITHOUT_RCMDS = true WITHOUT_RESCUE = true WITHOUT_BIND = true