From owner-freebsd-stable@FreeBSD.ORG Wed Nov 24 07:58:54 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 8BEC21065672 for ; Wed, 24 Nov 2010 07:58:54 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 19DAE8FC13 for ; Wed, 24 Nov 2010 07:58:53 +0000 (UTC) Received: by bwz2 with SMTP id 2so8197322bwz.13 for ; Tue, 23 Nov 2010 23:58:53 -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=HETZ9i2Fec24l3G/0am3PAPz22kel7+NuSW+J7ta0SU=; b=n5h08HAqbXzb2gUs2ygwV3Q7oTiUOL0VZrC9vjidAVV0qfTTe5P4MnJ3WmMdcZdtjB vwWsduQG/uNTOZMPg3IdGPxModC9JMdC8teWWB2o0bsbi+GHdnIcT0Gyj1B4cusY+lHM hyyNHUJheiow+nMI9mT3bX0r+0X9wNF7cX6UA= 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=TotJSKRm9NlFFfzj4vDek1AZJkdUWmbWwgf90Kf24y8u1YTNVLzAzFVNq8mfIYg33e hmIGPNkWiAxxQJAehcsAM+RbR+YOthjd4qvyotQWaNcS/5f7SfjBXg7xbBEU3xHaQ+7r UqYwIzSqZwVnK8cwwFKP1NWSjU9POzdPIF7a0= MIME-Version: 1.0 Received: by 10.204.114.77 with SMTP id d13mr8106956bkq.150.1290585532947; Tue, 23 Nov 2010 23:58:52 -0800 (PST) Received: by 10.204.179.75 with HTTP; Tue, 23 Nov 2010 23:58:52 -0800 (PST) In-Reply-To: References: Date: Wed, 24 Nov 2010 01:58:52 -0600 Message-ID: From: Scot Hetzel To: Zhihao Yuan Content-Type: text/plain; charset=ISO-8859-1 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 07:58:54 -0000 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