Windows build link error #28122
Labels
bug
issues reporting wrong behavior
build
building and installing Neovim using the provided scripts
platform:windows
Milestone
Problem
Get a link error,
While trying to build for windows, following instructions at:
https://github.com/neovim/neovim/blob/master/BUILD.md#building-on-windows
...
[385/421] Linking C executable bin\nvim.exe
FAILED: bin/nvim.exe lib/nvim.lib
C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=src\nvim\CMakeFiles\nvim_bin.dir --rc=C:\PROGRA
2\WI3CF21\10\bin\1002201.0\x86\rc.exe --mt=C:\PROGRA2\WI3CF21\10\bin\1002201.0\x86\mt.exe --manifests D:\dev\neovim\src\nvim\os\nvim.manifest -- C:\PROGRA1\MICROS2\2022\COMMUN1\VC\Tools\MSVC\14381.331\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\nvim_bin.rsp /out:bin\nvim.exe /implib:lib\nvim.lib /pdb:bin\nvim.pdb /version:0.0 /machine:X86 /INCREMENTAL:NO /subsystem:console /INCREMENTAL:NO /LTCG && cd ."LINK: command "C:\PROGRA
1\MICROS2\2022\COMMUN1\VC\Tools\MSVC\14381.331\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\nvim_bin.rsp /out:bin\nvim.exe /implib:lib\nvim.lib /pdb:bin\nvim.pdb /version:0.0 /machine:X86 /INCREMENTAL:NO /subsystem:console /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1 /MANIFESTINPUT:D:\dev\neovim\src\nvim\os\nvim.manifest" failed (exit code 1120) with the following output:Creating library lib\nvim.lib and object lib\nvim.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
math.c.obj : error LNK2001: unresolved external symbol __BitScanForward64
bin\nvim.exe : fatal error LNK1120: 1 unresolved externals
ninja: build stopped: subcommand failed.
...
full log is too long to paste here
Steps to reproduce
VsDevCmd.bat -arch=x64
cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE=Release
cmake --build .deps --config Release
cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=Release
cmake --build build --config Release
Expected behavior
expected to build fully
Neovim version (nvim -v)
source
Vim (not Nvim) behaves the same?
not building vim
Operating system/version
windows 10 pro
Terminal name/version
powershell
$TERM environment variable
not important
Installation
not installed
The text was updated successfully, but these errors were encountered: