Opened 9 months ago

Last modified 3 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)
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 (2)

comment:1 Changed 9 months ago by DesktopECHO

I can confirm seeing this issue as well in High Sierra on Intel.

comment:2 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: powerpc removed
Summary: qemu configure does not recognize gcc as a valid objc compilerqemu @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

Note: See TracTickets for help on using tickets.