Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2010 08:56:24 +0000
From:      Colin <freebsd@southportcomputers.co.uk>
To:        freebsd-stable@freebsd.org
Subject:   make buildkernel failing on zfs
Message-ID:  <4B596838.9020609@southportcomputers.co.uk>

next in thread | raw e-mail | index | archive | help
Hi Folks,
I'm having a problem since I upgraded from 7.0 to the latest stable over 
Christmas with quotas and exim not rebuilding.
I'm told that exim requires NIS and WITHOUT_NIS=yes was defined in 
/usr/src.conf
My  /usr/src.conf for that build is as follows though I've removed it 
for a test build:

WITHOUT_ATM=yes
WITHOUT_BLUETOOTH=yes
WITHOUT_GAMES=yes
WITHOUT_I4B=yes
WITHOUT_IPX=yes
WITHOUT_NCP=yes
WITHOUT_NIS=yes
WITHOUT_SENDMAIL=yes
WITHOUT_INET6=yes
WITHOUT_PROFILE=yes

I've been building with the following command (this worked with the 
sources I used at Christmas, but I updated yesterday and now it won't):

cd /usr/src && make buildworld | tee /root/build && make 
kernel-toolchain | tee /root/build2 && make -DALWAYS_CHECK_MAKE 
buildkernel KERNCONF=TED | tee /root/build3

It goes for a while and then the buildkernel fails with this:

cc -O2 -fno-strict-aliasing -pipe -DFREEBSD_NAMECACHE -DBUILDING_ZFS  
-D_KERNEL -DKLD_MODULE -std=c99 -nostdinc  
-I/usr/src/sys/modules/zfs/../../cddl/compat/opensolaris 
-I/usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/commo
n/fs/zfs 
-I/usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/zmod 
-I/usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common 
-I/usr/src/sys/modules/zfs/../.. 
-I/usr/src/sys/modules/zfs/../../cddl/contrib/openso
laris/common/zfs 
-I/usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common 
-I/usr/src/sys/modules/zfs/../../../include -DHAVE_KERNEL_OPTION_HEADERS 
-include /usr/obj/usr/src/sys/TED/opt_global.h -I. -I@ -I@/contrib/altq 
-finline-l
imit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000 -fno-common -g -I/usr/obj/usr/src/sys/TED 
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx 
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -
Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -Wno-unknown-pragmas 
-Wno-missing-prototypes -Wno-undef -Wno-strict-pro
totypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls 
-Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline 
-Wno-switch -Wno-pointer-arith -c 
/usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_z
node.c
*** Error code 1

Stop in /usr/src/sys/modules/zfs.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/TED.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


It is a custom kernel and the conf file is here: 
http://www.pastebin.org/80156
First build I used the old conf file and that failed then I compared the 
generic and the custom before attempting this rebuild and copied in a 
couple of new lines (options P1003_1B_SEMAPHORES and device vlan) but 
they've nothing to do with it from what I can tell.
I don't even need zfs seen as this is a ufs machine but I do need some 
of the other options in the kernel hence using custom.
I am currently running another csup and will try building a generic 
kernel to see if that works but I can't really install a generic.

Anyone got any pointers?
Cheers,
Colin.



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