Bug #623

kernel doesn't compile

Added by proxy-man about 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hello all! I want compile only the kernel for my DrgonFlyBSD. I do this comands:
make nativekernel KERNCONF=MyKERN
but this doesn't never and return me some error:

[12:26am]root@dragon:/usr/src#make nativekernel KERNCONF=DRAGON

>>> ERROR: Missing kernel configuration file(s) (DRAGON).
>>> Did you move your kernel configs from i386/conf to config/?
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
-------------------
What do I doing something wrong?
:)

History

#1 Updated by bastyaelvtars about 7 years ago

On Mon, 30 Apr 2007 18:30:38 -0000
Ruslan Afanasiev <> wrote:

Is the kernel config called DRAGON in /usr/src/sys/pc32/config?

#2 Updated by bastyaelvtars about 7 years ago

On Mon, 30 Apr 2007 20:56:33 +0200
Gergo Szakal <> wrote:

/usr/src/sys/config I mean (like Sascha).

#3 Updated by swildner about 7 years ago

Yea, do what it tells you. :) Put your kernel config in /usr/src/sys/config.

Sascha

#4 Updated by swildner about 7 years ago

The location of config files can also be set by the env variable
KERNCONFDIR (for those who use the same config for more than one source
tree).

Sascha

#5 Updated by bastyaelvtars about 7 years ago

On Mon, 30 Apr 2007 21:04:30 +0200
Sascha Wildner <> wrote:

I was not aware of this. So this:
# env KERNCONFDIR=/root make buildkernel KERNCONF=MYKERNEL
where MYKERNEL is in /root will work?

#6 Updated by swildner about 7 years ago

Yea, or make buildkernel KERNCONF=MYKERNEL KERNCONFDIR=/root

Sascha

#7 Updated by proxy-man about 7 years ago

On Mon, 30 Apr 2007 18:30:38 -0000

Is the kernel config called DRAGON in /usr/src/sys/pc32/config?
---------------------------------------------------------------------
Yes, It's right

#8 Updated by proxy-man about 7 years ago

[2:38am]root@dragon:/usr/src#make nativekernel KERNCONF=DRAGON

--------------------------------------------------------------
>>> Kernel build for DRAGON started on Tue May 1 02:38:30 EEST 2007
--------------------------------------------------------------
===> DRAGON
rm -rf /usr/obj/usr/src/sys/DRAGON
mkdir -p /usr/obj/usr/src/sys
cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
config/DRAGON
Specify platform architecture, e.g. 'platform pc32'
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
-----------------------------------------------------------------------------
I set variables KERNCONFIG=/root/kernels (in this directory locate my KERNEL)
and I take following message. I don't compile the world, I want compile only
kernel. What meen this message -> "Specify platform architecture, e.g.
'platform pc32'"?
Why in DragonFlyBSD's handbook not exist information about this procedure
(compile only the kernel)?
Forgive me for my poor English... :(

#9 Updated by dillon about 7 years ago

:Ruslan Afanasiev <> added the comment:
:
:[2:38am]root@dragon:/usr/src#make nativekernel KERNCONF=DRAGON
:
:--------------------------------------------------------------
:>>> Kernel build for DRAGON started on Tue May 1 02:38:30 EEST 2007
:--------------------------------------------------------------
:===> DRAGON
:rm -rf /usr/obj/usr/src/sys/DRAGON
:mkdir -p /usr/obj/usr/src/sys
:cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
:config/DRAGON
:Specify platform architecture, e.g. 'platform pc32'

Ah. Your config file is missing a couple of required directives.
Look at /usr/src/sys/config/GENERIC for an example. You need a
'platform', 'machine', and 'machine_arch' directive. And yes,
your config file goes in /usr/src/sys/config/

-Matt

#10 Updated by swildner about 7 years ago

Please make sure that you have:

platform pc32
machine i386
machine_arch i386

in your config.

No one updated it yet.

Sascha

#11 Updated by proxy-man about 7 years ago

Thank all for your cooperation! But with my compile procedure something wrong :(
Now, I take next message:
-----------------------------------------------------------
[3:16am]root@dragon:/usr/src#make nativekernel KERNCONF=DRAGON

--------------------------------------------------------------
>>> Kernel build for DRAGON started on Tue May 1 03:17:51 EEST 2007
--------------------------------------------------------------
===> DRAGON
rm -rf /usr/obj/usr/src/sys/DRAGON
mkdir -p /usr/obj/usr/src/sys
cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
config/DRAGON
config: files.pc32: No such file or directory
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
----------------------------------
Do you have any solutions?
PS:
uname -a
DragonFly dragon.bsd.loc 1.8.1-RELEASE DragonFly 1.8.1-RELEASE #2: Mon Mar 26
08:03:12 PDT 2007 root@:/usr/obj/usr/src/sys/GENERIC i386
PSS: in my GENERIC file is missing following directives:
platform pc32
machine_arch i386

#12 Updated by pavalos about 7 years ago

Try replying with your kernel config.

--Peter

#13 Updated by proxy-man about 7 years ago

My kernel config
------------------------------------[3:24am]root@dragon:/usr/src/sys/i386/
conf#cat DRAGON |grep -v ^#

machine i386
cpu I686_CPU
platform pc32
ident DRAGON
maxusers 0

makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols

options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep this!]
options SOFTUPDATES #Enable FFS soft updates support
options UFS_DIRHASH #Improve performance on big directories
options MFS #Memory Filesystem
options MD_ROOT #MD is a potential root device
options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device, NFS required
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
options CD9660_ROOT #CD-ROM usable as root, CD9660 required
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options UCONSOLE #Allow users to grab the console
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM #Rate limit bad replies
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~215k to driver.
device isa
device pci
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
options ATA_STATIC_ID #Static device numbering
# Allow ncr to attach legacy NCdevices when
# both sym and ncr are configured
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
device psm0 at atkbdc? irq 12
device vga0 at isa?
pseudo-device splash
device sc0 at isa? flags 0x100
options SC_PIXEL_MODE # add support for the raster text mode

device agp # support several AGP chipsets

device npx0 at nexus? port IO_NPX irq 13

device apm0 at nexus? disable flags 0x20 # Advanced Power Managemen

device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device sio1 at isa? port IO_COM2 irq 3
device sio2 at isa? disable port IO_COM3 irq 5
device sio3 at isa? disable port IO_COM4 irq 9

device miibus # MII bus support
device rl # RealTek 8129/8139
device re # RealTek 8139C+/8169
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 1 # Kernel PPP
pseudo-device tun # Packet tunnel.
pseudo-device pty # Pseudo-ttys (telnet etc)
pseudo-device md # Memory "disks"
pseudo-device gif # IPv6 and IPv4 tunneling
pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
pseudo-device bpf #Berkeley packet filter
pseudo-device crypto # core crypto support, used by wlan

#14 Updated by pavalos about 7 years ago

Add:
machine_arch i386

Make sure this file is located at: /usr/src/sys/config/DRAGON

--Peter

#15 Updated by bastyaelvtars about 7 years ago

On Mon, 30 Apr 2007 21:41:30 -0000
Ruslan Afanasiev <> wrote:

platform pc32
machine i386
machine_arch i386
cpu I686_CPU
ident SMP
maxusers 0

machine_arch is also needed, don't know whether the order is important.

#16 Updated by proxy-man about 7 years ago

Peter wrote:
-------------------
Add:
machine_arch i386

Make sure this file is located at: /usr/src/sys/config/DRAGON
---------------------------------------------------------------
I'm sorry... Now I correct my config kernek with options "machine_arch i386",
but I have error again:
-----------------------------
make nativekernel KERNCONF=DRAGON

--------------------------------------------------------------
>>> Kernel build for DRAGON started on Tue May 1 04:24:14 EEST 2007
--------------------------------------------------------------
===> DRAGON
rm -rf /usr/obj/usr/src/sys/DRAGON
mkdir -p /usr/obj/usr/src/sys
cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
config/DRAGON
config: files.pc32: No such file or directory
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
--------------------------------------------------------------------------
After using FreeBSD 5.3 5.4 5.5 6.1 6.2 - DragonFlyBSB seems to me not
completed. There can be I am mistaken? Please do not take offence at my words,
it only reflections of the beginner.

#17 Updated by bastyaelvtars about 7 years ago

On Mon, 30 Apr 2007 22:26:45 -0000
Ruslan Afanasiev <> wrote:

Try a "make clean" first.

#18 Updated by proxy-man about 7 years ago

/usr/src/#make clean
------------skeep---------
"Makefile", line 5: Could not find ../sys/platform/pc32/Makefile.inc
make: fatal errors encountered -- cannot continue
*** Error code 1

Stop in /usr/src.
*** Error code 1
-----------------------
:(

#19 Updated by qhwt+dfly about 7 years ago

^^^^^^^^^^^^
> --------------------------------------------------------------
> >>> Kernel build for DRAGON started on Tue May 1 04:24:14 EEST 2007
> --------------------------------------------------------------
> ===> DRAGON
> rm -rf /usr/obj/usr/src/sys/DRAGON
> mkdir -p /usr/obj/usr/src/sys
> cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
> config/DRAGON
> config: files.pc32: No such file or directory
^^^^^^^^^^

Can you give us the output from the following command on the system
currently installed on your machine?

uname -mrs

Also, which version of DragonFly source tree did you fetch(or checked out)?

Cheers.

#20 Updated by proxy-man about 7 years ago

[1:32pm]root@dragon:/root#uname -mrs
DragonFly 1.8.1-RELEASE i386
What tag I should specify in a cvsup-file to load source codes necessary for me?

#21 Updated by qhwt+dfly about 7 years ago

That depends on which version of DragonFly source tree you want, but
example supfiles reside under /usr/share/examples/cvsup directory
(DragonFly-release1_8-supfile, for example).

Hope this helps.

#22 Updated by proxy-man about 7 years ago

This is listing my cvsup's file. I have finished loading source codes and now I
try to collect a kernel.
-----------------------------------------------------------------------
4:06pm]root@dragon:/root#cat DragonFly-release1_8-supfile |grep -v ^#
*default host=cvsup.dragonflybsd.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=DragonFly_RELEASE_1_8_Slip
*default delete use-rel-suffix
*default compress

dragonfly-cvs-src
-----------------------
:)

#23 Updated by proxy-man about 7 years ago

I have finished compilation of a kernel for my system! I very much would want,
that in a management on system have added the information about such procedure,
as compilation of a kernel. Data which now are in a management, we shall tell
so, mismatch the validity.

#24 Updated by bastyaelvtars about 7 years ago

On Tue, 01 May 2007 11:29:06 -0000
Ruslan Afanasiev <> wrote:

I don't understand your English, but I have covered kernel compilation (especially the nativekernel) procedures in more than one wikipage, here is one:

http://tinyurl.com/2x5mgv

#25 Updated by proxy-man about 7 years ago

On Tue, 01 May 2007 11:18:01 -0000
bastyaelvtars wrote:

I don't understand your English, but I have covered kernel compilation
(especially the nativekernel) procedures in more than one wikipage, here is one:

http://tinyurl.com/2x5mgv
--------------------------
Thank you very much. I am sorry, my English is poor but I want tell for you
that DragonFlyBSD's handbook doesn't have a section about "make nativekernel"
and in handbook isn't exists information about how prepare to compilation the
nativekernel.

#26 Updated by corecode about 7 years ago

please try to avoid using the main server and use a mirror instead. for
example you could use chlamydia.fs.ei.tum.de. this should give you a higher
speed as well.

cheers
simon

Also available in: Atom PDF