Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2013 20:32:12 +0100
From:      Zenny <garbytrash@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   FreeBSD10-Beta 3 make buildkernel error
Message-ID:  <CACuV5sCWVA7ddZ3%2Bo3XwGTk25c%2BwqDCwk6_FRbCf2Rg%2BJk4o%2Bw@mail.gmail.com>

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

I am trying to recompile FreeBSD10-Beta3 with the following parameters:

# cat /usr/src/sys/amd64/conf/PROD
include         GENERIC
ident           PROD

nooptions    DEADLKRES
nooptions    INVARIANTS
nooptions    INVARIANT_SUPPORT
nooptions    WITNESS
nooptions    WITNESS_SKIPSPIN
nooptions    MALLOC_DEBUG_MAXZONES
options VIMAGE
options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_BRIDGE
options NETGRAPH_EIFACE
options NETGRAPH_SOCKET
nooptions SCTP
options VPS
options RACCT
options RCTL

But I get the following error during make buildkernel:

<SNIP>
cc  -c -O2 -pipe -fno-strict-aliasing  -std=c99 -g -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
-fdiagnostics-show-option  -Wno-error-tautological-compare
-Wno-error-empty-body  -Wno-error-parentheses-equality  -nostdinc  -I.
-I/usr/src/sys -I/usr/src/sys/contrib/altq
-I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h  -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-Werror  /usr/src/sys/kern/kern_jail.c
/usr/src/sys/kern/kern_jail.c:4537:12: error: use of undeclared
identifier 'allproc_lock'; did you mean 'allprison_lock'?
        sx_slock(&allproc_lock);
                  ^
/usr/src/sys/sys/sx.h:251:34: note: expanded from macro 'sx_slock'
#define sx_slock(sx)            sx_slock_((sx), LOCK_FILE, LOCK_LINE)
                                           ^
/usr/src/sys/sys/sx.h:231:20: note: expanded from macro 'sx_slock_'
        (void)__sx_slock((sx), 0, (file), (line))
                          ^
/usr/src/sys/kern/kern_jail.c:140:11: note: 'allprison_lock' declared here
struct  sx allprison_lock;
           ^
/usr/src/sys/kern/kern_jail.c:4542:15: error: use of undeclared
identifier 'allproc_lock'; did you mean 'allprison_lock'?
                sx_sunlock(&allproc_lock);
                            ^
/usr/src/sys/sys/sx.h:253:38: note: expanded from macro 'sx_sunlock'
#define sx_sunlock(sx)          sx_sunlock_((sx), LOCK_FILE, LOCK_LINE)
                                             ^
/usr/src/sys/sys/sx.h:235:16: note: expanded from macro 'sx_sunlock_'
        __sx_sunlock((sx), (file), (line))
                      ^
/usr/src/sys/kern/kern_jail.c:140:11: note: 'allprison_lock' declared here
struct  sx allprison_lock;
           ^
/usr/src/sys/kern/kern_jail.c:4567:14: error: use of undeclared
identifier 'allproc_lock'; did you mean 'allprison_lock'?
        sx_sunlock(&allproc_lock);
                    ^
/usr/src/sys/sys/sx.h:253:38: note: expanded from macro 'sx_sunlock'
#define sx_sunlock(sx)          sx_sunlock_((sx), LOCK_FILE, LOCK_LINE)
                                             ^
/usr/src/sys/sys/sx.h:235:16: note: expanded from macro 'sx_sunlock_'
        __sx_sunlock((sx), (file), (line))
                      ^
/usr/src/sys/kern/kern_jail.c:140:11: note: 'allprison_lock' declared here
struct  sx allprison_lock;
           ^
3 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/sys/PROD
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACuV5sCWVA7ddZ3%2Bo3XwGTk25c%2BwqDCwk6_FRbCf2Rg%2BJk4o%2Bw>