Can't build vlc-git

Here the last lines from the huge log:

/usr/bin/ld: lua/.libs/liblua_plugin_la-extension.o: in function `GetLuaState.part.0':
extension.c:(.text+0x55e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-dialog.o: in function `vlclua_create_widget_inner':
dialog.c:(.text+0xc0d): undefined reference to `lua_newuserdata'
/usr/bin/ld: dialog.c:(.text+0xdcd): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-dialog.o: in function `vlclua_dialog_create':
dialog.c:(.text+0x1510): undefined reference to `lua_newuserdata'
/usr/bin/ld: dialog.c:(.text+0x15cd): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-net.o: in function `vlclua_net_listen_tcp':
net.c:(.text+0xd42): undefined reference to `lua_newuserdata'
/usr/bin/ld: net.c:(.text+0xd9c): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-net.o: in function `vlclua_fd_init':
net.c:(.text+0x1b32): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/.libs/liblua_plugin_la-intf.o: in function `Start_LuaIntf':
intf.c:(.text+0x239): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/.libs/liblua_plugin_la-meta.o: in function `init':
meta.c:(.text+0x6f): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/.libs/liblua_plugin_la-stream_filter.o: in function `ReadDir':
stream_filter.c:(.text+0x11e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/.libs/liblua_plugin_la-stream_filter.o:stream_filter.c:(.text+0x384): more undefined references to `luaL_openlib' follow
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-httpd.o: in function `vlclua_httpd_redirect_new':
httpd.c:(.text+0x90): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-httpd.o: in function `vlclua_httpd_tls_host_new':
httpd.c:(.text+0x6ba): undefined reference to `lua_newuserdata'
/usr/bin/ld: httpd.c:(.text+0x795): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-httpd.o: in function `vlclua_httpd_handler_new':
httpd.c:(.text+0x94e): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-httpd.o: in function `vlclua_httpd_file_new':
httpd.c:(.text+0xb70): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-input.o: in function `luaopen_input':
input.c:(.text+0x1c9e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-input.o: in function `vlclua_input_item_get':
input.c:(.text+0x1cdf): undefined reference to `lua_newuserdata'
/usr/bin/ld: input.c:(.text+0x1d35): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-messages.o: in function `luaopen_msg':
messages.c:(.text+0x9fe): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-misc.o: in function `luaopen_misc':
misc.c:(.text+0x42e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-objects.o: in function `vlclua_push_vlc_object.isra.0':
objects.c:(.text+0x104): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-objects.o: in function `luaopen_object':
objects.c:(.text+0x26e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-osd.o: in function `luaopen_osd':
osd.c:(.text+0x3ce): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-playlist.o: in function `luaopen_playlist':
playlist.c:(.text+0x124e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-sd.o: in function `vlclua_sd_create_item':
sd.c:(.text+0x327): undefined reference to `lua_newuserdata'
/usr/bin/ld: sd.c:(.text+0x43d): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-sd.o: in function `vlclua_sd_create_node':
sd.c:(.text+0x182e): undefined reference to `lua_newuserdata'
/usr/bin/ld: sd.c:(.text+0x18dd): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-sd.o: in function `luaopen_sd_sd':
sd.c:(.text+0x1bce): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-stream.o: in function `vlclua_stream_new_inner':
stream.c:(.text+0x1c): undefined reference to `lua_newuserdata'
/usr/bin/ld: stream.c:(.text+0x75): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-strings.o: in function `vlclua_convert_xml_special_chars':
strings.c:(.text+0x2dc): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x348): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x38a): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x3cc): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x417): undefined reference to `lua_remove'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-strings.o:strings.c:(.text+0x456): more undefined references to `lua_remove' follow
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-strings.o: in function `luaopen_strings':
strings.c:(.text+0xc9e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-variables.o: in function `luaopen_variables':
variables.c:(.text+0xd6e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-video.o: in function `luaopen_video':
video.c:(.text+0x9e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-vlm.o: in function `vlclua_vlm_new':
vlm.c:(.text+0x212): undefined reference to `lua_newuserdata'
/usr/bin/ld: vlm.c:(.text+0x26d): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-volume.o: in function `luaopen_volume':
volume.c:(.text+0x25e): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-xml.o: in function `vlclua_xml_create':
xml.c:(.text+0x8): undefined reference to `lua_newuserdata'
/usr/bin/ld: xml.c:(.text+0x55): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-xml.o: in function `vlclua_xml_create_reader':
xml.c:(.text+0xb7): undefined reference to `lua_newuserdata'
/usr/bin/ld: xml.c:(.text+0x10d): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-io.o: in function `vlclua_io_open':
io.c:(.text+0x10b): undefined reference to `lua_newuserdata'
/usr/bin/ld: io.c:(.text+0x17d): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-io.o: in function `luaopen_vlcio':
io.c:(.text+0xaee): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-rand.o: in function `luaopen_rand':
rand.c:(.text+0xde): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-renderers.o: in function `vlclua_rd_create':
renderers.c:(.text+0x17): undefined reference to `lua_newuserdata'
/usr/bin/ld: renderers.c:(.text+0xfd): undefined reference to `luaL_openlib'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-renderers.o: in function `luaopen_rd':
renderers.c:(.text+0x76e): undefined reference to `luaL_openlib'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:17191: liblua_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/var/tmp/pamac-build-io/vlc-git/src/vlc/modules'
make[3]: *** [Makefile:32084: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/pamac-build-io/vlc-git/src/vlc/modules'
make[2]: *** [Makefile:13486: all] Error 2
make[2]: Leaving directory '/var/tmp/pamac-build-io/vlc-git/src/vlc/modules'
make[1]: *** [Makefile:1578: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/pamac-build-io/vlc-git/src/vlc'
make: *** [Makefile:1463: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Here is the last comment on their AUR page
https://aur.archlinux.org/packages/vlc-git#comment-755067

What should i do? I am really unexperienced with AUR.
Uninstall lua? How can i install a lower version of lua?

According to other comments there, you have to remove lua52
Then you try again to build vlc-git and then reinstall lua52 because is required by mpv and readline

I have removed lua52 but it still fails building.
Should i remove the other lua52 related packages like: lua52-bitop, lua52-expat, lua52-socket?
Is a restart necessary in this cases?

It failed on one of my installs too, but no time to get into it properly …

please give some update on this.
it still fails after the general update.

Hello all,

I encountered a similar problem.
The lua related errors can be circumvented when you remove lua, lua51 and lua52.
Then try again.
If you should experience compile errors like

In file included from video_output/opengl/vout_helper.h:35,
                 from video_output/opengl/vout_helper.c:46:
video_output/opengl/../placebo_utils.h:322:36: error: 'pl_filter_haasnsoft' undeclared here (not in a function); did you mean 'pl_filter_gaussian'?
  322 |     [SCALE_HAASNSOFT]           = &pl_filter_haasnsoft,
      |                                    ^~~~~~~~~~~~~~~~~~~
      |                                    pl_filter_gaussian
make[4]: *** [Makefile:27837: video_output/opengl/libvlc_opengl_la-vout_helper.lo] Error 1

you will have to install libplacebo-git from the AUR.

Videolan also provide Daily Builds as .snap files.

https://nightlies.videolan.org/
https://artifacts.videolan.org/vlc/nightly-snap/

To install it:

snap install --dangerous vlc.snap