[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] stubdom/libxc-x86_64 compile error with valgrind installed



On Mon, 2014-07-21 at 11:00 +0100, Simon Martin wrote:
> Hello all,
> 
> I  am building on Debian Wheezy and I have valgrind installed. About a
> month ago I started having compilation problems. I assume it must have
> something to do with Andrew's valgrind patch of June 10th.
> 
> The problem seems to lie in the fact that valgrind is in /usr/include,
> however -nostdinc is specified on the compilation so we don't get it.
> 
> I  removed  -nostdinc from stubdom/Makefile and it compiled correctly.
> Reading  the  gcc documentation this *should* be safe, as it will only
> search   the   default   directories   *after*  the  explicit  include
> directories. That being said, there is probably a better fix for this.

The best fix would be to teach tools/configure.ac about stubdom builds
somehow and pass the appropriate options when configuring.

The quick fix is probably to tools/libxc/xc_private.h:
-#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG)
+#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG) && 
!defined(__MINIOS__)

Does that work for you?

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.