On Fri, Nov 03, 2006 at 12:27:14PM -0500, Jason Murray wrote:
> On Fri, November 3, 2006 0:10, Theo de Raadt said:
> >> Will it be possible to build GENERIC kernel for the next OpenBSD
> >> release 4.1 using release or stable 4.0 system (with comp40.tgz set
> >> installed)?
> >
> > That would be a bit hard, since 4.1 is about 6 months away.
> >
> > But I get your drift.  Can you use -current code to build a kernel.
> > Yes, you can, but you really should not.  Get the 4.0-stable codebase.
> >
> >
> 
> I am actually having trouble doing just this, i.e. compiling a kernel for
> the new relase on an old system. This has been a successful strategy for
> me from 3.5 onward.
> 
> Here's the details: I'm running Raidframe on a 3.9 box. I just downloaded
> (don't bug me about buying the CDs, I donate $10/month via paypal) the
> *.tgz's and cvs'd the source to do the upgrade this weekend. Normally I
> compile the kernel I need with the new source, install the kernel, reboot,
> and finish the upgrade. This has worked well from 3.5 till now. I am
> trying
> to compile a 4.0 GENERIC kernel on my 3.9 box. Here is the output:
> 
> I've already done the configure GENERIC and make clean .
> 
> # make depend
> mkdir -p /usr/src/sys/arch/i386/compile/GENERIC/lib/kern
> depending the kern library objects
> depending the compat library objects
> sh /usr/src/sys/arch/i386/compile/GENERIC/../../../../kern/genassym.sh cc 
> -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-uninitialized
> -Wno-format -Wno-main  -Wstack-larger-than-2047  -fno-builtin-printf
> -fno-builtin-log -O2 -pipe -nostdinc -I.
> -I/usr/src/sys/arch/i386/compile/GENERIC/../../../../arch
> -I/usr/src/sys/arch/i386/compile/GENERIC/../../../.. -DDDB -DDIAGNOSTIC
> -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM
> -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_35 -DCOMPAT_43 -DLKM -DFFS
> -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DXFS -DTCP_SACK
> -DTCP_ECN -DTCP_SIGNATURE -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS
> -DFIFO -DPORTAL -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE
> -DMROUTING -DBOOT_CONFIG -DI386_CPU -DI486_CPU -DI586_CPU -DI686_CPU
> -DUSER_PCICONF -DUSER_LDT -DAPERTURE -DCOMPAT_SVR4 -DCOMPAT_IBCS2
> -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DCOMPAT_BSDOS -DCOMPAT_AOUT -DPROCFS
> -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE -DONEWIREVERBOSE
> -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD
> -DWSDISPLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DPCIAGP -D_KERNEL
> -Di386  -DMAXUSERS=32 <
> /usr/src/sys/arch/i386/compile/GENERIC/../../../../arch/i386/i386/genassym.cf
> > assym.h.tmp &&  mv -f assym.h.tmp assym.h
> cc1: error: unrecognized option `-Wstack-larger-than-2047'
> *** Error code 1
> 
> Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 715 of Makefile).
> 
> 
> Any help would be greatly appreciated.

Read http://www.openbsd.org/faq/upgrade-old.html#20060727, the guide on
upgrading from 3.9 to 4.0.

                Joachim

Reply via email to