lua-language-server
lua-language-server copied to clipboard
Error when building on Ubuntu
Steps
git clone https://github.com/sumneko/lua-language-server lua
cd lua
git submodule update --init --recursive
cd 3rd/luamake
./compile/install.sh
Output
[2/46] Compile C++ build/linux/obj/source_bee/lua_filewatch.obj
FAILED: build/linux/obj/source_bee/lua_filewatch.obj
gcc -MMD -MT build/linux/obj/source_bee/lua_filewatch.obj -MF build/linux/obj/source_bee/lua_filewatch.obj.d -std=c++17 -O2 -Wall -Werror -fvisibility=hidden -I3rd/bee.lua/3rd/lua -I3rd/bee.lua/3rd/lua-seri -I3rd/bee.lua/bee/nonstd -I3rd/bee.lua -DBEE_INLINE -DBEE_STATIC -DNDEBUG -fPIC -o build/linux/obj/source_bee/lua_filewatch.obj -c 3rd/bee.lua/binding/lua_filewatch.cpp
In file included from 3rd/bee.lua/bee/thread/lockqueue.h:5,
from 3rd/bee.lua/bee/fsevent/fsevent_linux.h:7,
from 3rd/bee.lua/bee/fsevent.h:10,
from 3rd/bee.lua/binding/lua_filewatch.cpp:2:
3rd/bee.lua/bee/thread/spinlock.h:14:6: error: #error unsupport platform
#error unsupport platform
^~~~~
3rd/bee.lua/bee/thread/spinlock.h: In member function ‘void bee::spinlock::lock()’:
3rd/bee.lua/bee/thread/spinlock.h:26:21: error: ‘cpu_relax’ was not declared in this scope
cpu_relax();
^~~~~~~~~
3rd/bee.lua/bee/thread/spinlock.h:26:21: note: suggested alternative: ‘cpu_set_t’
cpu_relax();
^~~~~~~~~
cpu_set_t
[4/46] Compile C++ build/linux/obj/source_bee/fsevent_linux.obj
FAILED: build/linux/obj/source_bee/fsevent_linux.obj
gcc -MMD -MT build/linux/obj/source_bee/fsevent_linux.obj -MF build/linux/obj/source_bee/fsevent_linux.obj.d -std=c++17 -O2 -Wall -Werror -fvisibility=hidden -I3rd/bee.lua/bee/nonstd -I3rd/bee.lua -DBEE_INLINE -DNDEBUG -fPIC -fPIC -o build/linux/obj/source_bee/fsevent_linux.obj -c 3rd/bee.lua/bee/fsevent/fsevent_linux.cpp
In file included from 3rd/bee.lua/bee/thread/lockqueue.h:5,
from 3rd/bee.lua/bee/fsevent/fsevent_linux.h:7,
from 3rd/bee.lua/bee/fsevent/fsevent_linux.cpp:1:
3rd/bee.lua/bee/thread/spinlock.h:14:6: error: #error unsupport platform
#error unsupport platform
^~~~~
3rd/bee.lua/bee/thread/spinlock.h: In member function ‘void bee::spinlock::lock()’:
3rd/bee.lua/bee/thread/spinlock.h:26:21: error: ‘cpu_relax’ was not declared in this scope
cpu_relax();
^~~~~~~~~
3rd/bee.lua/bee/thread/spinlock.h:26:21: note: suggested alternative: ‘cpu_set_t’
cpu_relax();
^~~~~~~~~
cpu_set_t
ninja: build stopped: subcommand failed.
Can someone please help me? I've been stuck on this problem for soooooooooooo long! And, I'm really getting tired of this!