Skip to contentSkip to conversation

In tree configure errors since 6116aea9

DISCUSSION BALATON Zoltan 3 participants 6 messages Mar 21, 2020 – Mar 22, 2020

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Le 21/03/2020 à 18:29, BALATON Zoltan a écrit :

Quoted 10 lines

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?

configure +0 -0
@@ -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

#2 lore raw
Quoted 7 lines · Laurent Vivier

Le 21/03/2020 à 18:29, BALATON Zoltan a écrit :

Quoted 6 lines

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:

Quoted 6 lines
Quoted 4 lines

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?

Quoted 13 lines

Could you try this?

configure +1 -0
@@ -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 {} \;
Quoted 1 line

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

#3 lore raw
Quoted 4 lines · BALATON Zoltan
Quoted 1 line · Laurent Vivier

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

#4 lore raw
In reply to BALATON Zoltan

Le 21/03/2020 à 19:31, BALATON Zoltan a écrit :

Quoted 46 lines · Laurent Vivier
Quoted 7 lines

Le 21/03/2020 à 18:29, BALATON Zoltan a écrit :

Quoted 6 lines

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:

Quoted 6 lines
Quoted 4 lines

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?

Quoted 7 lines

Could you try this?

configure +0 -0
@@ -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"

Quoted 7 lines
    # 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

Quoted 5 lines

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:

configure +0 -0
@@ -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

#5 lore raw
Quoted 69 lines · Laurent Vivier

Le 21/03/2020 à 19:31, BALATON Zoltan a écrit :

Quoted 46 lines · Laurent Vivier
Quoted 7 lines

Le 21/03/2020 à 18:29, BALATON Zoltan a écrit :

Quoted 6 lines

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:

Quoted 6 lines
Quoted 4 lines

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?

Quoted 7 lines

Could you try this?

configure +0 -0
@@ -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"

Quoted 7 lines
    # 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

Quoted 5 lines

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:

configure +2 -3
@@ -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"
Quoted 3 lines

{} \; \
+ -exec rm {} \;
done

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

Regards,
BALATON Zoltan