From owner-freebsd-stable@FreeBSD.ORG Mon Jun 10 19:57:33 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 66A3816E for ; Mon, 10 Jun 2013 19:57:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id 2B8751E35 for ; Mon, 10 Jun 2013 19:57:32 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::18cd:f6e4:fe5d:3a30] (unknown [IPv6:2001:7b8:3a7:0:18cd:f6e4:fe5d:3a30]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ACF055C44; Mon, 10 Jun 2013 21:57:23 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Error in make buildkernel ` From: Dimitry Andric In-Reply-To: Date: Mon, 10 Jun 2013 21:57:28 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <51B5C0EB.6050803@digiware.nl> <00EA9317-6691-467C-8366-3D7E4D808D6B@FreeBSD.org> To: Willem Jan Withagen X-Mailer: Apple Mail (2.1508) 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 19:57:33 -0000 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. >>>=20 >>> And I get: >>> MAKE=3Dmake sh /usr/srcs/src9/src/sys/conf/newvers.sh GENERIC >>> /usr/local/bin/svnversion >>> cc -c -O -pipe -std=3Dc99 -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=3D8000 --param inline-unit-growth=3D100 --param >>> large-function-growth=3D1000 -mno-align-long-strings >>> -mpreferred-stack-boundary=3D2 -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 >>=20 >> You must run "make kernel-toolchain" first. Alternatively, run "make >> buildworld", but that is more work. >=20 > 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. -Dimitry