[MacPorts] #67984: qemu configure does not recognize gcc as a valid objc compiler
MacPorts
noreply at macports.org
Fri Aug 18 11:32:15 UTC 2023
#67984: qemu configure does not recognize gcc as a valid objc compiler
--------------------------+----------------------
Reporter: barracuda156 | Owner: raimue
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: powerpc | Port: qemu
--------------------------+----------------------
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`.
--
Ticket URL: <https://trac.macports.org/ticket/67984>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list