LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   SMP- support XEN3 DOM0 (https://www.linuxquestions.org/questions/%2Absd-17/smp-support-xen3-dom0-585551/)

basteon 09-18-2007 09:22 AM

SMP- support XEN3 DOM0
 
Hi all.
I hope somebody could help me.
I use netbsd current 4.99.17 and want to build xen dom0 kernel support multiprocessor regime, but I'll got this bug...
Code:

#  compile  XEN3_DOM0/bios32.o
/usr/src/tooldir/bin/i386--netbsdelf-gcc -ffreestanding -fno-zero-initialized-in-bss
 -march=i686 -g -O2
-Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign
-Wno-attributes -fno-strict-aliasing
-Di386 -I. -I/usr/obj/obj_dir/sys/arch/i386/compile/XEN3_DOM0/xen-ma
 -I/usr/src/sys/../common/include -I/usr/src/sys/arch
-I/usr/src/sys -nostdinc -DVM86 -DUSER_LDT -DCONSDEVNAME="xencons" -DCONS_OVERRIDE
 -DLKM -DDIAGNOSTIC -DDEBUG -DMSGBUFSIZE=24576
 -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string
 -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
-I/usr/src/sys/dist/pf -c /usr/src/sys/arch/xen/i386/bios32.c
cc1: warnings being treated as errors
/usr/src/sys/arch/xen/i386/bios32.c: In function 'bios32_init':
/usr/src/sys/arch/xen/i386/bios32.c:168: warning: comparison of distinct pointer types lacks a cast
*** [bios32.o] Error code 1
1 error

nbmake: stopped in /usr/obj/obj_dir/sys/arch/i386/compile/XEN3_DOM0

ERROR: Failed to make all in /usr/obj/obj_dir/sys/arch/i386/compile/XEN3_DOM0
*** BUILD ABORTED ***

kernel config...
Code:

include        "arch/xen/conf/std.xen"
options        INCLUDE_CONFIG_FILE    # embed config file in kernel binary
maxusers        64              # estimated number of users
options        XEN
options        DOM0OPS
options        APM_NO_IDLE
options        I686_CPU
makeoptions    CPUFLAGS="-march=i686"
options        VM86            # virtual 8086 emulation
options        USER_LDT        # user-settable LDT; used by WINE
options        CONSDEVNAME="\"xencons\""
options        CONS_OVERRIDE
options        INSECURE        # disable kernel security levels - X needs this
options        RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
options        NTP            # NTP phase/frequency locked loop
options        SYSVMSG        # System V-like message queues
options        SYSVSEM        # System V-like semaphores
options        SEMMNI=512      # number of semaphore identifiers
options        SEMMNS=1024    # number of semaphores in system
options        SEMUME=512      # max number of undo entries per process
options        SEMMNU=512      # number of undo structures in system
options        SYSVSHM        # System V-like memory sharing
options        SHMMAXPGS=59400 # 2048 pages is the default
options        P1003_1B_SEMAPHORE      # p1003.1b semaphore support
options        LKM            # loadable kernel modules
options        USERCONF        # userconf(4) support
options        SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
options        DIAGNOSTIC      # expensive kernel consistency checks
options        DEBUG          # expensive debugging checks/support
options        KMEMSTATS      # kernel memory statistics (vmstat -m)
options        DDB            # in-kernel debugger
options        DDB_ONPANIC=1  # see also sysctl(8): `ddb.onpanic'
options        DDB_HISTORY_SIZE=512    # enable history editing in DDB
makeoptions    DEBUG="-g"      # compile full symbol table
options        COMPAT_20      # NetBSD 2.0
options        COMPAT_30      # NetBSD 3.0 compatibility.
options        COMPAT_43      # 4.3BSD, 386BSD, and BSDI
options        COMPAT_386BSD_MBRPART # recognize old partition ID
options        COMPAT_LINUX    # binary compatibility with Linux
options        COMPAT_FREEBSD  # binary compatibility with FreeBSD
options        COMPAT_BSDPTY  # /dev/[pt]ty?? ptys.
file-system    FFS            # UFS
file-system    EXT2FS          # second extended file system (linux)
file-system    LFS            # log-structured file system
file-system    MFS            # memory file system
file-system    NFS            # Network File System client
file-system    NTFS            # Windows/NT file system (experimental)
file-system    CD9660          # ISO 9660 + Rock Ridge file system
file-system    MSDOSFS        # MS-DOS file system
file-system    FDESC          # /dev/fd
file-system    KERNFS          # /kern
file-system    NULLFS          # loopback file system
file-system    OVERLAY        # overlay file system
file-system    PORTAL          # portal filesystem (still experimental)
file-system    PROCFS          # /proc
file-system    UMAPFS          # NULLFS + uid and gid remapping
file-system    UNION          # union file system
file-system    SMBFS          # experimental - CIFS; also needs nsmb (below)
file-system    PTYFS          # /dev/pts/N support
file-system    TMPFS          # Efficient memory file-system
options        QUOTA          # UFS quotas
options        SOFTDEP        # FFS soft updates support.
options        NFSSERVER      # Network File System server
                                # immutable) behave as system flags.
options        GATEWAY        # packet forwarding
options        INET            # IP + ICMP + TCP + UDP
options        PPP_BSDCOMP    # BSD-Compress compression support for PPP
options        PPP_DEFLATE    # Deflate compression support for PPP
options        PPP_FILTER      # Active filter support for PPP (requires bpf)
options        PFIL_HOOKS      # pfil(9) packet filter hooks
options        TCP_DEBUG      # Record last TCP_NDEBUG packets with SO_DEBUG
options        MIIVERBOSE      # verbose PHY autoconfig messages
options        PCIVERBOSE      # verbose PCI device autoconfig messages
options        USBVERBOSE      # verbose USB device autoconfig messages
options        I2OVERBOSE      # verbose I2O driver messages
options        WSEMUL_VT100            # VT100 / VT220 emulation
options        WS_KERNEL_FG=WSCOL_GREEN
options        WSDISPLAY_COMPAT_PCVT          # emulate some ioctls
options        WSDISPLAY_COMPAT_SYSCONS        # emulate some ioctls
options        WSDISPLAY_COMPAT_USL            # VT handling
options        WSDISPLAY_COMPAT_RAWKBD        # can get raw scancodes
options        WSDISPLAY_DEFAULTSCREENS=4
options        WSDISPLAY_SCROLLSUPPORT
options        PCDISPLAY_SOFTCURSOR
config          netbsd  root on ? type ?
mainbus0 at root
cpu* at mainbus?
ipmi0          at mainbus?
hypervisor*    at mainbus?            # Xen hypervisor
npx0            at hypervisor?          # x86 math coprocessor
xencons*        at hypervisor?          # Xen virtual console
xennet*        at hypervisor?          # Xen virtual network interface
xbd*            at hypervisor?          # Xen virtual block device
pci*            at hypervisor? bus ?
pci*            at pchb? bus ?
pchb*  at pci? dev ? function ?        # PCI-Host bridges
ppb*    at pci? dev ? function ?        # PCI-PCI bridges
agp*    at pchb?
puc*    at pci? dev ? function ?        # PCI "universal" comm. cards
com*    at puc? port ?                  # 16x50s on "universal" comm boards
cy*    at pci? dev ? function ?        # Cyclades Cyclom-Y serial boards
cz*    at pci? dev ? function ?        # Cyclades-Z multi-port serial boards
amdpm*  at pci? dev ? function ?        # RNG and SMBus 1.0 interface
fxp*    at pci? dev ? function ?        # Intel EtherExpress PRO 10+/100B
ipw*    at pci? dev ? function ?        # Intel PRO/Wireless 2100
inphy*  at mii? phy ?                  # Intel 82555 PHYs
iop*    at pci? dev ? function ?        # I/O processor
ld*    at iop? tid ?                  # block devices
dpti*  at iop? tid 0                  # DPT/Adaptec control interface
piixide*        at pci? dev ? function ?        # Intel IDE controllers
atabus* at ata?
wd*    at atabus? drive ? flags 0x0000
atapibus* at atapi?
cd*    at atapibus? drive ? flags 0x0000      # ATAPI CD-ROM drives
sd*    at atapibus? drive ? flags 0x0000      # ATAPI disk drives
st*    at atapibus? drive ? flags 0x0000      # ATAPI tape drives
uk*    at atapibus? drive ? flags 0x0000      # ATAPI unknown
vga*            at pci? dev ? function ?
wsdisplay*      at vga? console ?
ehci*  at pci? dev ? function ?        # Enhanced Host Controller
ohci*  at pci? dev ? function ?        # Open Host Controller
uhci*  at pci? dev ? function ?        # Universal Host Controller (Intel)
usb*    at ehci?
usb*    at ohci?
usb*    at uhci?
uhub*  at usb?
uhub*  at uhub? port ?
uhidev* at uhub? port ? configuration ? interface ?
ums*    at uhidev? reportid ?
wsmouse* at ums? mux 0
uep*    at uhub? port ?
wsmouse* at uep? mux 0
ukbd*  at uhidev? reportid ?
wskbd*  at ukbd? console ? mux 1
ucycom* at uhidev? reportid ?
uhid*  at uhidev? reportid ?
umodem* at uhub? port ? configuration ?
ucom*  at umodem?
umass*  at uhub? port ? configuration ? interface ?
wd*    at umass?
uaudio* at uhub? port ? configuration ?
ustir* at uhub? port ?
irframe* at ustir?
aue*    at uhub? port ?        # ADMtek AN986 Pegasus based adapters
axe*    at uhub? port ?        # ASIX AX88172 based adapters
cdce*  at uhub? port ?        # CDC, Ethernet Networking Control Model
cue*    at uhub? port ?        # CATC USB-EL1201A based adapters
kue*    at uhub? port ?        # Kawasaki LSI KL5KUSB101B based adapters
udav*  at uhub? port ?        # Davicom DM9601 based adapters
url*    at uhub? port ?        # Realtek RTL8150L based adapters
atu*    at uhub? port ?        # Atmel AT76C50XX based adapters
ral*    at uhub? port ?        # Ralink Technology RT25x0 802.11a/b/g
rum*    at uhub? port ?        # Ralink Technology RT2501/RT2601 802.11a/b/g
upl*    at uhub? port ?
ubsa*  at uhub? port ?        # Belkin serial adapter
ucom*  at ubsa? portno ?
uftdi*  at uhub? port ?        # FTDI FT8U100AX serial adapter
ucom*  at uftdi? portno ?
umct*  at uhub? port ?        # MCT USB-RS232 serial adapter
ucom*  at umct? portno ?
uplcom* at uhub? port ?        # I/O DATA USB-RSAQ2 serial adapter
ucom*  at uplcom? portno ?
uvscom* at uhub? port ?        # SUNTAC Slipper U VS-10U serial adapter
ucom*  at uvscom? portno ?
uvisor* at uhub? port ?
ucom*  at uvisor?
ukyopon* at uhub? port ?
ucom*  at ukyopon? portno ?
uscanner* at uhub? port ?
uyap* at uhub? port ?
ugen*  at uhub? port ?
fwohci* at pci? dev ? function ?        # IEEE1394 Open Host Controller
ieee1394if* at fwohci?
fwip*  at ieee1394if?                  # IP over IEEE1394
auich*  at pci? dev ? function ?        # Intel ICH integrated AC'97 Audio
audio*  at audiobus?
ubt* at uhub? port ?
bthub* at ubt?
bthidev* at bthub?
btms* at bthidev? reportid ?
wsmouse* at btms? mux 0
btkbd* at bthidev? reportid ?
wskbd* at btkbd? console ? mux 1
btsco* at bthub?
hifn*  at pci? dev ? function ?        # Hifn 7755/7811/795x
ubsec*  at pci? dev ? function ?        # Broadcom 5501/5601/580x/582x
include "arch/i386/conf/GENERIC.local"
pseudo-device  crypto          # /dev/crypto device
pseudo-device  swcrypto        # software crypto implementation
pseudo-device  ccd            4      # concatenated/striped disk devices
pseudo-device  fss            4      # file system snapshot device
pseudo-device  md              1      # memory disk device (ramdisk)
pseudo-device  vnd                    # disk-like interface to files
pseudo-device  loop                    # network loopback
pseudo-device  ppp                    # Point-to-Point Protocol
pseudo-device  pppoe                  # PPP over Ethernet (RFC 2516)
pseudo-device  sl                      # Serial Line IP
pseudo-device  strip                  # Starmode Radio IP (Metricom)
pseudo-device  irframetty              # IrDA frame line discipline
pseudo-device  tap                    # virtual Ethernet
pseudo-device  tun                    # network tunneling over tty
pseudo-device  gre                    # generic L3 over IP tunnel
pseudo-device  stf                    # 6to4 IPv6 over IPv4 encapsulation
pseudo-device  vlan                    # IEEE 802.1q encapsulation
pseudo-device  bridge                  # simple inter-network bridging
pseudo-device  pf                      # PF packet filter
pseudo-device  pflog                  # PF log if
pseudo-device  pty                    # pseudo-terminals
pseudo-device  rnd                    # /dev/random and in-kernel generator
pseudo-device  clockctl                # user control of clock subsystem
pseudo-device  ksyms                  # /dev/ksyms
pseudo-device  nsmb                    # experimental - SMB requester
pseudo-device  wsmux                  # mouse & keyboard multiplexor
pseudo-device  wsfont
pseudo-device  xenevt



All times are GMT -5. The time now is 12:56 PM.