Opened 16 months ago
Last modified 2 months ago
#67984 assigned defect
qemu @8.0.4: ERROR: No host machine compiler for 'audio/coreaudio.m'
Reported by: | barracuda156 | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | evanmiller (Evan Miller), cooljeanius (Eric Gallager) | |
Port: | qemu |
Description
When I try building qemu
, I get the following configure error:
../qemu-8.0.4/meson.build:3420:13: ERROR: No host machine compiler for 'audio/coreaudio.m'
I tried to disable coreaudio
altogether, passing --disable-coreaudio
, but then it fails a step further with:
../qemu-8.0.4/meson.build:3810:58: ERROR: Tried to access compiler for language "objc", not specified for host machine.
Because Meson script coerces Obj C on Darwin:
if targetos == 'darwin' summary_info += {'Objective-C compiler': ' '.join(meson.get_compiler('objc').cmd_array())} endif
Which is probably a bug (if no Cocoa and no Coreaudio, why ObjC?), but regardless of that, why GCC is not acknowledged in the first place?
Macports does pass --objcc=/opt/local/bin/gcc-mp-12
.
Change History (6)
comment:1 Changed 16 months ago by DesktopECHO
comment:2 follow-up: 4 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | powerpc removed |
---|---|
Summary: | qemu configure does not recognize gcc as a valid objc compiler → qemu @8.0.4: ERROR: No host machine compiler for 'audio/coreaudio.m' |
It's not specific to PowerPC or GCC; it's specific to disabling the cocoa variant. Their meson build script makes the incorrect assumption that an Objective-C compiler is only required when building the Cocoa UI but it's also required to compile the CoreAudio driver regardless of the UI.
This is an upstream bug and getting it fixed could have been accelerated if someone had reported it to the developers. I've reported it there now: https://gitlab.com/qemu-project/qemu/-/issues/2138
comment:3 Changed 2 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:4 Changed 2 months ago by barracuda156
Replying to ryandesign:
It's not specific to PowerPC or GCC; it's specific to disabling the cocoa variant. Their meson build script makes the incorrect assumption that an Objective-C compiler is only required when building the Cocoa UI but it's also required to compile the CoreAudio driver regardless of the UI.
This is an upstream bug and getting it fixed could have been accelerated if someone had reported it to the developers. I've reported it there now: https://gitlab.com/qemu-project/qemu/-/issues/2138
Thank you, Ryan
comment:5 Changed 2 months ago by barracuda156
Unrelated to coreaudio, but just to keep the link: https://gitlab.com/qemu-project/qemu/-/issues/2606
comment:6 Changed 2 months ago by kencu (Ken)
just as a data point, the issue this ticket was about has been supposedly fixed by upstream commit
https://gitlab.com/philmd/qemu/-/commit/2ef938a0994097969aab947aeb49982572640687
not sure where that commit is in the releases etc and if we have updated to a version with that commit in it and can therefore close this ticket.
The newly-reported issue with qemu not working on Darwin PPC would appear to be a completely different kind of problem (and one which I doubt would ever be fixed by upstream barring someone providing them with a simple, tolerable, and tested patch).
I can confirm seeing this issue as well in High Sierra on Intel.