From owner-freebsd-stable@FreeBSD.ORG Mon Jun 10 22:35:38 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C4A83AAA; Mon, 10 Jun 2013 22:35:38 +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 893CE17FA; Mon, 10 Jun 2013 22:35:38 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by mail.digiware.nl (Postfix) with ESMTP id 822AB153434; Tue, 11 Jun 2013 00:35:37 +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 f8xkHWSyI7ie; Tue, 11 Jun 2013 00:35:36 +0200 (CEST) Received: from [192.168.10.10] (vaio [192.168.10.10]) by mail.digiware.nl (Postfix) with ESMTP id A2446153433; Tue, 11 Jun 2013 00:35:35 +0200 (CEST) Message-ID: <51B654B6.7060406@digiware.nl> Date: Tue, 11 Jun 2013 00:35:34 +0200 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Dimitry Andric Subject: Re: Error in make buildkernel ` References: <51B5C0EB.6050803@digiware.nl> <00EA9317-6691-467C-8366-3D7E4D808D6B@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 22:35:38 -0000 On 10-6-2013 21:57, Dimitry Andric wrote: > On Jun 10, 2013, at 20:39, Willem Jan Withagen wrote: >> Op 10 jun. 2013 om 19:27 heeft Dimitry Andric het volgende geschreven: >>> On Jun 10, 2013, at 14:04, 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 >>> >>> You must run "make kernel-toolchain" first. Alternatively, run "make >>> buildworld", but that is more work. >> >> I usually run buildworld from crontab first, and then builkernel. >> But things might have gone wrong. > > To explain this a bit more: FreeBSD 9.x and later have binutils 2.17.50, > FreeBSD 8.x has binutils 2.15. The kernels for 9.x and later use a bit > of linker script syntax that is not understood by the older ld in 8.x, > so you cannot link the 9.x kernel with /usr/bin/ld on 8.x. > > Therefore, you have to build the newer linker as part of buildworld, or > by using the kernel-toolchain target. Ah, oke, So there could be a very small chance that the 8.x ld is used? But it did the job. Thanx, --WjW