20.06.2022 13:31, Thomas Huth write:
On 30/04/2022 16.11, Michael Tokarev wrote:
Hello!
Previously, it was possible to build qemu tools (such as qemu-img, or qemu-ga)
on an unsupported cpu/architecture. In a hackish way, by specifying
--enable-tcg-interpreter on the ./configure line.
Today (with 7.0), it does not work anymore, with the following error
during configure:
common-user/meson.build:1:0: ERROR: Include dir host/unknown does not exist.
Did you ever send a patch for this? I something like this should do the job:
diff a/common-user/meson.build b/common-user/meson.build
--- a/common-user/meson.build
+++ b/common-user/meson.build
@@ -1,3 +1,7 @@
+if not have_user
+ subdir_done()
+endif
+
https://salsa.debian.org/qemu-team/qemu/-/blob/master/debian/patches/common-user-no-user.patch
I dunno which one is right - "have_user" or "have_linux_user & have_bsd_user".
common_user_inc += include_directories('host/' / host_arch)
user_ss.add(files(
This is with --disable-system --disable-linux-user --disable-user.
And without --enable-tcg-interpreter, it gives:
meson.build:390:6: ERROR: Problem encountered: Unsupported CPU m68k, try
--enable-tcg-interpreter
What's the way to build tools on an unsupported architecture these days?
You could try to use --disable-tcg instead of --enable-tcg-interpreter ... but I guess we should improve the logic in configure / meson.build a little
bit to do that automatically...
It fails down the line when building trace files, I don't remember where
exactly.
It's trivial to reproduce and the failure is at the beginning of the build
procedure.
I guess Philippe's patch from February should do the job:
https://lists.gnu.org/archive/html/qemu-devel/2022-02/msg00894.html
Lemme give it a try...
Thanks,
/mjt