-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YCM build on Cygwin 64: errors in pyport.h, LONG_BIT wrong #684
Comments
There's no official support for Windows. Pull requests welcome. |
Boost.Python makes the incorrect assumption that Cygwin is always 32-bit. The Cygwin version of wrap_python.hpp include the following modification that allows compilation to proceed:
|
Confirmed that @Aneurin 's patch is working on Windows 7 with Cygwin 64bit. |
@ofan, I wonder: does that mean you've had success at actually using it, or just building? For me, compilation appears successful but I'm currently stuck on Vim immediately segfaulting on startup. (PS: what's the protocol for discussion of tangential topics in bug threads, given that Github doesn't appear to provide the facility to send PMs?) |
Same here: build completes succefully, but after copying ycm_core and ycm_support_libs into python dir (and renaming to .dll), vim (and the entire cygwin terminal) crashes (i.e., does not respond any more). P.S.: I did not try to include Clang. |
It compiles successfully but I got link error for some reason. Clang completer also seems broken in Cygwin(link error too). |
I know this thread is closed but for people looking for a one-stop fix. |
well, you're right the build compiles successfully (w/o clang) when I use your cmake command on my Win7_64 in cygwin64. |
Weird, its working fine for me. I had an issue with it hanging on the "." operator in python, but that went away when I removed my python-mode plugin. You could check if you have other plugins which might be interacting in some crazy way with YCM. Or you could remove YCM from your .vimrc and add it back with vundle and re-do the :BundleInstall, should be much faster now that you've already compiled and built it. |
Thanks for the hint: Now I, at least, get an error message, but it's still not working. I removed .vim and .vimrc completely and started over again using two variants:
I'm happy to see an error message, but it still does not work. |
The frozendict issue should be related to missing submodules. An earlier issue #582 talks about it. Follow the steps there see if it helps. You should run "git submodule update --init --recursive" inside your YCM directory. |
Tried that: fresh Vundle, .vimrc and YCM, including git submodule update, mods to wrap_python.hpp and so on.
|
I have no idea, but I would try 1 or both of the following.
|
1.: gdb (and/or a stack/core dump) shows only some addresses; nothing of use. |
It works! Thank you all for your contributions! For the sake of completeness, here is a (poorly-commented) step-by-step instruction:
1b. Vundle:
2 . Clone YCM, update submodules, adjust BoostParts, build, copy and rename core and client_support_libs:
|
Btw: I've tried to build YCM with Clang 3.4 but did not succeed. Following my configure command
the build produced the error message
Just the test executable failed; both shared libs were built successfully. So I renamed and copied them but Vim now reports a ycmd shutdown on start. (Configure command for llvm/clang was
in ~/tools/builds/llvm-3.4) |
@wlnirvana thanks for the tip, that solved the problem for me o/ |
@Aneurin thanks! Your patch worked for me on cygwin/windows 8.1 64 bit though the file's path was /YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/wrap_python.hpp |
@Aneurin's patch worked for me as well on windows 8.1 with cygwin x64. It runs really slow though. Anyone else experienced this issue (and hopefully have a fix)? I'm using vim, llvm & clang from official repos:
|
Well, in the
So yeah, It assumes Cygwin is always 32 bit. Maybe we could detect if Cygwin is 32 or 64 bit? Then we could decide to define |
I submitted Chris Nixon's patch to the Boost repo. That will hopefully make manually patching the YCM build a thing of the past :-) |
This is now fixed in Boost! |
@fatso83 Thanks for pushing the patch upstream! :) |
I have still no luck in building YCM on cygwin64. Please see me comment in issue #66 (comment)
I've tried some other flags (-DCMAKE_CXX_FLAGS=-m64) and compilers (mingw32/64, cygwin32/64) but was not successful.
The text was updated successfully, but these errors were encountered: