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: Michael Tokarev
Subject: Re: Building tools on unsupported cpu/arch
Date: Mon, 20 Jun 2022 13:54:35 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

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



reply via email to

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