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

[lldb] Build failure with LZMA support on windows #107407

Open
R-Goc opened this issue Sep 5, 2024 · 1 comment
Open

[lldb] Build failure with LZMA support on windows #107407

R-Goc opened this issue Sep 5, 2024 · 1 comment

Comments

@R-Goc
Copy link
Contributor

R-Goc commented Sep 5, 2024

On x86-64-pc-windows-msvc compiling with clang-cl and lld-link, attempting to build lldb with lzma support causes the following build failure:

[7103/7877] Linking CXX shared library bin\liblldb.dll
FAILED: bin/liblldb.dll lib/liblldb.lib
C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_dll --intdir=tools\lldb\source\API\CMakeFiles\liblldb.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\mt.exe --manifests  -- C:\Users\rysza\bin\LLVM\bin\lld-link.exe /nologo @CMakeFiles\liblldb.rsp  /out:bin\liblldb.dll /implib:lib\liblldb.lib /pdb:bin\liblldb.pdb /dll /version:20.0 /machine:x64 -fuse-ld=lld-link /INCREMENTAL:NO && cd ."
LINK: command "C:\Users\rysza\bin\LLVM\bin\lld-link.exe /nologo @CMakeFiles\liblldb.rsp /out:bin\liblldb.dll /implib:lib\liblldb.lib /pdb:bin\liblldb.pdb /dll /version:20.0 /machine:x64 -fuse-ld=lld-link /INCREMENTAL:NO /MANIFEST:EMBED,ID=2" failed (exit code 1) 
lld-link: error: undefined symbol: __declspec(dllimport) lzma_stream_footer_decode
> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp
> >>>               lldbHost.lib(LZMA.cpp.obj)
> 
> lld-link: error: undefined symbol: __declspec(dllimport) lzma_index_buffer_decode
> >>> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp
> >>>               lldbHost.lib(LZMA.cpp.obj)
> 
> lld-link: error: undefined symbol: __declspec(dllimport) lzma_index_uncompressed_size
> >>> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp
> >>>               lldbHost.lib(LZMA.cpp.obj)
> 
> lld-link: error: undefined symbol: __declspec(dllimport) lzma_index_end
> >>> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp
> >>>               lldbHost.lib(LZMA.cpp.obj)
> 
> lld-link: error: undefined symbol: __declspec(dllimport) lzma_stream_buffer_decode
> >>> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp
> >>>               lldbHost.lib(LZMA.cpp.obj)
> 

LLVM version 20.0.0git from around a month ago.

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 5, 2024

@llvm/issue-subscribers-lldb

Author: None (R-Goc)

On x86-64-pc-windows-msvc compiling with clang-cl and lld-link, attempting to build lldb with lzma support causes the following build failure: ``` [7103/7877] Linking CXX shared library bin\liblldb.dll FAILED: bin/liblldb.dll lib/liblldb.lib C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_dll --intdir=tools\lldb\source\API\CMakeFiles\liblldb.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\mt.exe --manifests -- C:\Users\rysza\bin\LLVM\bin\lld-link.exe /nologo @CMakeFiles\liblldb.rsp /out:bin\liblldb.dll /implib:lib\liblldb.lib /pdb:bin\liblldb.pdb /dll /version:20.0 /machine:x64 -fuse-ld=lld-link /INCREMENTAL:NO && cd ." LINK: command "C:\Users\rysza\bin\LLVM\bin\lld-link.exe /nologo @CMakeFiles\liblldb.rsp /out:bin\liblldb.dll /implib:lib\liblldb.lib /pdb:bin\liblldb.pdb /dll /version:20.0 /machine:x64 -fuse-ld=lld-link /INCREMENTAL:NO /MANIFEST:EMBED,ID=2" failed (exit code 1) lld-link: error: undefined symbol: __declspec(dllimport) lzma_stream_footer_decode > referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp > >>> lldbHost.lib(LZMA.cpp.obj) > > lld-link: error: undefined symbol: __declspec(dllimport) lzma_index_buffer_decode > >>> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp > >>> lldbHost.lib(LZMA.cpp.obj) > > lld-link: error: undefined symbol: __declspec(dllimport) lzma_index_uncompressed_size > >>> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp > >>> lldbHost.lib(LZMA.cpp.obj) > > lld-link: error: undefined symbol: __declspec(dllimport) lzma_index_end > >>> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp > >>> lldbHost.lib(LZMA.cpp.obj) > > lld-link: error: undefined symbol: __declspec(dllimport) lzma_stream_buffer_decode > >>> referenced by C:\Users\rysza\lib\llvm-project\lldb\source\Host\common\LZMA.cpp > >>> lldbHost.lib(LZMA.cpp.obj) > ``` LLVM version 20.0.0git from around a month ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants