From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 23 05:04:25 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3B9D106564A; Wed, 23 Feb 2011 05:04:25 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4214C8FC0A; Wed, 23 Feb 2011 05:04:24 +0000 (UTC) Received: by wwf26 with SMTP id 26so7908108wwf.31 for ; Tue, 22 Feb 2011 21:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5PvcY5m4E6E9gPXxwWJQjyQTB3zZ49oTdWoYKH3AgOY=; b=EXq1z2xUdsYRdU0LSBjBlQiY0FTg8wQkwUPZ9AiEpG0sVlBV4h4cw3vFvqTPDBAZL8 zyrZEs+lKe8467TA1sOsrx/GnRdeayOdnXsz3DNiCCwJqKEnHFN3q94mpV3BVf2HVkbF usVhkBeAafnc0UP/vgKuNFg1kc9YwlTM0hTnM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=bA75I1kMHhvKG4gFh+wn0he1priZWic6XWrDHi55+Qb6xL/C+tAg0K+mnSnf7CZRIQ 0TicUU+RNIOSNY/3+mZKBc97xxHLjbJF0/AYnCrD7gxkYqIZ1xkYUhKp4BoW3rUn/XIs mpo+yWGYr3mJ8UzESqyYEHJkjL1HHvute1drE= MIME-Version: 1.0 Received: by 10.216.1.145 with SMTP id 17mr3258476wed.50.1298437464248; Tue, 22 Feb 2011 21:04:24 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.15.74 with HTTP; Tue, 22 Feb 2011 21:04:24 -0800 (PST) In-Reply-To: <20110223.125435.202697583.mmatsuda@cybernet.co.jp> References: <4D63661D.2090205@gmail.com> <4D63AE83.5040007@FreeBSD.org> <20110223.125435.202697583.mmatsuda@cybernet.co.jp> Date: Tue, 22 Feb 2011 21:04:24 -0800 X-Google-Sender-Auth: Gw4ZEutNgtimcGjFmp9dSFOEK0Y Message-ID: From: Garrett Cooper To: mmatsuda@cybernet.co.jp Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, dim@freebsd.org, gnehzuil@gmail.com Subject: Re: buildkernel error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2011 05:04:25 -0000 On Tue, Feb 22, 2011 at 7:54 PM, wrote: > From: Dimitry Andric > Date: Tue, 22 Feb 2011 13:39:31 +0100 > ::On 2011-02-22 08:30, gnehzuil wrote: > ::> I updated my kernel source code and try to make a new kernel using ma= ke > ::> buildkernel command. But I got an error as follow: > ::... > ::> ld:/usr/src/sys/conf/ldscript.i386:66: syntax error > :: > ::Your /usr/bin/ld is still at version 2.15, which is too old to parse th= e > ::kernel linker script. =A0In this case, first run "make buildworld", or = at > ::least "make kernel-toolchain" before you attempt to build any kernels. > > Hello, > > Does it mean we have no-way of source upgrading from 8.X? > We need newest world to build 9.x kernel, and need 9.x kernel to run > newest world, and... No; you have to do something like the following: [kernel-]toolchain buildworld buildkernel. A plus side of doing this is that I do kernel-toolchain at -j12 and then do buildworld buildkernel at -j12 as well. It's much quicker than buildworld buildkernel at -j1, and less error prone than doing it at any other -j value in parallel. The handbook just says buildworld buildkernel ( http://www.freebsd.org/doc/handbook/makeworld.html ), and UPDATING just says kernel-toolchain buildkernel installkernel (look for "To build a kernel"), but there aren't any official directions in the quick to find spots that mention those above steps. Cheers, -Garrett