From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 23 09:54:34 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 42318106564A; Wed, 23 Feb 2011 09:54:34 +0000 (UTC) (envelope-from mmatsuda@cybernet.co.jp) Received: from mow.securemx.jp (mow301.securemx.jp [210.130.202.49]) by mx1.freebsd.org (Postfix) with ESMTP id DBD688FC18; Wed, 23 Feb 2011 09:54:33 +0000 (UTC) Received: by mow.securemx.jp (mow301) id p1N9sWAf029248; Wed, 23 Feb 2011 18:54:32 +0900 X-MXL-Hash: 4d64d95731b105ff-8cabedfde2e473cdc5e47994bc2199859db2e288 Received: from cscu-112sm.cybernet.co.jp (cscusm222.cybernet.co.jp [202.214.244.222]) by relay.securemx.jp (mx-mr301) id p1N9sUJg014551; Wed, 23 Feb 2011 18:54:30 +0900 X-AuditID: c0a8cbde-0000000600000e83-c4-4d64d956051f Received: from mail.cybernet.co.jp (cscu-110sm.cybernet.co.jp [192.168.201.76]) by cscu-112sm.cybernet.co.jp (Symantec Mail Security) with ESMTP id 6C49214AA6; Wed, 23 Feb 2011 18:54:30 +0900 (JST) Received: from localhost (unknown [172.21.78.145]) by mail.cybernet.co.jp (Postfix) with ESMTP id ED16F2A9FF; Wed, 23 Feb 2011 18:54:29 +0900 (JST) Date: Wed, 23 Feb 2011 18:54:22 +0900 (JST) Message-Id: <20110223.185422.190209276.mmatsuda@cybernet.co.jp> To: kostikbel@gmail.com From: mmatsuda@cybernet.co.jp In-Reply-To: <20110223082532.GK78089@deviant.kiev.zoral.com.ua> References: <20110223.142405.160720730.mmatsuda@cybernet.co.jp> <20110223082532.GK78089@deviant.kiev.zoral.com.ua> X-Mailer: Mew version 5.1 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable X-CC-Mail-RelayStamp: CC/Mail=pass X-CC-Mail-UserOperation: Confirmed Mail X-Brightmail-Tracker: AAAAAA== Cc: freebsd-hackers@freebsd.org, dim@freebsd.org 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 09:54:34 -0000 From: Kostik Belousov Date: Wed, 23 Feb 2011 10:25:32 +0200 ::On Wed, Feb 23, 2011 at 02:24:05PM +0900, mmatsuda@cybernet.co.jp wro= te: ::> From: Garrett Cooper ::> Date: Tue, 22 Feb 2011 21:04:24 -0800 ::> ::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 kerne= l using make ::> ::> ::> 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 t= o parse the ::> ::> ::kernel linker script. =9AIn this case, first run "make buildw= orld", 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 t= o 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 -j= 12 ::> ::and then do buildworld buildkernel at -j12 as well. It's much qui= cker ::> ::than buildworld buildkernel at -j1, and less error prone than doi= ng it ::> ::at any other -j value in parallel. ::> :: The handbook just says buildworld buildkernel ( ::> ::http://www.freebsd.org/doc/handbook/makeworld.html ), and UPDATIN= G ::> ::just says kernel-toolchain buildkernel installkernel (look for "T= o ::> ::build a kernel"), but there aren't any official directions in the= ::> ::quick to find spots that mention those above steps. ::> = ::> Ahh, thanks for pointers. ::> I was just reading the "To upgrade in-place from 8.x-stable to curr= ent" ::> from UPDATING, which does not say anything about [kernel-]toolchain= .= ::> May by that part, and some others, also needs updating. ::You do not need to do anything with kernel-toolchain. THe proper ::procedure of buildworld/buildkernel just works. OK. Thanks for the confirmation. Haro