From owner-freebsd-stable@FreeBSD.ORG Wed Nov 24 08:34:28 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62FF0106566B for ; Wed, 24 Nov 2010 08:34:28 +0000 (UTC) (envelope-from lichray@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 DF9708FC0C for ; Wed, 24 Nov 2010 08:34:27 +0000 (UTC) Received: by wwd20 with SMTP id 20so9279216wwd.31 for ; Wed, 24 Nov 2010 00:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=QoSdHXhkcPg3nXjVkyYdh8UU+O3IlZuNPinRuSC57aY=; b=n/r6+/AOAosgaKciylwr2XrNvIhzwjgu5faIaiwyb7PcNt8XFELFjPaYoKKyQqfl9g v5lcOpTKrya0ijVuyM5vSPVmIzX75dDVtFa4iap8W9WAkiK/PlzX+qFKTm8i676FUoF6 AnJ6UZjQf+Io9XJyaETBLO+ytiR/mqMZcig6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=J4hBcQyuxNegtak2+5+hM/0AfOmAkEz9ChoUEsf62jW265z/DKljimE60X7hciQJIz bDyUIpivjpbc+ex2sGps7TSg89QHg2gXZGFybkz3CyzfjS+8p5YAsuzP+G/OyCLW2Slz 1gt3jo/plXq9Hc82k1DvUv3x0CZ7MyR7vsJ+c= MIME-Version: 1.0 Received: by 10.227.127.79 with SMTP id f15mr8920869wbs.86.1290587665867; Wed, 24 Nov 2010 00:34:25 -0800 (PST) Received: by 10.227.136.73 with HTTP; Wed, 24 Nov 2010 00:34:25 -0800 (PST) In-Reply-To: References: Date: Wed, 24 Nov 2010 02:34:25 -0600 Message-ID: From: Zhihao Yuan To: Scot Hetzel Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: Can not build either kernel nor 'world' X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2010 08:34:28 -0000 I used wget to get the base system, and installed it to a alternative root. Then I replaced the broken gcc with the old working ones, then rebuild everything. Now my system works. On Wed, Nov 24, 2010 at 1:58 AM, Scot Hetzel wrote: > On Tue, Nov 23, 2010 at 9:40 PM, Zhihao Yuan wrote: > > OK, I know what happened. The version that I used to buildworld happens > to > > have a bug in gcc, which just crashes and crashes. Then I tried to use > the > > external gcc42 to build the kernel, but I got the error message: > > cc1: error: unrecognized command line option: -fformat-extension > > > > So what, where can I get a working build tools that work for the kernel & > > world, or how can I downgrade the world so I can get a working gcc and > devd? > > > The following may help in getting your system running, but hasn't been > tested: > > 1. Either update or downgrade your sources to get past the gcc bug. > 2. Boot the FreeBSD livefs CD/memstick > 3. mount your partions > > mkdir /mnt > mount -t ufs /dev/ad0s1a /mnt > mount -t ufs /dev/ad0s1d /mnt/usr > mount -t ufs /dev/ad0s1e /mnt/var > > 4. link /mnt/usr/obj directory > > ln -s /mnt/usr/obj /usr/obj > > 5. Build world and kernel > > cd /mnt/usr/src/ > make buildworld > make buildkernel KERNCONF=MYKERNEL > > 6. Install the new world and kernel > > make installworld DESTDIR=/mnt > make installkernel DESTDIR=/mnt KERNCONF=MYKERNEL > mergemaster -i -C -D /mnt > > 7. Reboot the computer and remove the fixit CD > > Scot > -- Zhihao Yuan The best way to predict the future is to invent it.