From: Ian Jackson Subject: Re: stubdom/libxc-x86_64 compile error with valgrind installed Date: Mon, 21 Jul 2014 12:14:32 +0100 Message-ID: <21452.63000.786787.850822@mariner.uk.xensource.com> References: <1216211935.20140721110014@gmail.com> <53CCE922.9080109@citrix.com> <1405938788.24518.3.camel@kazak.uk.xensource.com> <53CCEE37.80903@citrix.com> <1405939668.25022.8.camel@kazak.uk.xensource.com> <53CCF1DA.3030604@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53CCF1DA.3030604@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Simon Martin , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Andrew Cooper writes ("Re: [Xen-devel] stubdom/libxc-x86_64 compile error with valgrind installed"): > On 21/07/14 11:47, Ian Campbell wrote: > > On Mon, 2014-07-21 at 11:40 +0100, Andrew Cooper wrote: > >> Doesn't it need an extra check for the rump stuff? > > I don't know... > > > > Ian, the proposal is tools/libxc/xc_private.h: > > -#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG) > > +#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG) && !defined(__MINIOS__) ... > Nor do I, but IanJ's series changed most (all?) the #if > !defined(__MINIOS__) into #if !defined(__MINIOS__) || > !defined(__RUMPUSER_XEN__) > > Therefore, I suspect the same is needed here. No, this bodge isn't needed for __RUMPUSER_XEN__. The rump kernel build runs configure with the rump kernel build system which doesn't see the system's valgrind.h. I.e., the rump kernel build environment used for building tools/libxc/ doesn't have the bug that the stubdom build system has. There are some __RUMPUSER_XEN__ in libxc but they are just for selecting the right implementations of various components - in particular, to make hypercalls directly but use the devices in /dev/ for xenstore and evtchn. (And for disabling dynamic loading.) Ian.