From: Laurent Vivier <laurent@vivier.eu>
To: BALATON Zoltan <balaton@eik.bme.hu>
Cc: qemu-devel@nongnu.org
Subject: Re: In tree configure errors since 6116aea9
Date: Sun, 22 Mar 2020 10:42:57 +0100 [thread overview]
Message-ID: <cb6d1bee-a488-df1d-dcad-182ac3237265@vivier.eu> (raw)
In-Reply-To: <alpine.BSF.2.22.395.2003211924410.70812@zero.eik.bme.hu>
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
next prev parent reply other threads:[~2020-03-22 9:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2020-03-22 11:41 ` BALATON Zoltan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cb6d1bee-a488-df1d-dcad-182ac3237265@vivier.eu \
--to=laurent@vivier.eu \
--cc=balaton@eik.bme.hu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).