qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building tools on unsupported cpu/arch


From: Thomas Huth
Subject: Re: Building tools on unsupported cpu/arch
Date: Mon, 20 Jun 2022 12:31:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

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

I guess Philippe's patch from February should do the job:

 https://lists.gnu.org/archive/html/qemu-devel/2022-02/msg00894.html

Philippe, could you maybe respin that series?

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]