>Number:         187854
>Category:       docs
>Synopsis:       options XENHVM requires options SMP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 23 15:50:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Stevenson
>Release:        10-RELEASE
>Organization:
UgH!
>Environment:
10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     
r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
If compiling a kernel with options XENHVM the build will fail unless you also 
have options SMP.

cc  -c -O2 -pipe -fno-strict-aliasing -march=k8 -std=c99 -gdwarf-2 -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 -Wno-unused-function   -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/x86/xen/hvm.c
/usr/src/sys/x86/xen/hvm.c:120:18: error: use of undeclared identifier 
'lapic_ipi_vectored'; did you mean 'xen_ipi_vectored'?
        .ipi_vectored   = lapic_ipi_vectored,
                          ^~~~~~~~~~~~~~~~~~
                          xen_ipi_vectored
/usr/src/sys/x86/xen/hvm.c:75:13: note: 'xen_ipi_vectored' declared here
static void xen_ipi_vectored(u_int vector, int dest);
            ^
1 error generated.
*** Error code 1

Stop.


I don't know this dependency is a problem per se but it should be documented, 
e.g in xen(4) or in comments in GENERIC or if it is documented then documented 
in bigger letters :-)
>How-To-Repeat:
cd /usr/src/sys/amd64/conf
cp GENERIC BLAH
<edit blah to comment out options SMP>
cd /usr/src
make build kernel KERNCONF=BLAH
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-doc@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "freebsd-doc-unsubscr...@freebsd.org"

Reply via email to