-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Macvim Build Failing #29940
Comments
This did the trick for me:
|
Is this a homebrew problem or a MacVim one? |
Manually setting the CFLAGS to the brewed Python framework, also seems to work: #29994. At least for Python 2.7 only builds. |
Unfortunately, this pull request created an odd problem where the system python would get linked inside MacVim, but the home-brewed site-packages directory would be referenced when running This led to cases of aborts on startup (with YouCompleteMe installed in plugins):
After uninstalling python, macvim, and vim, then brew installing each of them in order, the startup error changed to:
And no window would appear. Commenting out the CFLAGS line from the referenced pull request (line 78), and rebuilding MacVim led to a stable install. Here is the linking section from :version
|
Sigh. No winning with |
Check if your YCM's python interpreter path is set right. I accidentally found that my previous hack (i.e. set the YCM's python path to system's python in .vimrc) causes the DEAD SIGNAL after re-compiling vim from source, which is linked to the brew's python. Here's my correct vimrc and vim flag now.
I did the hack to handle the problem between virtualenv and YCM. YCM cannot detect the python interpreter in a virtualenv, and this might be your case as well. Hope this helps. |
So Björn Winckler (@b4winckler), the sole MacVim developer, said in earlier discussions that he basically hardcoded the link to the system python in MacVim. if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
vi_cv_path_python_plibs="-framework Python" He also said that he couldn't fix it himself, but if someone made a pull request wouldn't make the brewed python a requirement for MacVim (so he could still use the system python), that he would accept such a pull request. In that piece of code, is there a path variable that can be used in place of his hardcoded |
The correct approach isn't to try to discover, it's to have an option that lets it be set explicitly. |
Thanks for the correction @adamv. It looks like there might be a pull request that resolves this properly waiting to be merged. I'm excited and hopeful. |
Thanks for the pointer @bengolder ! That pull request has been incorporated as of just a short while ago - after a Linking: clang -L. -L/usr/local/lib -L. -L/usr/local/lib -L/usr/local/Cellar/python/ |
I am having a problem with the MacVim build on OSX 10.9.3. I am using the homebrew python, and it seems that the MacVim build is not able to find python -
Looks like the header files for Python are there in
/usr/local/Cellar/python/2.7.7_1/Frameworks/Python.framework/Versions/2.7/include/python2.7/
. I am not sure where MacVim is looking for them though. This might be related to #20392, but it seems that was fixed. I tried the soft linking trick mentioned in that issue, but it does not seem to work.Config, doctor, build log attached in the Gist -
https://gist.github.com/ssbanerje/1bae1de2e08d99bba958
The text was updated successfully, but these errors were encountered: