Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 97 21:23:09 +0100
From:      Ben Stuyts <benst@terminus.stuyts.nl>
To:        freebsd-smp@freebsd.org
Subject:   make -j8 of kernel fails
Message-ID:  <199711232023.VAA06477@daneel.stuyts.nl>

next in thread | raw e-mail | index | archive | help
Hi,

A few days ago I reported having trouble getting the kernel to compile with  
make -j4. Thank you to all of you who pointed out to me that I had to do a  
make depend first.

It works now with make -j2, make -j4, make -j6 but not with make -j8:

# make -j8
...
--- genassym ---
--- cd9660_bmap.o ---
--- cd9660_lookup.o ---
--- genassym ---
cc -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit   
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith  
-Winline -Wuninitialized  -nostdinc -I- -I. -I../.. -I../../../include  
-DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include opt_global.h  
-DMAXUSERS=10 genassym.o -o genassym
--- cd9660_bmap.o ---
cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit   
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith  
-Winline -Wuninitialized  -nostdinc -I- -I. -I../.. -I../../../include  
-DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include opt_global.h   
../../isofs/cd9660/cd9660_bmap.c
--- cd9660_lookup.o ---
cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit   
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith  
-Winline -Wuninitialized  -nostdinc -I- -I. -I../.. -I../../../include  
-DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include opt_global.h   
../../isofs/cd9660/cd9660_lookup.c
--- cd9660_node.o ---
--- ide_pci.o ---
../../pci/ide_pci.c: In function `ide_pci_attach':
../../pci/ide_pci.c:932: warning: `class' might be used uninitialized in this  
function
--- cd9660_rrip.o ---
--- cd9660_node.o ---
cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit   
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith  
-Winline -Wuninitialized  -nostdinc -I- -I. -I../.. -I../../../include  
-DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include opt_global.h   
../../isofs/cd9660/cd9660_node.c
--- cd9660_rrip.o ---
cc -c -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit   
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith  
-Winline -Wuninitialized  -nostdinc -I- -I. -I../.. -I../../../include  
-DCOMPAT_43 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -include opt_global.h   
../../isofs/cd9660/cd9660_rrip.c
--- cd9660_bmap.o ---
vnode_if.h: In function `VOP_IOCTL':
In file included from ../../sys/vnode.h:429,
                 from ../../isofs/cd9660/cd9660_bmap.c:43:
vnode_if.h:395: `VOFFSETstruct' undeclared (first use this function)
vnode_if.h:395: (Each undeclared identifier is reported only once
vnode_if.h:395: for each function it appears in.)
vnode_if.h:395: parse error before `vop_lookup_args'
vnode_if.h:417: parse error before `)'
vnode_if.h:418: warning: control reaches end of non-void function
vnode_if.h: At top level:
vnode_if.h:419: redefinition of `struct vop_cachedlookup_args'
vnode_if.h:425: warning: redundant redeclaration of `vop_cachedlookup_desc'  
in same scope
vnode_if.h:39: warning: previous declaration of `vop_cachedlookup_desc'
vnode_if.h:429: warning: redundant redeclaration of `VOP_CACHEDLOOKUP' in same scope
vnode_if.h:45: warning: previous declaration of `VOP_CACHEDLOOKUP'
vnode_if.h:431: redefinition of `VOP_CACHEDLOOKUP'
vnode_if.h:45: `VOP_CACHEDLOOKUP' previously defined here
vnode_if.h:443: redefinition of `struct vop_create_args'
...
vnode_if.h:2115: warning: previous declaration of `VOP_BWRITE'
vnode_if.h:2151: redefinition of `VOP_BWRITE'
vnode_if.h:2115: `VOP_BWRITE' previously defined here
vnode_if.h:2160: warning: redundant redeclaration of `vfs_opv_numops' in same scope
vnode_if.h:2124: warning: previous declaration of `vfs_opv_numops'
*** Error code 1
--- aicasm ---
--- aicasm ---
cc -O2 -m486 -pipe -I.    -o aicasm aicasm_gram.o aicasm_scan.o aicasm.o  
aicasm_symbol.o  -ll
4 errors

Not that it matters much, as I didn't see any improvement between make -j4  
and make -j6. I'm just curious. Any ideas?

BTW, here are the results. This is on a Gigabyte 586DX with dual Pentium 166  
MMX, 64 MB ram.

# time make depend
10.644u 41.158s 1:07.81 76.3%   68+158k 1129+110io 111pf+0w
# time make
165.267u 144.833s 5:10.58 99.8% 232+369k 417+786io 10pf+0w
# make clean
# time make
173.514u 144.070s 5:16.03 100.4%        235+374k 97+799io 5pf+0w
# make clean
# time make -j2
288.467u 115.366s 4:10.20 161.3%        484+678k 254+1106io 6pf+0w
# make clean
# time make -j4
300.744u 109.622s 3:42.40 184.5%        525+746k 639+1098io 40pf+0w
# make clean
# time make -j6
306.630u 108.608s 3:41.79 187.2%        531+747k 389+1083io 33pf+0w

Thanks,
Ben



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