Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Aug 2008 09:05:22 +1200
From:      Ryan French <rfrench@freebsd.org>
To:        "Attilio Rao" <attilio@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Building custom kernel with new files
Message-ID:  <200808170905.22691.rfrench@freebsd.org>
In-Reply-To: <3bbf2fe10808160338s19d25242id2f008744ab24ede@mail.gmail.com>
References:  <200808162210.02467.rfrench@freebsd.org> <3bbf2fe10808160338s19d25242id2f008744ab24ede@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 16 Aug 2008 10:38:24 pm you wrote:
> 2008/8/16, Ryan French <rfrench@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808170905.22691.rfrench>