buildkernel failed

From: Wang FreeBSD (freebsd.wang_at_gmail.com)
Date: 07/27/05

  • Next message: Lane: "Re: cat /dev/urandom"
    Date: Wed, 27 Jul 2005 08:03:12 +0800
    To: FreeBSD Questions <freebsd-questions@freebsd.org>
    
    

    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@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
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Lane: "Re: cat /dev/urandom"

    Relevant Pages

    • Re: advanced programming unix environment
      ... I would appreciate if somebody else running freebsd 7.0 could download source and see if it makes fine on their installation. ... *** Error code 1 ... be unable to log in as root in any way, ... After the initial install I was able to log ...
      (freebsd-questions)
    • Re: AFS install
      ... I installed AMD64 FreeBSD 8.3 on a new machine a couple of days ago. ... This afternoon I tried to install OpenAFS 1.6.0 on it from ... *** Error code 2 ... the OpenAFS build system has lots of history behind it, ...
      (freebsd-questions)
    • RE: Portinstall problem (config.guess not found)
      ... Freebsd ... The first port I try to to install is generally CVSUP. ... >> Attempting to fetch from ... *** Error code 1 ...
      (freebsd-questions)
    • Installing freebsd 5.4 release
      ... I am facing some problem in installing FreeBSD 5.4 release. ... and tried to install on a machine which already has FreeBSD 5.2.1 release. ... If running the new config fails check your config ... I don't have the source code of FreeBSD 5.2.1 release. ...
      (freebsd-questions)
    • Re: Installation of Freebsd 5.4 release
      ... I want to install the Kame version of MIPv6 for FreeBSD. ... It is giving some config error as follows: ... You can get config sources alone via anoncvs and do as the error message tells ...
      (freebsd-net)