Saturday, April 18, 2020

Re: Failed to compile vim with lua support.

Hi Hongyi Zhao!

On Sat, 18 Apr 2020 08:09:57 +0800
Hongyi Zhao <hongyi.zhao@gmail.com> wrote:

> Hi,
>
> Latest git version of vim, see the following:
>
> $ make -j24
> /usr/bin/ld: objects/if_lua.o: in function `luaopen_vim':
> /home/werner/Public/editor/vim/vim.git/src/if_lua.c:2011: undefined
> reference to `lua_setglobal'

Can you try with `make -j1`?

Note that vim-from-git builds fine here on mageia linux v8 x64, after running
this script:

https://github.com/shlomif/shlomif-computer-settings/blob/d70ed1eac69f2ae85e1493e2f693b8e2b32d228a/shlomif-settings/build-scripts/build/vim.sh

```
#!/usr/bin/env bash
set -x
./configure "$@" --prefix=$HOME/apps/vim \
--enable-fail-if-missing \
--with-features=huge \
--enable-luainterp \
--enable-perlinterp \
--enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-tclinterp \
--enable-gui=gtk3 \

```

```
[shlomif@telaviv1 vim-git]$ git show | head -3
commit 2695de63e370235c4d3d73e3fe07cc1006de3460
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 17 21:13:01 2020 +0200
[shlomif@telaviv1 vim-git]$ ldd src/vim | grep lua
liblua.so.5.2 => /lib64/liblua.so.5.2 (0x00007fe3c73a3000)
[shlomif@telaviv1 vim-git]$
```

Can you provide more details about your operating system and how you ran
`./configure`?



--

Shlomi Fish https://www.shlomifish.org/
https://is.gd/MQHVF3 - The Atom Text Editor edits a 2,000,001B file

I promised, I forgot, I did not keep my promise — just shoot me, and get on
with it!
https://www.shlomifish.org/humour.html

Please reply to list if it's a mailing list post - https://shlom.in/reply .

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200418102014.2b069f37%40telaviv1.shlomifish.org.

No comments: