Kernel compile R7.0 i386 GENERIC, fails

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Aug 11 22:55:39 UTC 2008


On Mon, 11 Aug 2008 18:32:02 +0200 (MEST), Peter B <pb at ludd.ltu.se> wrote:
>>> Extracted sources: sbase, srelease, ssys
>>
>> You also need scontrib (ACPI sources are there) component and maybe
>> some others for successful build.  btw, this is not a very usual (and
>> a simple) way to make kernel.
>
> I added "device acpi" to the kernel configuration file. And it made the error
> go away. I'm downloading scontrib.* now.
>
> But now it complains on:
> ln -sf /usr/obj/usr/src/sys/GENERIC/opt_ses.h opt_ses.h
> awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
> awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
> awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
> make: don't know how to make cam.c. Stop
> *** Error code 2

> In previous releases. It was possible to make at leas the generic
> kernel compile out of the box.

It still is.  You have to get the full sources though.

What you are trying to do now, by extracting more parts of the source
tree as you need them is a very good way to learn the dependencies of
the various parts of the source tree, but it is likely to fail a few
times until you get all the necessary bits.

All this is *very* good as learning experience, but it may be
frustrating if you just want ``something that works now, instead of,
say, a week later''.



More information about the freebsd-questions mailing list