From: Patrick Welche <prlw1@cam.ac.uk>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xen.org
Subject: Re: stdbool.h -nostdinc XSA-55 trouble
Date: Sun, 11 Aug 2013 17:41:21 +0100 [thread overview]
Message-ID: <20130811164121.GE933@quark> (raw)
In-Reply-To: <5204ABEA02000078000EA8CA@nat28.tlf.novell.com>
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
On Fri, Aug 09, 2013 at 07:44:26AM +0100, Jan Beulich wrote:
> >>> On 08.08.13 at 17:47, Patrick Welche <prlw1@cam.ac.uk> wrote:
> > On Thu, Aug 08, 2013 at 04:30:06PM +0100, Jan Beulich wrote:
> >> No, according to my checking, the --prefix configure option
> >> listed does not correlate with the directory where the header
> >> is found.
> >
> > Yes - I think our emails crossed...
> >
> > The underlying problem is:
> >
> > Linux: /usr/lib/gcc/i?86-linux-gnu/n.m/include/stdbool.h
> > NetBSD: /usr/include/stdbool.h
>
> So then my original recommendation holds: Extend the Solaris
> workaround to NetBSD, but at the same time generalize it by
> moving it from xen/arch/*/Rules.mk to xen/Rules.mk.
So something like the attached would do the trick...
(I had a successful "make xen" with this on -head)
Cheers,
Patrick
[-- Attachment #2: 0001-NetBSD-stores-stdbool.h-in-usr-include.patch --]
[-- Type: text/plain, Size: 1690 bytes --]
>From 6a1c15425aa33744957540679f8ab5be4330a9f3 Mon Sep 17 00:00:00 2001
From: Patrick Welche <prlw1@cam.ac.uk>
Date: Fri, 9 Aug 2013 15:55:14 +0100
Subject: [PATCH] NetBSD stores stdbool.h in /usr/include
-iwithprefix include will look in a compiler specific directory
and thus not find it, so remove -nostdinc for NetBSD. (This applies
for both gcc and clang.)
Move (non-)addition of -nostdinc to xen/Rules.mk as this is not
arch specific, as suggested by Jan Beulich.
Signed-off-by: Patrick Welche <prlw1@cam.ac.uk>
---
xen/Rules.mk | 9 +++++++++
xen/arch/x86/Rules.mk | 6 ------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 26e5bb6..581cf8b 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -13,6 +13,15 @@ lto ?= n
include $(XEN_ROOT)/Config.mk
+# Solaris and NetBSD grab stdarg.h and friends from the system include
+# directory.
+# Clang likewise.
+ifeq ($(XEN_OS),SunOS)
+else ifeq ($(XEN_OS),NetBSD)
+else
+CFLAGS-$(gcc) += -nostdinc
+endif
+
# Hardcoded configuration implications and dependencies.
# Do this is a neater way if it becomes unwieldy.
ifeq ($(debug),y)
diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk
index 0a9d68d..a116739 100644
--- a/xen/arch/x86/Rules.mk
+++ b/xen/arch/x86/Rules.mk
@@ -19,12 +19,6 @@ xenoprof := y
#
supervisor_mode_kernel ?= n
-# Solaris grabs stdarg.h and friends from the system include directory.
-# Clang likewise.
-ifneq ($(XEN_OS),SunOS)
-CFLAGS-$(gcc) += -nostdinc
-endif
-
CFLAGS += -fno-builtin -fno-common -Wredundant-decls
CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
CFLAGS += -I$(BASEDIR)/include
--
1.8.3.3
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-08-11 16:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 11:49 stdbool.h -nostdinc XSA-55 trouble Patrick Welche
2013-08-08 13:11 ` Jan Beulich
2013-08-08 15:18 ` Patrick Welche
2013-08-08 15:23 ` Ian Campbell
2013-08-08 15:39 ` Patrick Welche
2013-08-14 9:36 ` Egger, Christoph
2013-08-08 15:30 ` Jan Beulich
2013-08-08 15:47 ` Patrick Welche
2013-08-08 16:12 ` Ian Campbell
2013-08-08 17:26 ` Patrick Welche
2013-08-08 19:05 ` Andrew Cooper
2013-08-08 19:24 ` Ian Campbell
2013-08-08 19:52 ` Andrew Cooper
2013-08-09 7:50 ` Jan Beulich
2013-08-09 8:11 ` Patrick Welche
2013-08-09 8:16 ` Jan Beulich
2013-08-09 8:32 ` Patrick Welche
2013-08-09 8:33 ` Patrick Welche
2013-08-09 8:40 ` Jan Beulich
2013-08-09 15:13 ` Tim Deegan
2013-08-11 15:21 ` Patrick Welche
2013-08-09 6:44 ` Jan Beulich
2013-08-09 7:55 ` Patrick Welche
2013-08-11 16:41 ` Patrick Welche [this message]
2013-08-12 7:31 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130811164121.GE933@quark \
--to=prlw1@cam.ac.uk \
--cc=JBeulich@suse.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).