Can not build either kernel nor 'world'

Zhihao Yuan lichray at gmail.com
Wed Nov 24 08:34:28 UTC 2010


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 at gmail.com> wrote:

> On Tue, Nov 23, 2010 at 9:40 PM, Zhihao Yuan <lichray at 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.


More information about the freebsd-stable mailing list