All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/tcg: Fix building outside of the source tree
@ 2026-09-15 11:08 Ilya Leoshkevich
  2026-09-15 20:39 ` Pierrick Bouvier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ilya Leoshkevich @ 2026-09-15 11:08 UTC (permalink / raw)
  To: Alex Bennée, Pierrick Bouvier; +Cc: qemu-devel, Ilya Leoshkevich

Running TCG tests from a build directory that is outside of the source
tree fails with:

    [...]/qemu/tests/tcg/multiarch/libs/float_helpers.c:228:1: fatal error: opening dependency file tests/tcg/s390x-linux-user-float_convs.d: No such file or directory

This is because the build directory is not mounted into the container.
Add this mount. Do not bother with preventing overlapping mounts, they
are harmless.

Fixes: 27939ad414ca ("tests/tcg/meson.build: introduce cc_dockerfile and cc_docker_host_arch")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
 tests/tcg/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build
index d41a228fb3d..cae64efb06c 100644
--- a/tests/tcg/meson.build
+++ b/tests/tcg/meson.build
@@ -269,7 +269,7 @@ foreach target, plan: tcg_tests
       mount = mount + ':' + mount
       here = meson.project_build_root()
       cc = [docker_wrapper, 'run', '--run-as-current-user',
-            '-w', here, '-v', mount,
+            '-w', here, '-v', here + ':' + here, '-v', mount,
             cc_dockerfile, plan['cc']]
       has_cc = true
     endif
-- 
2.55.0



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

end of thread, other threads:[~2026-09-16 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-15 11:08 [PATCH] tests/tcg: Fix building outside of the source tree Ilya Leoshkevich
2026-09-15 20:39 ` Pierrick Bouvier
2026-09-16 10:48 ` Richard Henderson
2026-09-16 11:28 ` Alex Bennée

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.