Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2005 08:03:12 +0800
From:      Wang FreeBSD <freebsd.wang@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   buildkernel failed
Message-ID:  <c854b8bb0507261703126a70e0@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm a programmer on Windows but a newbie to FreeBSD.
I installed a new FreeBSD 5.2.1 and want to upgrade to 5-STABLE.
I had try 5.4 and meet the problem too.

When I buildworld meet some problem in libstdc++, can't found
unwind.h. I fixed it by modify the Makefile under libstdc++, set
CXXFLAGS has the same including path with CFLAGS, it's gone further.=20
But failed in libgroff again, fixed by same way and make again. It's
report a function declare mkstemp in "lib.h" conflict with the declare
in "stdlib.h".  I modify the "lib.h"  and a macro definition to
disable declare in "stdlib.h".  The problem doesn't solved but becomes
biger and biger.
So I rename /usr/src to /usr/src_bak and get the 5-STABLE source file.
when I buildkernel, it raise error about config.
How can I do? Thank you very much!
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
alan# make buildkernel
=20
--------------------------------------------------------------
>>> Kernel build for GENERIC started on Wed Jul 27 07:42:42 CST 2005
--------------------------------------------------------------
=3D=3D=3D> GENERIC
mkdir -p /usr/obj/usr/src/sys
=20
--------------------------------------------------------------
>>> stage 1: configuring the kernel
--------------------------------------------------------------
cd /usr/src/sys/i386/conf;=20
PATH=3D/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/u=
sr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbi=
n:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:=
/usr/sbin:/usr/bin
 config  -d /usr/obj/usr/src/sys/GENERIC=20
/usr/src/sys/i386/conf/GENERIC
ERROR: version of config(8) does not match kernel!
config version =3D 500012, version required =3D 500013
=20
Make sure that /usr/src/usr.sbin/config is in sync
with your /usr/src/sys and install a new config binary
before trying this again.
=20
If running the new config fails check your config
file against the GENERIC or LINT config files for
changes in config syntax, or option/device naming
conventions
=20
*** Error code 1
=20
Stop in /usr/src.
*** Error code 1
=20
Stop in /usr/src.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
uname -a=20
FreeBSD alan.jane.net 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb
23 20:45:55 GMT 2004   =20
root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
/etc/make.conf

CPUTYPE=3Di686
CFLAGS=3D -O -pipe
CXXFLAGS=3D -O -pipe
#CXFLAGS+=3D -fmemoize-lookups -fsave-memoized
COPTFLAGS=3D -O -pipe
#WANT_FORCE_OPTIMIZATION_DOWNGRADE=3D1
                                                                           =
    =20
NO_FORTRAN=3D     true
NO_I4B  =3D       true
NO_IPFILTER=3D    true
NO_LPR  =3D       true
NO_OBJC =3D       true
NO_SENDMAIL=3D    true
NOGAMES =3D       true
NO_MAILWRAPPER=3D true



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