Building custom kernel with new files
Ryan French
rfrench at freebsd.org
Sat Aug 16 21:05:24 UTC 2008
On Sat, 16 Aug 2008 10:38:24 pm you wrote:
> 2008/8/16, Ryan French <rfrench at freebsd.org>:
> > Hi All,
> >
> > I am currently trying to build a custom kernel for my Google Summer of
> > Code, and am running into a bit of a problem. I have all of my code
> > compiling, but when I get to the linking stage as soon as it comes to the
> > new files I have installed it says the *.o does not exist. I have added
> > the files to /conf/files, and well as added the files to /conf/options
> > and /conf/NOTES, and the option is set in my Makefile for the kernel. Is
> > there another step I need to do before I can build the kernel?
>
> Ryan,
> can you please past the error message?
> More specifically, missing .o are about your newly included files or other?
> This can happen, for example, if the consumer of a subsystem wants to
> use it and the subsystem is not compiled (the stack(9) without STACK
> option, for example).
>
> Thanks,
> Attilio
The missing .o is about my own files that I have included in the kernel. More
specifically I have a file 'mpls.h' and as it is the first one in the
directory as soon as it gets to linking the file I get the error
ld: mpls.o: No such file: No such file or directory
*** Error code 1
This occurs right after the command
MAKE=make sh /usr/src/sys/conf/newvers.sh MPLSKERNEL
Sorry I cant copy the whole error but I am running the development in a VM and
I cant copy and paste between the VM and my host machine.
More information about the freebsd-hackers
mailing list