Opened 12 years ago

Closed 12 years ago

#36475 closed defect (fixed)

qemu @1.2.0 +target_arm: error: global register variables are not supported

Reported by: oliverks1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: tom.mcreynolds@…
Port: qemu

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Attempting to install qemu-system-arm generates a

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-1.2.0/dyngen-exec.h:64:24: error: global register variables are not supported
:info:build register CPUArchState *env asm(AREG0);
:info:build                        ^
:info:build 1 error generated.

MacPorts 2.1.2
Darwin localhost 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Xcode 4.4.1
Build version 4F1003

Change History (6)

comment:1 Changed 12 years ago by oliverks1@…

Cc: oliverks1@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: oliverks1@… removed
Description: modified (diff)
Keywords: target_arm removed
Summary: qemu @1.2.0 +target_arm compile error -build errorqemu @1.2.0 +target_arm: error: global register variables are not supported

comment:3 in reply to:  description Changed 12 years ago by jeweljar@…

I think that Xcode clang compiler doesn't allow global register variables.
You can use gcc instead of clang by command line option 'configure.compiler=gcc'
sudo port -v install qemu +target_arm configure.compiler=gcc

Replying to oliverks1@…:

Attempting to install qemu-system-arm generates a

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_qemu/qemu/work/qemu-1.2.0/dyngen-exec.h:64:24: error: global register variables are not supported
:info:build register CPUArchState *env asm(AREG0);
:info:build                        ^
:info:build 1 error generated.

MacPorts 2.1.2
Darwin localhost 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Xcode 4.4.1
Build version 4F1003

comment:4 Changed 12 years ago by oliverks1@…

@jeweljar, thanks your suggestions seems to work. I have not verified everything works correctly, but I at least can build QEMU.

Oliver

comment:5 Changed 12 years ago by mf2k (Frank Schima)

Cc: tom.mcreynolds@… added

Cc reporter of duplicate #36656 .

comment:6 Changed 12 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Works for me with qemu @1.3.0_0 and Xcode 4.5.2 on Mac OS X 10.8 Mountain Lion.

Note: See TracTickets for help on using tickets.