Skip site navigation (1)Skip section navigation (2)
Date:        Wed, 31 May 2000 11:03:36 +0200
From:      Erik Trulsson <ertr1013@student.csd.uu.se>
To:        Bharat Mediratta <bharat@sinia.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: GENERIC 4.0 kernel compile fails on in_cksum.c
Message-ID:  <20000531110336.A1153@student.csd.uu.se>
In-Reply-To: <NDBBKDIKOLJOLALGCEBCEEJECLAA.bharat@sinia.com>; from bharat@sinia.com on Wed, May 31, 2000 at 01:43:16AM -0700
References:  <20000531005355.A47631@student.csd.uu.se> <NDBBKDIKOLJOLALGCEBCEEJECLAA.bharat@sinia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 31, 2000 at 01:43:16AM -0700, Bharat Mediratta wrote:
> 
> > > Then, I followed these directions:
> > >
> > > 	# cd /usr/src/sys/i386/conf
> > > 	# config GENERIC
> > > 	# cd ../../compile/GENERIC
> > > 	# make depend
> > > 	# make
> >
> > Wrong. Very wrong. Where did you get these directions?
> 
> 	http://www.freebsd.org/handbook/kernelconfig-building.html
> 
> but I didn't actually use these directions; read on.
> 
> > To upgrade from 3.4 to 4.0 you should follow the instructions in
> > /usr/src/UPDATING. (After getting the 4.0 sources with cvsup.)
> > What you are doing (trying to build a 4.0 kernel with 3.4 tools) is
> > basically doomed to fail.
> 
> Oops, you're (partially) right.  I left out a few instructions when
> I cut and paste.  I actually followed /usr/src/UPDATING and did this:
> 
>  	# cd src/usr.bin/genassym
> 	# make depend all install clean
> 	# cd ../../usr.sbin/config
> 	# make depend all install clean
> 	# cd ../../sys/i386/conf
> 	# config GENERIC
> 	# cd ../../compile/GENERIC
> 	# make depend && make
> 
> And this is where it bombed.  For reference, /usr/src/UPDATING says:
> 
>         To build a kernel
>         -----------------
>         Update config, genassym and go:
>                 cd src/usr.bin/genassym
>                 make depend all install clean
>                 cd ../../usr.sbin/config
>                 make depend all install clean
>                 cd ../../sys/i386/conf
>                 config YOUR_KERNEL_HERE
>                 cd ../../compile/YOUR_KERNEL_HERE
>                 make depend && make
>                 make install
> 
> Kris Kenneway was kind enough to point out that source upgrading from
> 3.4-STABLE to 4.0-STABLE is not supported (now where is *that* documented...
> did I miss it?) and he instructed me on upgrading from 3.4-STABLE
> to 4.0-RELEASE.  I've pulled down the 4.0-RELEASE code and thus far
> the kernel has compiled.

My copy of /usr/src/UPDATING (from 4.0-stable) doesn't look quite like that
but nevermind, you are probably just using a slightly older version.
The sequence of things to do when upgrading from 3.4 to 4.0 is basically:

make buildworld   # It doesn't appear as if you have done this
make buildkernel
make installkernel
reboot using the new kernel
make installworld
mergemaster
reboot

(I have omitted some steps. see /usr/src/UPDATING for all the details.)
Note that the 4.0 kernel has to be built using the 4.0 tools.


> 
> So if I want to go from 3.4-STABLE to 4.0-STABLE I apparently have to
> upgrade *twice* (once to 4.0-RELEASE, then again to 4.0-STABLE).  Does
> it have to be this way?  From an abstract point of view, it seems that
> there should be a straight STABLE upgrade path...

It will probably work to upgrade directly to 4.0-stable but since the
developers don't want to check that it still works after every change to
4.0-stable it isn't (officially) supported.






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000531110336.A1153>