Re: RELENG_7: buildworld failed with MODULES_WITH_WORLD=



On Wed, Sep 24, 2008 at 02:14:01AM +0800, Eugene Grosbein wrote:
On Wed, Sep 24, 2008 at 01:27:18AM +0800, Eugene Grosbein wrote:

I've just tried to build NanoBSD from 7.0-STABLE sources
with MODULES_WITH_WORLD knob enabled and it failed.
Note that NanoBSD uses make -j3 by default and I have dualcore system.

===> sys/modules/nfslockd (depend)
@ -> /usr/local/src/sys
machine -> /usr/local/src/sys/i386/include
echo "#define INET6 1" > opt_inet6.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
rm -f .depend
mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I. -I@
-I@/contrib/altq /usr/local/src/sys/modules/nfslockd/../../nlm/nlm_advlock.c
/usr/local/src/sys/modules/nfslockd/../../nlm/nlm_prot_clnt.c
/usr/local/src/sys/modules/nfslockd/../../nlm/nlm_prot_impl.c
/usr/local/src/sys/modules/nfslockd/../../nlm/nlm_prot_server.c
/usr/local/src/sys/modules/nfslockd/../../nlm/nlm_prot_svc.c
/usr/local/src/sys/modules/nfslockd/../../nlm/nlm_prot_xdr.c
/usr/local/src/sys/modules/nfslockd/../../nlm/sm_inter_xdr.c
In file included from
/usr/local/src/sys/modules/nfslockd/../../nlm/nlm_advlock.c:48:
@/nfsclient/nfs.h:40:21: error: opt_nfs.h: No such file or directory
In file included from
/usr/local/src/sys/modules/nfslockd/../../nlm/nlm_prot_impl.c:56:
@/nfsclient/nfs.h:40:21: error: opt_nfs.h: No such file or directory
mkdep: compile failed
*** Error code 1

This is easily repeatable without involving NanoBSD stuff,
just with 'cd /usr/src; make -j3 MODULES_WITH_WORLD=yes buildworld'.

I think this patch should be applied, at least it works for me:

--- sys/modules/nfslockd/Makefile.orig 2008-08-09 16:07:45.000000000 +0800
+++ sys/modules/nfslockd/Makefile 2008-09-24 02:02:23.000000000 +0800
@@ -10,7 +10,7 @@
nlm_prot_svc.c \
nlm_prot_xdr.c \
sm_inter_xdr.c
-SRCS+= opt_inet6.h
+SRCS+= opt_inet6.h opt_nfs.h

.if !defined(KERNBUILDDIR)
NFS_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel
@@ -19,6 +19,9 @@
opt_inet6.h:
echo "#define INET6 1" > ${.TARGET}
.endif
+
+opt_nfs.h:
+ echo -n > ${.TARGET}
.endif

.include <bsd.kmod.mk>

First chunk of your patch was already committed by Paul Saab as r181040.
You may ask him to do MFC and merge second chunk, if needed.

Attachment: pgp31PJpie44o.pgp
Description: PGP signature



Relevant Pages

  • Re: RELENG_7: buildworld failed with MODULES_WITH_WORLD=
    ... Note that NanoBSD uses make -j3 by default and I have dualcore system. ... I think this patch should be applied, at least it works for me: ...
    (freebsd-stable)
  • Re: cross-arch building picobsd/nanobsd images ?
    ... All my patchs for nanobsd are available on BSD Router Project ... nanobsd patch but without the "compiling ports" feature, ... only cross-compile word/kernel and I didn't know how to cross-compile ...
    (freebsd-current)
  • Re: cross-arch building picobsd/nanobsd images ?
    ... I using "little" cross-building nanobsd images. ... nanobsd patch but without the "compiling ports" feature, ... only cross-compile word/kernel and I didn't know how to cross-compile ...
    (freebsd-current)
  • compilation with NO_YP_LIBC
    ... I have updated my patch to make world compilable with NO_YP_LIBC set ... nanobsd when no NIS is needed. ... similari to nanobsd the last days. ... To unsubscribe, ...
    (freebsd-current)
  • Re: "nanobsd" prototype
    ... >>wouldn't it make sense to put nanoBSD in release alongside picoBSD? ... following minor patch to /usr/src/Makefile.inc1 which i believe is ...
    (freebsd-current)