Subject: kern/36193: x86_machdep.c, v. 1.4.2.2 produces error with XEN2_DOM0 kernel configuration
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <dogan@politics.ankara.edu.tr>
List: netbsd-bugs
Date: 04/22/2007 16:00:05
>Number:         36193
>Category:       kern
>Synopsis:       x86_machdep.c, v. 1.4.2.2 produces error with XEN2_DOM0 kernel configuration
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 22 16:00:05 +0000 2007
>Originator:     Mustafa Dogan
>Release:        NetBSD 4.0_BETA2
>Organization:
Ankara University, Faculty of Political Sciences
>Environment:
NetBSD bsd.tesmer.org.tr 4.0_BETA2 NetBSD 4.0_BETA2 (MuDo) #0: Thu Apr 19 00:26:56 EEST 2007  root@bsd.tesmer.org.tr:/root/OBJ/sys/arch/i386/compile/MuDo i386

>Description:
After last changes of (ticket #575) x86_machdep.c, full system rebuild fails while compiling XEN2_DOM0 kernel.

x86_machdep.o: In function `x86_init':
/usr/src/sys/arch/x86/x86/x86_machdep.c:127: undefined reference to `msr_cpu_broadcast_initmtx'
...
nbmake: stopped in /root/OBJ/sys/arch/i386/compile/XEN2_DOM0

*** Failed target:  kern-XEN2_DOM0
*** Failed command: cd /root/OBJ/sys/arch/i386/compile/XEN2_DOM0 && /root/TOOLS/bin/nbmake depend && /root/TOOLS/bin/nbmake
*** Error code 1

>How-To-Repeat:
# cd /usr/src
# ./build.sh -u -U -x -O /some/where/OBJ -T /some/where/TOOLS release

After building other stuff, while compiling kern-XEN2_DOM0 kernel make process stopping with error message (partially quoted) above.
>Fix: