Solved Kernel build error

Fbsdnew

Member

Reaction score: 4
Messages: 87

Any help would be appreciated. Ive never seen this error and dont know what to do?
Code:
MYKERNEL'
ERROR: version of config(8) does not match kernel!
config version = 600016, version required = 600018

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.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,085
Messages: 33,642

I've never seen this error and don't know what to do?
Your source tree is out of sync. How did you get the source? What did you use? And what version of FreeBSD do you have?
 

mjollnir

Aspiring Daemon

Reaction score: 269
Messages: 658

Iff you have a standard binary release of FreeBSD installed, freebsd-update should help you. If you installed the source tree via SVN, do svnlite update from within /usr/src.
EDIT: you have the docs installed, don't you? pkg install {de,en}-freebsd-doc, replace de w/ your native tongue & point your favorite browser to /usr/local/share/docs/freebsd/
 
OP
F

Fbsdnew

Member

Reaction score: 4
Messages: 87

Your source tree is out of sync. How did you get the source? What did you use? And what version of FreeBSD do you have?
I updated source tree and did freebsd-update and still getting the same error.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,085
Messages: 33,642

Ok, that's good. Make sure to remove the src component from freebsd-update.conf so these two methods don't interfere.

What does svn info /usr/src/ show? And what version of FreeBSD do you have?
 
OP
F

Fbsdnew

Member

Reaction score: 4
Messages: 87

Ok, that's good. Make sure to remove the src component from freebsd-update.conf so these two methods don't interfere.

What does svn info /usr/src/ show? And what version of FreeBSD do you have?
Code:
root@machine17:~ # svn info /usr/src/
Path: /usr/src
Working Copy Root Path: /usr/src
URL: https://svn.freebsd.org/base/head
Relative URL: ^/head
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 363221
Node Kind: directory
Schedule: normal
Last Changed Author: vangyzen
Last Changed Rev: 363221
Last Changed Date: 2020-07-15 07:26:15 -0600 (Wed, 15 Jul 2020)
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,085
Messages: 33,642

Assuming you want the source for 12.1-RELEASE, yes.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,085
Messages: 33,642

Did you clean out your partially finished previous attempts? make -C /usr/src clean
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,085
Messages: 33,642

Anything in /etc/make.conf? Or /etc/src.conf? And what version do you have?
 
OP
F

Fbsdnew

Member

Reaction score: 4
Messages: 87

I'm 12.1-RELEASE-p7

Nothing in src.conf but in make.conf there is "DEVELOPER=yes"
 

mjollnir

Aspiring Daemon

Reaction score: 269
Messages: 658

Did you already change/edit any file of the source tree? Did you add any file? E.g. the GENERIC kernel config?
  • What suspects me is I have 12.1-REL-p7, too. And usr.sbin/config/configvers.h has
    Code:
    #define CONFIGVERS 600016
    . So IMHO this is a bug in the last update to -p7
 

Elazar

Well-Known Member

Reaction score: 127
Messages: 304

Is this a custom kernel, or a GENERIC?

I read this in the error message:
MYKERNEL
[...]
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
Whats your build command?
 
OP
F

Fbsdnew

Member

Reaction score: 4
Messages: 87

Did you already change/edit any file of the source tree? Did you add any file? E.g. the GENERIC kernel config?
  • What suspects me is I have 12.1-REL-p7, too. And usr.sbin/config/configvers.h has
    Code:
    #define CONFIGVERS 600016
    . So IMHO this is a bug in the last update to -p7
I did not. What is IMHO
 

mjollnir

Aspiring Daemon

Reaction score: 269
Messages: 658

IMHO=In My Humble Opinion
Tipp Tip: I have a dictionary in my GUI's taskbar, it also looks up words in the Jargon File & Urban Dictionary. There are also lists of these in wikipedia, but I do not find the english version.
 
Last edited:

bjs

Member

Reaction score: 38
Messages: 96

Tipp: I have a dictionary in my GUI's taskbar, it also looks up words in the Jargon File & Urban Dictionary. There are also lists of these in wikipedia, but I do not find the english version.
The word is spelled "Tip"... Might want to use that dictionary a little more if English is not your first language or pay attention to the build in spell checker here in the forum... :)
 

mjollnir

Aspiring Daemon

Reaction score: 269
Messages: 658

Thx, I thought a tip is only what I give to the waiter. My connection is dial-up, bad latency, thus I avoid using such tools too often.
 

vigole

Active Member

Reaction score: 197
Messages: 168

Can you build a GENERIC kernel on your system? Remove src directory, create new one, checkout the 12.1:
svn checkout https://svn.freebsd.org/base/releng/12.1 /usr/src
Replace /etc/make.conf /etc/src.conf with default ones (not modified). Try to build a GENERIC kernel (no modifications). Report back the result.
 
Top