XEN additions cause failure to compile kernel

From: John <freebsd-lists_at_potato.growveg.org>
Date: Tue, 1 Oct 2013 17:34:58 +0100
Hello list. Using latest sources:

root_at_host0:/usr/src # svn info
Path: .
Working Copy Root Path: /usr/src
URL: https://svn0.eu.freebsd.org/base/releng/9.2
Relative URL: ^/releng/9.2
Repository Root: https://svn0.eu.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 255973
Node Kind: directory
Schedule: normal
Last Changed Author: gjb
Last Changed Rev: 255896
Last Changed Date: 2013-09-26 19:10:19 +0100 (Thu, 26 Sep 2013)

I'm trying to compile the XEN options on a host server on 9.2-R and get the
following failure during make:

[...]

clang -c -O2 -pipe -fno-strict-aliasing  -std=c99  -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../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror  ../../../xen/evtchn/evtchn_dev.c
../../../xen/evtchn/evtchn_dev.c:321:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_version:   D_VERSION,
        ^~~~~~~~~~
        .d_version = 
../../../xen/evtchn/evtchn_dev.c:322:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_open:      evtchn_open,
        ^~~~~~~
        .d_open = 
../../../xen/evtchn/evtchn_dev.c:323:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_close:     evtchn_close,
        ^~~~~~~~
        .d_close = 
../../../xen/evtchn/evtchn_dev.c:324:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_read:      evtchn_read,
        ^~~~~~~
        .d_read = 
../../../xen/evtchn/evtchn_dev.c:325:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_write:     evtchn_write,
        ^~~~~~~~
        .d_write = 
../../../xen/evtchn/evtchn_dev.c:326:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_ioctl:     evtchn_ioctl,
        ^~~~~~~~
        .d_ioctl = 
../../../xen/evtchn/evtchn_dev.c:327:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_poll:      evtchn_poll,
        ^~~~~~~
        .d_poll = 
../../../xen/evtchn/evtchn_dev.c:328:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_name:      "evtchn",
        ^~~~~~~
        .d_name = 
../../../xen/evtchn/evtchn_dev.c:329:2: error: use of GNU old-style field designator extension [-Werror,-Wgnu-designator]
        d_flags:     0,
        ^~~~~~~~
        .d_flags = 
9 errors generated.
*** [evtchn_dev.o] Error code 1

Stop in /usr/src/sys/amd64/compile/HOST0.
root_at_host0:/sys/amd64/compile/HOST0 #

It compiles fine without these options:

options         NO_ADAPTIVE_MUTEXES
options         NO_ADAPTIVE_RWLOCKS
options         NO_ADAPTIVE_SX

# Xen HVM support
options         XENHVM
device          xenpci
 
Are these options depricated now?

thanks,
-- 
John
Received on Tue Oct 01 2013 - 14:35:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC