Skip to content
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

Build fails with python support #429

Closed
themightyoarfish opened this issue Dec 4, 2016 · 5 comments
Closed

Build fails with python support #429

themightyoarfish opened this issue Dec 4, 2016 · 5 comments

Comments

@themightyoarfish
Copy link

themightyoarfish commented Dec 4, 2016

My system is 10.12.1.

I configure like this:

./configure --with-features=Huge --enable-perlinterp=yes --enable-rubyinterp=yes --enable-python3interp=yes --enable-cscope --enable-multibyte

The build works, but echo has('python') prints 0 as well as echo has('python3'). If instead I try with Python 2.7 (--enable-pythoninterp=yes), I get this error at linking stage:

Undefined symbols for architecture x86_64:
  "_PyInt_AsLong", referenced from:
      _NumberToLong in if_python.o
      __ConvertFromPyObject in if_python.o
      _ListItem in if_python.o
      _ListAssItem in if_python.o
  "_PyInt_FromLong", referenced from:
      _DoPyCommand in if_python.o
      _run_do in if_python.o
      _OutputGetattr in if_python.o
      _DictionaryGetattr in if_python.o
      _ListGetattr in if_python.o
      _OptionsItem in if_python.o
  "_PyString_AsString", referenced from:
      _run_do in if_python.o
      _CurrentGetattr in if_python.o
      _RBItem in if_python.o
      _RBSlice in if_python.o
  "_PyString_AsStringAndSize", referenced from:
      _StringToLine in if_python.o
      _StringToChars in if_python.o
      __ConvertFromPyObject in if_python.o
  "_PyString_FromFormat", referenced from:
      _BufferRepr in if_python.o
      _WindowRepr in if_python.o
      _TabPageRepr in if_python.o
      _RangeRepr in if_python.o
  "_PyString_FromString", referenced from:
      _DoPyCommand in if_python.o
      _OutputGetattr in if_python.o
      _BufferGetattr in if_python.o
      _FunctionRepr in if_python.o
      _FunctionGetattr in if_python.o
      _ObjectDir in if_python.o
      _ConvertToPyObject in if_python.o
      ...
  "_PyString_FromStringAndSize", referenced from:
      _run_do in if_python.o
      _CurrentGetattr in if_python.o
      _RBItem in if_python.o
      _RBSlice in if_python.o
  "_PyUnicodeUCS2_AsEncodedString", referenced from:
      _StringToLine in if_python.o
      _StringToChars in if_python.o
      __ConvertFromPyObject in if_python.o
  "_Py_FindMethod", referenced from:
      _OutputGetattr in if_python.o
      _BufferGetattr in if_python.o
      _WindowGetattr in if_python.o
      _TabPageGetattr in if_python.o
      _RangeGetattr in if_python.o
      _CurrentGetattr in if_python.o
      _DictionaryGetattr in if_python.o
      ...
  "_Py_InitModule4_64", referenced from:
      _DoPyCommand in if_python.o
  "__Py_ZeroStruct", referenced from:
      _BufferGetattr in if_python.o
      _WindowGetattr in if_python.o
      _TabPageGetattr in if_python.o
      _FunctionGetattr in if_python.o
      _AlwaysFalse in if_python.o
      __DictionaryItem in if_python.o
      _ConvertToPyObject in if_python.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Vim] Error 1
@splhack
Copy link
Contributor

splhack commented Dec 4, 2016

@splhack splhack closed this as completed Dec 4, 2016
@themightyoarfish
Copy link
Author

themightyoarfish commented Dec 4, 2016

I should mention that the binary release seems to lack python support as well, at least the results are the same as above, so I'm forced to build it myself.

As I use Macports, I can't use the Homebrew formula.

Also I don't see how I've set 'improper' options.

@splhack
Copy link
Contributor

splhack commented Dec 4, 2016

the binary release seems to lack python support add well

could you elaborate on that?

As I use macports, I can't use the homebrew formula.

could you elaborate on the technical reason of that?

@themightyoarfish
Copy link
Author

When I downloaded the binary a couple of hours ago has('python') was false while now it is not. Maybe I accidentally opened the wrong one, I don't know.

While it my technically be possible to have two package managers, I see little but potential for conflict therein. Duplicate binaries will cause confusion I'm sure.

I'd still be interested in comments to the actual problem of building MacVim. Do you think it is related to my system or what exactly is missing? Because I really have no clue.

@splhack
Copy link
Contributor

splhack commented Dec 4, 2016

Still you would like to know why your MacVim build was failed, I would recommend you to read the build error message and read https://github.com/macvim-dev/macvim/blob/master/src/auto/configure script thoroughly in order to set configuration properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants