All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] disable modular TCG on Darwin
@ 2021-07-12 12:22 Paolo Bonzini
  2021-07-12 12:52 ` Alex Bennée
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2021-07-12 12:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel, akihiko.odaki

Accelerator modularity does not work on Darwin:

ld: illegal thread local variable reference to regular symbol _current_cpu for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Fix by avoiding modular TCG builds.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index b2e8731410..a1f767e250 100644
--- a/meson.build
+++ b/meson.build
@@ -92,7 +92,11 @@ if cpu in ['x86', 'x86_64']
   }
 endif
 
-modular_tcg = ['i386-softmmu', 'x86_64-softmmu']
+modular_tcg = []
+# Darwin does not support references to thread-local variables in modules
+if target != 'darwin'
+  modular_tcg = ['i386-softmmu', 'x86_64-softmmu']
+endif
 
 edk2_targets = [ 'arm-softmmu', 'aarch64-softmmu', 'i386-softmmu', 'x86_64-softmmu' ]
 install_edk2_blobs = false
-- 
2.31.1



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

* Re: [PATCH] disable modular TCG on Darwin
  2021-07-12 12:22 [PATCH] disable modular TCG on Darwin Paolo Bonzini
@ 2021-07-12 12:52 ` Alex Bennée
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Bennée @ 2021-07-12 12:52 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel, akihiko.odaki, kraxel

Paolo Bonzini <pbonzini@redhat.com> writes:

> Accelerator modularity does not work on Darwin:
>
> ld: illegal thread local variable reference to regular symbol _current_cpu for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
> Fix by avoiding modular TCG builds.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Queued to HEAD, thanks.

-- 
Alex Bennée


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

end of thread, other threads:[~2021-07-12 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 12:22 [PATCH] disable modular TCG on Darwin Paolo Bonzini
2021-07-12 12:52 ` 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.