Error linking cp39-win_amd64.pyd

287 views
Skip to first unread message

Thorgeous

unread,
Apr 10, 2021, 2:38:31 PM4/10/21
to ycm-users
Hello,

I have been trying to install YCM with clangd completion on Windows for use with Vim.
Tried following every instruction listing I could find from building directly with Visual Studio to following the "Complete Instructions". Been chipping away at that numerous issues but this one is a road block for me, any help would be much appreciated.

When running (from : \YouCompleteMe):
python install.py --all
or
Building solution in Visual Studio 17

Concludes with an error on Line 6537:
LINK : fatal error LNK1104: cannot open file 'C:\Users\ username\vimfiles\bundle\YouCompleteMe\third_party\ycmd\ycm_core.cp39-win_amd64.pyd' [C:\Users\username\AppData\Local\Temp\ycm_build_fokmxb7y\ycm\ycm_core.vcxproj]

The file is present in the directory stated in the error and I have tried reinstalling everything a few times, everything is the 64-bit version (Windows 10, Python 3.9, Clang/clangd 11.1, Vim 8.2 etc.), been working on this for a few days. I know the Vim user base is heavily Linux based so it has been like pulling teeth to get this far. All I can think is I am on an Intel machine? Any information or help would be great.

Thanks for your time.

Boris Staletic

unread,
Apr 11, 2021, 4:40:05 AM4/11/21
to Thorgeous, ycm-users
Hi,

Have you noticed the --msvc flag for the install.py? I'm not around my computer, so can't check the defaults.

--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/318d09cd-a241-4c64-9bf0-5278d6cc5f38n%40googlegroups.com.

Thorgeous

unread,
Apr 11, 2021, 5:12:42 PM4/11/21
to ycm-users
Hey Boris,
Thanks for taking the time. 
When using --msvc argument with the install.py it just opens that file in Visual Studio, The way that the full instructions explain to how to use the cmake version includes visual studio by name directly already:
cmake -G "Visual Studio 16" -DPATH_TO_LLVM_ROOT="C:\Program Files\LLVM" . C:\Users\username\vimfiles\bundle\YouCompleteMe\third_party\ycmd\cpp
both the cmake instructions and the more simple install.py come to that same linking error with the  ycm_core.cp39-win_amd64.pyd file.

Boris Staletic

unread,
Apr 11, 2021, 6:45:31 PM4/11/21
to Thorgeous, ycm-users
Hmmm... That's odd. Does ycm_core.cpython-whatever.pyd get generated? If so, there's a wiki page for diagnosing YCM startup problems.

I'll be able to take a closer look tomorrow night, when I get to my computer.

Thorgeous

unread,
Apr 13, 2021, 2:13:13 AM4/13/21
to ycm-users
I didn't know if the file got generated but it is in the YouCompleteMe folder already, I didn't see anything for this issue on the wiki, but maybe I missed it.

Boris Staletic

unread,
Apr 13, 2021, 4:43:29 PM4/13/21
to Thorgeous, ycm-users
> it is in the YouCompleteMe folder already,

Good.

> I didn't see anything for this issue on the wiki, but maybe I missed it.

Not directly related, but I'm hoping it would shed some light:

https://github.com/ycm-core/YouCompleteMe/wiki/Troubleshooting-steps-for-ycmd-server-SHUT-DOWN
>>>>> <https://groups.google.com/d/msgid/ycm-users/318d09cd-a241-4c64-9bf0-5278d6cc5f38n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google Groups
>>>
>>> "ycm-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>>
>>> email to ycm-users+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ycm-users/243ee8d8-45f5-4179-91c8-a42cb453667cn%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/ycm-users/243ee8d8-45f5-4179-91c8-a42cb453667cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "ycm-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ycm-users+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ycm-users/0cd98f3b-c7f3-4c52-9439-00ee7037540fn%40googlegroups.com.
>
Reply all
Reply to author
Forward
0 new messages