From owner-freebsd-current@FreeBSD.ORG Tue Oct 1 16:35:03 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E74AAB0D for ; Tue, 1 Oct 2013 16:35:02 +0000 (UTC) (envelope-from john@potato.growveg.org) Received: from potato.growveg.org (growveg-1-pt.tunnel.tserv11.ams1.ipv6.he.net [IPv6:2001:470:1f14:3d2::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9CFB42840 for ; Tue, 1 Oct 2013 16:35:02 +0000 (UTC) Received: from john by potato.growveg.org with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1VR2uY-000F2E-3j for freebsd-current@freebsd.org; Tue, 01 Oct 2013 17:34:58 +0100 Date: Tue, 1 Oct 2013 17:34:58 +0100 From: John To: freebsd-current@freebsd.org Subject: XEN additions cause failure to compile kernel Message-ID: <20131001163458.GC57498@potato.growveg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: John X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: john@potato.growveg.org X-SA-Exim-Scanned: No (on potato.growveg.org); SAEximRunCond expanded to false X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Oct 2013 16:35:03 -0000 Hello list. Using latest sources: root@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@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