cmd/go: ld: building for macOS, but linking in object file built for iOS #57397
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Darwin
Milestone
Go 1.19.4
When building our application, a few of us occasionally get the error:
And the only way to recover is to do a
go clean -cache
and build again.We haven't figured out more than that, yet. And we don't have an on-demand repro.
Just filing this now in case anybody has any ideas.
Like, maybe piece of the environment is missing from the cache signature? Maybe an empty file is being created that's being interpreted as iOS instead of macOS?
But that error message is not a Go thing at all. I see tons of Google results for other languages. But maybe
cmd/go
can detect whatever broken state its input is in and ignore that input file and rebuild it instead? Totally guessing./cc @ianlancetaylor who likes linkers :)
The text was updated successfully, but these errors were encountered: