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

windows build failure on msvc/_/unittest #160

Closed
dseeni opened this issue Apr 29, 2020 · 5 comments
Closed

windows build failure on msvc/_/unittest #160

dseeni opened this issue Apr 29, 2020 · 5 comments
Assignees
Labels
compile Related to compiling the server from source

Comments

@dseeni
Copy link

dseeni commented Apr 29, 2020

Hi Sumneko,
Your plugin is pretty awesome :).

But I want to ask about one issue.

I am on windows 8.1 pro (no windows 10 on this computer), trying to compile standalone.

Please see my error, it occurs after almost every thing compiled and unit testing has started:

I can not recognize the character output, I have no idea why that is the case, I am compiling with powershell developer visual studio build tools.

The server exe seems to have compiled but there are so many failures... so I am not sure.
Please let me know.
Thank you!

see here:
"[80/80] C:/Users/DEEPAK/vimfiles/plugged/lua-language-server/3rd/luamake/luamake.exe lua make/unittest.lua msvc
FAILED: build/msvc/_/unittest"

Full Log:

PS C:\Users\DEEPAK\vimfiles\plugged\lua-language-server> 3rd\luamake\luamake.exe rebuild
Cleaning... 80 files.
[1/80] Compile C build/msvc/obj/lua54/lopcodes.obj
[2/80] Compile C build/msvc/obj/lua54/llex.obj
[3/80] Compile C build/msvc/obj/lua54/liolib.obj
[4/80] Compile C build/msvc/obj/lua54/lauxlib.obj
[5/80] Compile C build/msvc/obj/lua54/loadlib.obj
[6/80] Compile C build/msvc/obj/lua54/ldebug.obj
[7/80] Compile C build/msvc/obj/lua54/lfunc.obj
[8/80] Compile C build/msvc/obj/lua54/lobject.obj
[9/80] Compile C build/msvc/obj/lua54/lmathlib.obj
[10/80] Compile C build/msvc/obj/lua54/lparser.obj
[11/80] Compile C build/msvc/obj/lua54/lapi.obj
[12/80] Compile C build/msvc/obj/lua54/lctype.obj
[13/80] Compile C build/msvc/obj/lua54/loslib.obj
[14/80] Compile C build/msvc/obj/lua54/lcorolib.obj
[15/80] Compile C build/msvc/obj/lua54/lundump.obj
[16/80] Compile C build/msvc/obj/lua54/linit.obj
[17/80] Compile C build/msvc/obj/lua54/ldblib.obj
[18/80] Compile C build/msvc/obj/lua54/ldo.obj
[19/80] Compile C build/msvc/obj/lua54/lmem.obj
[20/80] Compile C build/msvc/obj/lua54/lcode.obj
[21/80] Compile C build/msvc/obj/lua54/ldump.obj
[22/80] Compile C build/msvc/obj/lua54/lgc.obj
[23/80] Compile C build/msvc/obj/lua54/lbaselib.obj
[24/80] Compile C build/msvc/obj/lua54/utf8_unicode.obj
[25/80] Compile C build/msvc/obj/lua54/ltable.obj
[26/80] Compile C build/msvc/obj/lua54/utf8_crt.obj
[27/80] Compile C build/msvc/obj/lua54/lzio.obj
[28/80] Compile C build/msvc/obj/lua54/lstrlib.obj
[29/80] Compile C++ build/msvc/obj/bee/exception.obj
[30/80] Compile C build/msvc/obj/lua54/lstring.obj
[31/80] Compile C build/msvc/obj/lua54/lstate.obj
[32/80] Compile C++ build/msvc/obj/bee/lua_embed.obj
[33/80] Compile C build/msvc/obj/lua54/lutf8lib.obj
[34/80] Compile C build/msvc/obj/lua54/ltablib.obj
[35/80] Compile C build/msvc/obj/lua54/ltm.obj
[36/80] Compile C build/msvc/obj/lua54/lvm.obj
[37/80] Compile C++ build/msvc/obj/bee/module_version_win.obj
[38/80] Compile C build/msvc/obj/bee/lua-seri.obj
[39/80] Compile C++ build/msvc/obj/bee/version_win.obj
[40/80] Compile C build/msvc/obj/lua/utf8_unicode.obj
[41/80] Compile C build/msvc/obj/lpeglabel/lpcode.obj
[42/80] Compile C++ build/msvc/obj/bee/unicode_win.obj
[43/80] Compile C build/msvc/obj/lua/utf8_lua.obj
[44/80] Compile C++ build/msvc/obj/bee/subprocess_win.obj
[45/80] Compile C build/msvc/obj/lpeglabel/lpcap.obj
[46/80] Compile C++ build/msvc/obj/bee/file_helper.obj
[47/80] Compile C++ build/msvc/obj/bee/socket.obj
[48/80] Compile C++ build/msvc/obj/bee/fsevent_win.obj
[49/80] Compile C++ build/msvc/obj/bee/sharedmemory_win.obj
[50/80] Compile C++ build/msvc/obj/bee/lua_serialization.obj
[51/80] Compile C++ build/msvc/obj/bee/endpoint.obj
[52/80] Compile C++ build/msvc/obj/bee/path_helper.obj
[53/80] cmd.exe /C 3rd\bee.lua\project\copy.bat 3rd\bee.lua\bootstrap\main.lua build\msvc\bin
1 file(s) copied.
[54/80] Compile C++ build/msvc/obj/bee/lua_unicode.obj
[55/80] Compile C++ build/msvc/obj/bee/lua_platform.obj
[56/80] Compile C++ build/msvc/obj/bee/error.obj
[57/80] Compile C build/msvc/obj/lpeglabel/lpprint.obj
[58/80] Compile C build/msvc/obj/lpeglabel/lpvm.obj
3rd/lpeglabel/lpvm.c(114): warning C4244: '=': conversion from 'lua_Integer' to 'int', possible loss of data
3rd/lpeglabel/lpvm.c(149): warning C4244: 'return': conversion from 'lua_Integer' to 'int', possible loss of data
[59/80] Compile C build/msvc/obj/lpeglabel/lptree.obj
3rd/lpeglabel/lptree.c(59): warning C4244: '=': conversion from 'lua_Number' to 'int', possible loss of data
3rd/lpeglabel/lptree.c(175): warning C4244: '=': conversion from 'lua_Unsigned' to 'int', possible loss of data
3rd/lpeglabel/lptree.c(194): warning C4244: 'return': conversion from 'lua_Unsigned' to 'int', possible loss of data
3rd/lpeglabel/lptree.c(351): warning C4244: 'return': conversion from 'lua_Unsigned' to 'int', possible loss of data
3rd/lpeglabel/lptree.c(466): warning C4244: 'initializing': conversion from 'lua_Integer' to 'int', possible loss of data
3rd/lpeglabel/lptree.c(843): warning C4244: 'initializing': conversion from 'lua_Integer' to 'int', possible loss of data
3rd/lpeglabel/lptree.c(1160): warning C4244: 'initializing': conversion from 'lua_Unsigned' to 'int', possible loss of data
[60/80] Compile C++ build/msvc/obj/bee/lua_filewatch.obj
[61/80] Compile C++ build/msvc/obj/bootstrap/main.obj
[62/80] Compile C++ build/msvc/obj/bootstrap/progdir.obj
[63/80] Compile C++ build/msvc/obj/lni/main.obj
[64/80] Compile C++ build/msvc/obj/bee/lua_thread.obj
[65/80] Compile C++ build/msvc/obj/bee/lua_registry.obj
[66/80] Compile C++ build/msvc/obj/rcedit/main.obj
[67/80] Link Dll build/msvc/bin/lua54.dll
Creating library build/msvc/bin/lua54.lib and object build/msvc/bin/lua54.exp
Generating code
Finished generating code
[68/80] Link Exe build/msvc/bin/bootstrap.exe
Generating code
Finished generating code
[69/80] Link Exe build/msvc/bin/lua.exe
Generating code
Finished generating code
[70/80] Link Dll build/msvc/bin/lpeglabel.dll
Creating library build/msvc/bin/lpeglabel.lib and object build/msvc/bin/lpeglabel.exp
Generating code
Finished generating code
[71/80] Link Dll build/msvc/bin/lni.dll
Creating library build/msvc/bin/lni.lib and object build/msvc/bin/lni.exp
Generating code
Finished generating code
[72/80] Compile C++ build/msvc/obj/bee/lua_socket.obj
[73/80] Compile C++ build/msvc/obj/bee/lua_filesystem.obj
[74/80] Compile C++ build/msvc/obj/bee/lua_subprocess.obj
[75/80] Compile C++ build/msvc/obj/rcedit/rescle.obj
3rd/rcedit/src/rescle.cc(240): warning C4018: '<': signed/unsigned mismatch
3rd/rcedit/src/rescle.cc(887): warning C4101: 'e': unreferenced local variable
[76/80] Link Dll build/msvc/bin/bee.dll
Creating library build/msvc/bin/bee.lib and object build/msvc/bin/bee.exp
Generating code
Finished generating code
[76/80] build/msvc/bin/bootstrap.exe 3rd\bee.lua\test\test.lua
OS: Windows
Arch: 32
Compiler: MSVC 16.5
CRT: MSVC 16.5
DEBUG: false
.................................................................................................
Ran 97 tests in 0.795 seconds, 97 successes, 0 failures
OK
[77/80] Link Exe build/msvc/bin/rcedit.exe
Generating code
Finished generating code
[78/80] C:/Users/DEEPAK/vimfiles/plugged/lua-language-server/3rd/luamake/luamake.exe lua make/install.lua msvc
[80/80] C:/Users/DEEPAK/vimfiles/plugged/lua-language-server/3rd/luamake/luamake.exe lua make/unittest.lua msvc
FAILED: build/msvc/_/unittest
C:/Users/DEEPAK/vimfiles/plugged/lua-language-server/3rd/luamake/luamake.exe lua make/unittest.lua msvc
测试[core]...
测试[core]用时[0.114]
测试[definition]...
测试[definition]用时[0.349]
测试[rename]...
测试[rename]用时[0.018]
测试[highlight]...
测试[highlight]用时[0.051]
测试[references]...
测试[references]用时[0.031]
测试[diagnostics]...
测试[diagnostics]用时[0.274]
测试[type_inference]...
测试[type_inference]用时[0.162]
测试[find_lib]...
测试[find_lib]用时[0.055]
测试[hover]...
测试[hover]用时[0.269]
测试[completion]...
测试[completion]用时[0.246]
测试[signature]...
测试[signature]用时[0.036]
测试[document_symbol]...
测试[document_symbol]用时[0.159]
测试[crossfile]...
测试[crossfile]用时[0.208]
测试[full]...
基准编译测试[vm.txt]单次耗时:0.0790000000
基准诊断测试[vm.txt]单次耗时:0.0267894737
基准编译测试[largeGlobal.txt]单次耗时:1.2220000000
基准诊断测试[largeGlobal.txt]单次耗时:0.7615000000
测试[full]用时[4.973]
测试[other]...
C:/Users/DEEPAK/vimfiles/plugged/lua-language-server/3rd/luamake/luamake.exe: ...K/vimfiles/plugged/lua-language-server/make/
unittest.lua:22: C:\Users\DEEPAK\vimfiles\plugged\lua-language-server\bin\Windows\lua-language-server.exe: ...\vimfiles\plugg
ed\lua-language-server\test/other\ver.lua:27: 必须是 x84_64
stack traceback:
[C]: in function 'assert'
...\vimfiles\plugged\lua-language-server\test/other\ver.lua:27: in main chunk
[C]: in function 'require'
...vimfiles\plugged\lua-language-server\test/other/init.lua:1: in main chunk
[C]: in function 'require'
...ers\DEEPAK\vimfiles\plugged\lua-language-server\test.lua:34: in local 'test'
...ers\DEEPAK\vimfiles\plugged\lua-language-server\test.lua:52: in local 'main'
...ers\DEEPAK\vimfiles\plugged\lua-language-server\test.lua:58: in main chunk
[C]: in ?

stack traceback:
[C]: in function 'error'
...K/vimfiles/plugged/lua-language-server/make/unittest.lua:22: in main chunk
.../lua-language-server/3rd/luamake/scripts/command/lua.lua:59: in main chunk
...plugged/lua-language-server/3rd/luamake/scripts/util.lua:54: in function 'util.command'
...plugged/lua-language-server/3rd/luamake/scripts/main.lua:6: in main chunk
[C]: in function 'require'
...imfiles\plugged\lua-language-server\3rd\luamake\main.lua:5: in main chunk
[C]: in ?
ninja: build stopped: subcommand failed.

sumneko added a commit that referenced this issue Apr 30, 2020
@sumneko sumneko added the bug Something isn't working label May 14, 2020
@sumneko
Copy link
Collaborator

sumneko commented May 14, 2020

Should be fixed.

@wbthomason
Copy link

I'm having what I believe is this same issue on Linux: normal build, then a failure on build/linux/_/test. This is with aeae9df.

Full build output
ninja: Entering directory `3rd/luamake'
[0/3] cd 3rd/bee.lua && ninja -f ninja/linux.ninja
[89/89] build/linux/bin/bootstrap test/test.lua
OS:       	Linux
Arch:     	64
Compiler: 	Clang 10.0.0
CRT:      	libstdc++ 20200507
DEBUG:    	false
.....................................................................................
Ran 85 tests in 0.139 seconds, 85 successes, 0 failures
OK
[3/3] cp 3rd/bee.lua/build/linux/bin/bee.so bee.so
[1/67] Compile C   build/linux/obj/source_lua/lctype.obj
[2/67] Compile C   build/linux/obj/source_lua/lcorolib.obj
[3/67] Compile C   build/linux/obj/source_lua/lbaselib.obj
[4/67] Compile C   build/linux/obj/source_lua/ldblib.obj
[5/67] Compile C   build/linux/obj/source_lua/ldebug.obj
[6/67] Compile C   build/linux/obj/source_lua/lauxlib.obj
[7/67] Compile C   build/linux/obj/source_lua/ldump.obj
[8/67] Compile C   build/linux/obj/source_lua/lfunc.obj
[9/67] Compile C   build/linux/obj/source_lua/linit.obj
[10/67] Compile C   build/linux/obj/source_lua/ldo.obj
[11/67] Compile C   build/linux/obj/source_lua/lapi.obj
[12/67] Compile C   build/linux/obj/source_lua/lcode.obj
[13/67] Compile C   build/linux/obj/source_lua/lmathlib.obj
[14/67] Compile C   build/linux/obj/source_lua/lmem.obj
[15/67] Compile C   build/linux/obj/source_lua/liolib.obj
[16/67] Compile C   build/linux/obj/source_lua/lopcodes.obj
[17/67] Compile C   build/linux/obj/source_lua/llex.obj
[18/67] Compile C   build/linux/obj/source_lua/loadlib.obj
[19/67] Compile C   build/linux/obj/source_lua/lgc.obj
[20/67] Compile C   build/linux/obj/source_lua/lobject.obj
[21/67] Compile C   build/linux/obj/source_lua/lstate.obj
[22/67] Compile C   build/linux/obj/source_lua/loslib.obj
[23/67] Compile C   build/linux/obj/source_lua/lstring.obj
In function ‘createstrobj’,
    inlined from ‘luaS_createlngstrobj’ at 3rd/bee.lua/3rd/lua/lstring.c:170:17,
    inlined from ‘luaS_newlstr’ at 3rd/bee.lua/3rd/lua/lstring.c:240:10:
3rd/bee.lua/3rd/lua/lstring.c:164:17: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  164 |   getstr(ts)[l] = '\0';  /* ending 0 */
In file included from 3rd/bee.lua/3rd/lua/ldebug.h:11,
                 from 3rd/bee.lua/3rd/lua/lstring.c:17:
3rd/bee.lua/3rd/lua/lstring.c: In function ‘luaS_newlstr’:
3rd/bee.lua/3rd/lua/lstate.h:315:18: note: at offset 0 to object ‘ts’ with size 24 declared here
  315 |   struct TString ts;
      |                  ^~
[24/67] Compile C   build/linux/obj/source_lua/lundump.obj
[25/67] Compile C   build/linux/obj/source_lua/ltablib.obj
[26/67] Compile C   build/linux/obj/source_lua/ltm.obj
[27/67] Compile C   build/linux/obj/source_lua/lutf8lib.obj
[28/67] Compile C   build/linux/obj/source_lua/ltable.obj
[29/67] Compile C   build/linux/obj/source_lua/lzio.obj
[30/67] Compile C   build/linux/obj/lua/lua.obj
[31/67] Compile C   build/linux/obj/source_lua/lparser.obj
[32/67] Compile C   build/linux/obj/source_lua/lstrlib.obj
[33/67] Compile C   build/linux/obj/bee/lua-seri.obj
[34/67] Compile C++ build/linux/obj/bee/error.obj
[35/67] Compile C++ build/linux/obj/bee/exception.obj
[36/67] Compile C++ build/linux/obj/bee/file_helper.obj
[37/67] Compile C++ build/linux/obj/bee/socket.obj
[38/67] Compile C++ build/linux/obj/bee/endpoint.obj
[39/67] Compile C++ build/linux/obj/bee/lua_embed.obj
[40/67] Compile C   build/linux/obj/source_lua/lvm.obj
[41/67] Link    Exe build/linux/bin/lua
[42/67] Compile C++ build/linux/obj/bee/lua_platform.obj
[43/67] Compile C++ build/linux/obj/bee/subprocess_posix.obj
[44/67] Compile C++ build/linux/obj/bee/path_helper.obj
[45/67] Compile C++ build/linux/obj/bee/lua_serialization.obj
[46/67] Compile C++ build/linux/obj/bee/lua_filewatch.obj
[47/67] Compile C++ build/linux/obj/bootstrap/main.obj
[48/67] Compile C++ build/linux/obj/bootstrap/progdir.obj
[49/67] Compile C++ build/linux/obj/bee/fsevent_linux.obj
[50/67] mkdir -p build/linux/bin && cp 3rd/bee.lua/bootstrap/main.lua build/linux/bin/main.lua
[51/67] Link    Exe build/linux/bin/bootstrap
[52/67] Compile C++ build/linux/obj/bee/lua_filesystem.obj
[53/67] Compile C   build/linux/obj/lpeglabel/lpcap.obj
[54/67] Compile C   build/linux/obj/lpeglabel/lpprint.obj
[55/67] Compile C   build/linux/obj/lpeglabel/lpcode.obj
[56/67] Compile C   build/linux/obj/lpeglabel/lptree.obj
[57/67] Compile C++ build/linux/obj/bee/lua_socket.obj
[58/67] Compile C   build/linux/obj/lpeglabel/lpvm.obj
[59/67] Link    Dll build/linux/bin/lpeglabel.so
[60/67] Compile C++ build/linux/obj/bee/lua_subprocess.obj
[61/67] Compile C++ build/linux/obj/lni/main.obj
[62/67] Compile C++ build/linux/obj/bee/lua_thread.obj
[63/67] Link    Dll build/linux/bin/lni.so
[64/67] Link    Dll build/linux/bin/bee.so
[65/67] /tmp/yaytmp-1000/lua-language-server-git/src/lua-language-server/3rd/luamake/luamake lua make/install.lua linux
[66/67] build/linux/bin/bootstrap 3rd/bee.lua/test/test.lua
FAILED: build/linux/_/test 
build/linux/bin/bootstrap 3rd/bee.lua/test/test.lua
OS:       	Linux
Arch:     	64
Compiler: 	GCC 10.1.0
CRT:      	libstdc++ 20200507
DEBUG:    	false
....[67/67] /tmp/yaytmp-1000/lua-language-server-git/src/lua-language-server/3rd/luamake/luamake lua make/unittest.lua linux

测试[core]...
测试[core]用时[0.095]
测试[definition]...
测试[definition]用时[0.568]
测试[rename]...
测试[rename]用时[0.035]
测试[highlight]...
测试[highlight]用时[0.034]
测试[references]...
测试[references]用时[0.057]
测试[diagnostics]...
测试[diagnostics]用时[0.468]
测试[type_inference]...
测试[type_inference]用时[0.121]
测试[find_lib]...
测试[find_lib]用时[0.083]
测试[hover]...
ninja: build stopped: subcommand failed.

@wbthomason
Copy link

As a temporary workaround, one can edit make.lua to remove the test target from the default build target list.

@wbthomason
Copy link

wbthomason commented May 25, 2020

The workaround I mentioned above no longer seems to work after the bee and luamake submodules were updated again. I still experience a build failure in build/linux/_/test.

EDIT: It appears this might be a build failure with bee.lua rather than this code.

@actboy168 actboy168 added compile Related to compiling the server from source and removed bug Something isn't working labels Jul 1, 2020
@sumneko
Copy link
Collaborator

sumneko commented Nov 26, 2020

Should be fixed.

@sumneko sumneko closed this as completed Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile Related to compiling the server from source
Projects
None yet
Development

No branches or pull requests

4 participants