Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Where does the kernel get built?



On Mon, 28 Nov 2011, D'Arcy Cain wrote:
Now I get this:

obj ===> tools
obj ===> tools/host-mkdep
#    objdir  /usr/obj/tools/host-mkdep
ln: obj: Permission denied

I suspect that you have a have a read-only source tree, and that you did not set either MAKEOBJDIR or MAKEOBJDIRPREFIX in the environment (or on the build.sh command line using -M or -O). When you try to build without MAKEOBJDIR or MAKEOBJDIRPREFIX, but with MKOBJ (which is the default), then bsd.obj.mk attempts to create an "obj" symlink in each subdirectory of the source tree. Obviously that won't work in a read-only source tree.

If you try adding "-O /usr/obj" or "-O ../obj" to the build.sh command line, then it will set MAKEOBJDIR in a way that is likely to work. Obviously src/BUILDING needs to be updated to explain this better.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index