qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* In tree configure errors since 6116aea9
@ 2020-03-21 17:29 BALATON Zoltan
  2020-03-21 17:38 ` Laurent Vivier
  0 siblings, 1 reply; 6+ messages in thread
From: BALATON Zoltan @ 2020-03-21 17:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laurent Vivier

Hello,

Since 6116aea99, or actually 4d6a835d (linux-user: introduce parameters to 
generate syscall_nr.h) but only next commit starts to enable it I get 
these errors when running configure in source tree:

grep: ./.gitlab-ci.d: Is a directory
grep: ./scripts/qemu-guest-agent/fsfreeze-hook.d: Is a directory

for each entry in that loop over arches. Could this be silenced?

Regards,
BALATON Zoltan


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

* Re: In tree configure errors since 6116aea9
  2020-03-21 17:29 In tree configure errors since 6116aea9 BALATON Zoltan
@ 2020-03-21 17:38 ` Laurent Vivier
  2020-03-21 18:31   ` BALATON Zoltan
  0 siblings, 1 reply; 6+ messages in thread
From: Laurent Vivier @ 2020-03-21 17:38 UTC (permalink / raw)
  To: BALATON Zoltan, qemu-devel

Le 21/03/2020 à 18:29, BALATON Zoltan a écrit :
> Hello,
> 
> Since 6116aea99, or actually 4d6a835d (linux-user: introduce parameters
> to generate syscall_nr.h) but only next commit starts to enable it I get
> these errors when running configure in source tree:
> 
> grep: ./.gitlab-ci.d: Is a directory
> grep: ./scripts/qemu-guest-agent/fsfreeze-hook.d: Is a directory
> 
> for each entry in that loop over arches. Could this be silenced?

I didn't see that because I always do an out-of-tree build.

Could you try this?

--- a/configure
+++ b/configure
@@ -1911,6 +1911,7 @@ for arch in alpha hppa m68k xtensa sh4 microblaze
arm ppc s390x sparc sparc64 \
     rm -f "${source_path}/linux-user/${arch}/syscall_nr.h"
     # remove the dependency files
     find . -name "*.d" \
+           -type f \
            -exec grep -q
"${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \
            -exec rm {} \;
 done


Thanks,
Laurent


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

* Re: In tree configure errors since 6116aea9
  2020-03-21 17:38 ` Laurent Vivier
@ 2020-03-21 18:31   ` BALATON Zoltan
  2020-03-21 19:49     ` Peter Maydell
  2020-03-22  9:42     ` Laurent Vivier
  0 siblings, 2 replies; 6+ messages in thread
From: BALATON Zoltan @ 2020-03-21 18:31 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1487 bytes --]

On Sat, 21 Mar 2020, Laurent Vivier wrote:
> Le 21/03/2020 à 18:29, BALATON Zoltan a écrit :
>> Hello,
>>
>> Since 6116aea99, or actually 4d6a835d (linux-user: introduce parameters
>> to generate syscall_nr.h) but only next commit starts to enable it I get
>> these errors when running configure in source tree:
>>
>> grep: ./.gitlab-ci.d: Is a directory
>> grep: ./scripts/qemu-guest-agent/fsfreeze-hook.d: Is a directory
>>
>> for each entry in that loop over arches. Could this be silenced?
>
> I didn't see that because I always do an out-of-tree build.

Isn't there a test for that or should there be one?

> Could you try this?
>
> --- a/configure
> +++ b/configure
> @@ -1911,6 +1911,7 @@ for arch in alpha hppa m68k xtensa sh4 microblaze
> arm ppc s390x sparc sparc64 \
>     rm -f "${source_path}/linux-user/${arch}/syscall_nr.h"
>     # remove the dependency files
>     find . -name "*.d" \
> +           -type f \
>            -exec grep -q
> "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \
>            -exec rm {} \;
> done

This gets rid of the errors but seems to be much slower:

with 4d6a835d running my usual configure script:

real	0m5.968s
user	0m4.642s
sys	0m1.402s

with HEAD and above patch:

real	0m20.246s
user	0m14.143s
sys	0m6.152s

Given that configure is rerun when some files change if there's a way to 
get at least the previous speed back might be better if possible.

Regards,
BALATON Zoltan

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

* Re: In tree configure errors since 6116aea9
  2020-03-21 18:31   ` BALATON Zoltan
@ 2020-03-21 19:49     ` Peter Maydell
  2020-03-22  9:42     ` Laurent Vivier
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2020-03-21 19:49 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: Laurent Vivier, QEMU Developers

On Sat, 21 Mar 2020 at 18:32, BALATON Zoltan <balaton@eik.bme.hu> wrote:
> On Sat, 21 Mar 2020, Laurent Vivier wrote:
> > I didn't see that because I always do an out-of-tree build.
>
> Isn't there a test for that or should there be one?

It's not in my set of CI tests (mostly because it's a bit
awkward to do). We're planning to drop support for
in-tree builds at some point: out-of-tree is just
generally better and trying to support both tends to
mean that one or the other gets accidentally broken
periodically.

thanks
-- PMM


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

* Re: In tree configure errors since 6116aea9
  2020-03-21 18:31   ` BALATON Zoltan
  2020-03-21 19:49     ` Peter Maydell
@ 2020-03-22  9:42     ` Laurent Vivier
  2020-03-22 11:41       ` BALATON Zoltan
  1 sibling, 1 reply; 6+ messages in thread
From: Laurent Vivier @ 2020-03-22  9:42 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: qemu-devel

Le 21/03/2020 à 19:31, BALATON Zoltan a écrit :
> On Sat, 21 Mar 2020, Laurent Vivier wrote:
>> Le 21/03/2020 à 18:29, BALATON Zoltan a écrit :
>>> Hello,
>>>
>>> Since 6116aea99, or actually 4d6a835d (linux-user: introduce parameters
>>> to generate syscall_nr.h) but only next commit starts to enable it I get
>>> these errors when running configure in source tree:
>>>
>>> grep: ./.gitlab-ci.d: Is a directory
>>> grep: ./scripts/qemu-guest-agent/fsfreeze-hook.d: Is a directory
>>>
>>> for each entry in that loop over arches. Could this be silenced?
>>
>> I didn't see that because I always do an out-of-tree build.
> 
> Isn't there a test for that or should there be one?
> 
>> Could you try this?
>>
>> --- a/configure
>> +++ b/configure
>> @@ -1911,6 +1911,7 @@ for arch in alpha hppa m68k xtensa sh4 microblaze
>> arm ppc s390x sparc sparc64 \
>>     rm -f "${source_path}/linux-user/${arch}/syscall_nr.h"
>>     # remove the dependency files
>>     find . -name "*.d" \
>> +           -type f \
>>            -exec grep -q
>> "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \
>>            -exec rm {} \;
>> done
> 
> This gets rid of the errors but seems to be much slower:
> 
> with 4d6a835d running my usual configure script:
> 
> real    0m5.968s
> user    0m4.642s
> sys    0m1.402s
> 
> with HEAD and above patch:
> 
> real    0m20.246s
> user    0m14.143s
> sys    0m6.152s
> 
> Given that configure is rerun when some files change if there's a way to
> get at least the previous speed back might be better if possible.
> 
> Regards,
> BALATON Zoltan

Could you try this:

--- a/configure
+++ b/configure
@@ -1910,9 +1910,9 @@ for arch in alpha hppa m68k xtensa sh4 microblaze
arm ppc s390x sparc sparc64 \
     # remove the file if it has been generated in the source directory
     rm -f "${source_path}/linux-user/${arch}/syscall_nr.h"
     # remove the dependency files
-    find . -name "*.d" \
-           -exec grep -q
"${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \
-           -exec rm {} \;
+    test -d ${arch}-linux-user && find ${arch}-linux-user -type f -name
"*.d" \
+         -exec grep -q "${source_path}/linux-user/${arch}/syscall_nr.h"
{} \; \
+         -exec rm {} \;
 done

 if test -z "$python"

Thanks,
Laurent


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

* Re: In tree configure errors since 6116aea9
  2020-03-22  9:42     ` Laurent Vivier
@ 2020-03-22 11:41       ` BALATON Zoltan
  0 siblings, 0 replies; 6+ messages in thread
From: BALATON Zoltan @ 2020-03-22 11:41 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2558 bytes --]

On Sun, 22 Mar 2020, Laurent Vivier wrote:
> Le 21/03/2020 à 19:31, BALATON Zoltan a écrit :
>> On Sat, 21 Mar 2020, Laurent Vivier wrote:
>>> Le 21/03/2020 à 18:29, BALATON Zoltan a écrit :
>>>> Hello,
>>>>
>>>> Since 6116aea99, or actually 4d6a835d (linux-user: introduce parameters
>>>> to generate syscall_nr.h) but only next commit starts to enable it I get
>>>> these errors when running configure in source tree:
>>>>
>>>> grep: ./.gitlab-ci.d: Is a directory
>>>> grep: ./scripts/qemu-guest-agent/fsfreeze-hook.d: Is a directory
>>>>
>>>> for each entry in that loop over arches. Could this be silenced?
>>>
>>> I didn't see that because I always do an out-of-tree build.
>>
>> Isn't there a test for that or should there be one?
>>
>>> Could you try this?
>>>
>>> --- a/configure
>>> +++ b/configure
>>> @@ -1911,6 +1911,7 @@ for arch in alpha hppa m68k xtensa sh4 microblaze
>>> arm ppc s390x sparc sparc64 \
>>>     rm -f "${source_path}/linux-user/${arch}/syscall_nr.h"
>>>     # remove the dependency files
>>>     find . -name "*.d" \
>>> +           -type f \
>>>            -exec grep -q
>>> "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \
>>>            -exec rm {} \;
>>> done
>>
>> This gets rid of the errors but seems to be much slower:
>>
>> with 4d6a835d running my usual configure script:
>>
>> real    0m5.968s
>> user    0m4.642s
>> sys    0m1.402s
>>
>> with HEAD and above patch:
>>
>> real    0m20.246s
>> user    0m14.143s
>> sys    0m6.152s
>>
>> Given that configure is rerun when some files change if there's a way to
>> get at least the previous speed back might be better if possible.
>>
>> Regards,
>> BALATON Zoltan
>
> Could you try this:
>
> --- a/configure
> +++ b/configure
> @@ -1910,9 +1910,9 @@ for arch in alpha hppa m68k xtensa sh4 microblaze
> arm ppc s390x sparc sparc64 \
>     # remove the file if it has been generated in the source directory
>     rm -f "${source_path}/linux-user/${arch}/syscall_nr.h"
>     # remove the dependency files
> -    find . -name "*.d" \
> -           -exec grep -q
> "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \
> -           -exec rm {} \;
> +    test -d ${arch}-linux-user && find ${arch}-linux-user -type f -name
> "*.d" \
> +         -exec grep -q "${source_path}/linux-user/${arch}/syscall_nr.h"
> {} \; \
> +         -exec rm {} \;
> done

This is better, runs in 6-8 seconds. Thanks.

Regards,
BALATON Zoltan

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

end of thread, other threads:[~2020-03-22 11:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-21 17:29 In tree configure errors since 6116aea9 BALATON Zoltan
2020-03-21 17:38 ` Laurent Vivier
2020-03-21 18:31   ` BALATON Zoltan
2020-03-21 19:49     ` Peter Maydell
2020-03-22  9:42     ` Laurent Vivier
2020-03-22 11:41       ` BALATON Zoltan

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).