buildkernel failed

Wang FreeBSD freebsd.wang at gmail.com
Wed Jul 27 00:03:14 GMT 2005


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. 
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!
================================================
alan# make buildkernel
 
--------------------------------------------------------------
>>> Kernel build for GENERIC started on Wed Jul 27 07:42:42 CST 2005
--------------------------------------------------------------
===> GENERIC
mkdir -p /usr/obj/usr/src/sys
 
--------------------------------------------------------------
>>> stage 1: configuring the kernel
--------------------------------------------------------------
cd /usr/src/sys/i386/conf; 
PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/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 
/usr/src/sys/i386/conf/GENERIC
ERROR: version of config(8) does not match kernel!
config version = 500012, version required = 500013
 
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.
 
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
 
*** Error code 1
 
Stop in /usr/src.
*** Error code 1
 
Stop in /usr/src.

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

CPUTYPE=i686
CFLAGS= -O -pipe
CXXFLAGS= -O -pipe
#CXFLAGS+= -fmemoize-lookups -fsave-memoized
COPTFLAGS= -O -pipe
#WANT_FORCE_OPTIMIZATION_DOWNGRADE=1
                                                                                
NO_FORTRAN=     true
NO_I4B  =       true
NO_IPFILTER=    true
NO_LPR  =       true
NO_OBJC =       true
NO_SENDMAIL=    true
NOGAMES =       true
NO_MAILWRAPPER= true


More information about the freebsd-questions mailing list