All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxenstat: avoid build race
@ 2020-11-17  9:42 Jan Beulich
  2020-11-18 14:27 ` Bertrand Marquis
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2020-11-17  9:42 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Wei Liu, Olaf Hering

Olaf reported observing

xenstat_qmp.c:26:10: fatal error: _paths.h: No such file or directory
.../tools/libs/stat/../../../tools/Rules.mk:153: xenstat_qmp.opic] Error 1

Obviously _paths.h, when included by any of the sources, needs to be
created in advance of compiling any of them, not just the non-PIC ones.

Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
A similar issue (at the time of the report) in the building of
libxenstore was addressed by Jürgen's 9af5e2b31b4e ("tools/libs/store:
don't use symbolic links for external files").

--- a/tools/libs/stat/Makefile
+++ b/tools/libs/stat/Makefile
@@ -30,7 +30,7 @@ include $(XEN_ROOT)/tools/libs/libs.mk
 
 include $(XEN_ROOT)/tools/libs/libs.mk
 
-$(LIB_OBJS): _paths.h
+$(LIB_OBJS) $(PIC_OBJS): _paths.h
 
 PYLIB=bindings/swig/python/_xenstat.so
 PYMOD=bindings/swig/python/xenstat.py


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libxenstat: avoid build race
  2020-11-17  9:42 [PATCH] libxenstat: avoid build race Jan Beulich
@ 2020-11-18 14:27 ` Bertrand Marquis
  2020-12-07 15:25   ` Ping: " Jan Beulich
  0 siblings, 1 reply; 4+ messages in thread
From: Bertrand Marquis @ 2020-11-18 14:27 UTC (permalink / raw)
  To: Jan Beulich; +Cc: xen-devel, Ian Jackson, Wei Liu, Olaf Hering

Hi,

> On 17 Nov 2020, at 09:42, Jan Beulich <jbeulich@suse.com> wrote:
> 
> Olaf reported observing
> 
> xenstat_qmp.c:26:10: fatal error: _paths.h: No such file or directory
> .../tools/libs/stat/../../../tools/Rules.mk:153: xenstat_qmp.opic] Error 1
> 
> Obviously _paths.h, when included by any of the sources, needs to be
> created in advance of compiling any of them, not just the non-PIC ones.
> 
> Reported-by: Olaf Hering <olaf@aepfle.de>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>

Cheers
Bertrand

> ---
> A similar issue (at the time of the report) in the building of
> libxenstore was addressed by Jürgen's 9af5e2b31b4e ("tools/libs/store:
> don't use symbolic links for external files").
> 
> --- a/tools/libs/stat/Makefile
> +++ b/tools/libs/stat/Makefile
> @@ -30,7 +30,7 @@ include $(XEN_ROOT)/tools/libs/libs.mk
> 
> include $(XEN_ROOT)/tools/libs/libs.mk
> 
> -$(LIB_OBJS): _paths.h
> +$(LIB_OBJS) $(PIC_OBJS): _paths.h
> 
> PYLIB=bindings/swig/python/_xenstat.so
> PYMOD=bindings/swig/python/xenstat.py
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Ping: [PATCH] libxenstat: avoid build race
  2020-11-18 14:27 ` Bertrand Marquis
@ 2020-12-07 15:25   ` Jan Beulich
  2020-12-07 15:31     ` Wei Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2020-12-07 15:25 UTC (permalink / raw)
  To: Ian Jackson, Wei Liu; +Cc: xen-devel, Olaf Hering, Bertrand Marquis

On 18.11.2020 15:27, Bertrand Marquis wrote:
>> On 17 Nov 2020, at 09:42, Jan Beulich <jbeulich@suse.com> wrote:
>>
>> Olaf reported observing
>>
>> xenstat_qmp.c:26:10: fatal error: _paths.h: No such file or directory
>> .../tools/libs/stat/../../../tools/Rules.mk:153: xenstat_qmp.opic] Error 1
>>
>> Obviously _paths.h, when included by any of the sources, needs to be
>> created in advance of compiling any of them, not just the non-PIC ones.
>>
>> Reported-by: Olaf Hering <olaf@aepfle.de>
>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>

Ping? (I guess this one is again simple enough that I should
time out waiting by the middle of the week.)

Jan

>> ---
>> A similar issue (at the time of the report) in the building of
>> libxenstore was addressed by Jürgen's 9af5e2b31b4e ("tools/libs/store:
>> don't use symbolic links for external files").
>>
>> --- a/tools/libs/stat/Makefile
>> +++ b/tools/libs/stat/Makefile
>> @@ -30,7 +30,7 @@ include $(XEN_ROOT)/tools/libs/libs.mk
>>
>> include $(XEN_ROOT)/tools/libs/libs.mk
>>
>> -$(LIB_OBJS): _paths.h
>> +$(LIB_OBJS) $(PIC_OBJS): _paths.h
>>
>> PYLIB=bindings/swig/python/_xenstat.so
>> PYMOD=bindings/swig/python/xenstat.py
>>
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ping: [PATCH] libxenstat: avoid build race
  2020-12-07 15:25   ` Ping: " Jan Beulich
@ 2020-12-07 15:31     ` Wei Liu
  0 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2020-12-07 15:31 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Ian Jackson, Wei Liu, xen-devel, Olaf Hering, Bertrand Marquis

On Mon, Dec 07, 2020 at 04:25:41PM +0100, Jan Beulich wrote:
> On 18.11.2020 15:27, Bertrand Marquis wrote:
> >> On 17 Nov 2020, at 09:42, Jan Beulich <jbeulich@suse.com> wrote:
> >>
> >> Olaf reported observing
> >>
> >> xenstat_qmp.c:26:10: fatal error: _paths.h: No such file or directory
> >> .../tools/libs/stat/../../../tools/Rules.mk:153: xenstat_qmp.opic] Error 1
> >>
> >> Obviously _paths.h, when included by any of the sources, needs to be
> >> created in advance of compiling any of them, not just the non-PIC ones.
> >>
> >> Reported-by: Olaf Hering <olaf@aepfle.de>
> >> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> > Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
> 
> Ping? (I guess this one is again simple enough that I should
> time out waiting by the middle of the week.)

Acked-by: Wei Liu <wl@xen.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-07 15:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17  9:42 [PATCH] libxenstat: avoid build race Jan Beulich
2020-11-18 14:27 ` Bertrand Marquis
2020-12-07 15:25   ` Ping: " Jan Beulich
2020-12-07 15:31     ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.