NAKAJI Hiroyuki
2005-May-22 01:30 UTC
[RELENG_4] buildkernel failure with MAKEOBJDIRPREFIX
Hello, I tried to rebuild a debug kernel to analyze one of my problem(*), and, I faced to another problem. Now this is the main problem for me. The problem I have now is that 'make buildkernel' does not refer to ${MAKEOBJDIRPREFIX} set in /etc/make.conf. The reason I will use MAKEOBJDIRPREFIX is that my /usr/obj does not have enough space to build the debug kernel with DEBUG=-g. I set MAKEOBJDIRPREFIX=/other/big/directory in /etc/make.conf and ran 'make buildkernel' in /usr/src. And got an error "/usr/src: file system full". Because /usr/src is another partition and has as small space as /usr/obj. /usr/src is 400MB and /usr/obj is 500MB which are enouch to build normal RELENG_4 world. I noticed that modules are built in /usr/src/sys/modules not in ${MAKEOBJDIRPREFIX}/usr/src/sys/modules. Of cource, kernel.debug is created in ${MAKEOBJDIRPREFIX}/usr/src/sys/CONFIG/kernel.debug. I think this is a bug of make, *.mk or other Makefiles in /sys but I cannot fix it. (*) When running /usr/sbin/ppp to connect to the provider with PPPoE, the system gets panic with 'fatal trap 12' after several days of uptime. I have seen this panic twice in these 10 days. -- NAKAJI Hiroyuki
On Sun, May 22, 2005 at 10:30:12AM +0900, NAKAJI Hiroyuki wrote:> Hello, > > I tried to rebuild a debug kernel to analyze one of my problem(*), > and, I faced to another problem. Now this is the main problem for me. > > The problem I have now is that 'make buildkernel' does not refer to > ${MAKEOBJDIRPREFIX} set in /etc/make.conf. The reason I will use > MAKEOBJDIRPREFIX is that my /usr/obj does not have enough space to > build the debug kernel with DEBUG=-g. > > I set MAKEOBJDIRPREFIX=/other/big/directory in /etc/make.conf and ran > 'make buildkernel' in /usr/src. And got an error "/usr/src: file > system full". Because /usr/src is another partition and has as small > space as /usr/obj. /usr/src is 400MB and /usr/obj is 500MB which are > enouch to build normal RELENG_4 world. > > I noticed that modules are built in /usr/src/sys/modules not in > ${MAKEOBJDIRPREFIX}/usr/src/sys/modules. Of cource, kernel.debug is > created in ${MAKEOBJDIRPREFIX}/usr/src/sys/CONFIG/kernel.debug. > > I think this is a bug of make, *.mk or other Makefiles in /sys but I > cannot fix it. >No, this is because MAKEOBJDIRPREFIX must be an environment variable and should not be set on make's command line or in /etc/make.conf. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050523/c905b43a/attachment.bin