On my iMac running Catalina 10.15.7, YCM suddenly stopped working with macvim, after weeks of working just fine. I got the usual message, "YCM server shut down, restart with ..." but restarting just immediately shut down again.
Going to the troubleshooting pages on the ycm github repo, I went through the various steps for rebuilding. When using the system's python3, I get the following error during compile time:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2:error:
Unsupported architecture
#error Unsupported architecture
On the other hand, if I use conda's python3 (which I understand is not recommended), I get no errors during compile time but then YCM doesn't even start up when I open macvim. For example :YcmDebugInfo is unrecognized.
I am assuming that something changed on my system to cause this, some kind of update or something like that, but at this point I am out of ideas and I'm hoping someone can point me in the right direction.