On Thu, 2018-04-12 at 13:09 +0100, Daniel P. Berrangé wrote:
IIUC, this appears to have broken the Go compiler. Unsetting
'CC' makes
it work again. IIUC this wasn't a problem with normal Fedora setup for
ccache, because that doesn't set 'CC', it just puts the ccache 'gcc'
binary into $PATH.
It looks like its a limitation of "Go" - it doesn't like it when
"CC" contains multiple words - it drops everything except the first
word. So when we set CC="ccache cc", go just runs "ccache $args"
instead of "ccache cc $args"
MinGW (or at least the way we do MinGW builds) has a similar issue.
I've posted a workaround:
https://www.redhat.com/archives/libvir-list/2018-April/msg01000.html
--
Andrea Bolognani / Red Hat / Virtualization