Date: Wed, 24 Nov 2010 02:34:25 -0600 From: Zhihao Yuan <lichray@gmail.com> To: Scot Hetzel <swhetzel@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: Can not build either kernel nor 'world' Message-ID: <AANLkTimX8p2CjisTEaRHgU-aU=ffcay41SxnHnzxf9WQ@mail.gmail.com> In-Reply-To: <AANLkTi=WvHVn=WAGHrojRGfNYaCdNR5Ug0no0m2BfCZf@mail.gmail.com> References: <AANLkTiknAr4dkzYi%2BuBOg1QPrU6T0a09EP80h-8bUFWN@mail.gmail.com> <AANLkTinExxPjUpkqmu%2BX%2BMnG4g38F-LL0Xs2D5UrPSeX@mail.gmail.com> <AANLkTi=WvHVn=WAGHrojRGfNYaCdNR5Ug0no0m2BfCZf@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <swhetzel@gmail.com> wrote: > On Tue, Nov 23, 2010 at 9:40 PM, Zhihao Yuan <lichray@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimX8p2CjisTEaRHgU-aU=ffcay41SxnHnzxf9WQ>