From: Gianni Tedesco Subject: Re: [PATCH 7 of 8] libxl: generate destructors for each libxl defined type Date: Tue, 3 Aug 2010 13:34:24 +0100 Message-ID: <1280838864.18490.156.camel@qabil.uk.xensource.com> References: <6baa8ce2ec5ed5d140a6.1280833222@localhost.localdomain> <1280837241.18490.144.camel@qabil.uk.xensource.com> <1280838295.24292.3601.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1280838295.24292.3601.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2010-08-03 at 13:24 +0100, Ian Campbell wrote: > Thanks for looking over this. > > On Tue, 2010-08-03 at 13:07 +0100, Gianni Tedesco (3P) wrote: > > On Tue, 2010-08-03 at 12:00 +0100, Ian Campbell wrote: > > > LIBXL_OBJS-y = osdeps.o libxl_paths.o libxl_bootloader.o > > > LIBXL_OBJS = flexarray.o libxl.o libxl_pci.o libxl_dom.o libxl_exec.o libxl_xshelp.o libxl_device.o libxl_internal.o xenguest.o libxl_utils.o $(LIBXL_OBJS-y) > > > +LIBXL_OBJS += _libxl_types.c > > > > uhm... _libxl_types.o ?? > > Oops, yes indeed. > > > > AUTOINCS= libxlu_cfg_y.h libxlu_cfg_l.h > > > AUTOSRCS= libxlu_cfg_y.c libxlu_cfg_l.c > > > @@ -54,9 +55,10 @@ libxl_paths.c: _libxl_paths.h > > > > > > libxl.h: _libxl_types.h > > > > > > -_libxl_types.h: gentypes.py libxltypes.py > > > - python gentypes.py __libxl_types.h > > > +_libxl_types.h _libxl_types.c: gentypes.py libxltypes.py > > > + python gentypes.py __libxl_types.h __libxl_types.c > > > mv __libxl_types.h _libxl_types.h > > > + mv __libxl_types.c _libxl_types.c > > > > Something is still wrong in the dep tree that breaks a clean build. I > > think part of the problem is that the build system cannot find what > > depends on _libxl_types.h until the compile-time-generate dep files are > > created. On the other hand, it can't create the dep files if the > > _libxl_types.h is not there. > > > > Solution is to manually tweak the dep tree, meh: > > I thought that the next patch in the series (which adds _libxl_types.c) > also worked around the same problem so I didn't worry too much but I > seem to have been mistaken. > > I wonder if this can be wildcarded at all, something like > %.o: _libl_types.h > (except not that because it doesn't actually work, AFAICT) > > Ian. Hmm, probably conflicts with higher level Rules.mak thing. Not to mention it may interact badly with $