[PATCH] D119058: Fix lld standalone build

Khem Raj via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 7 11:46:22 PST 2022


raj.khem added a comment.

In D119058#3301524 <https://reviews.llvm.org/D119058#3301524>, @MaskRay wrote:

> Move LLVM_ENABLE_ZLIB

this change breaks lldb builds

  /mnt/b/yoe/master/build/tmp/hosttools/ld: lib/liblldbPluginProcessGDBRemote.a(GDBRemoteCommunication.cpp.o): in function `lldb_private::process_gdb_remote::GDBRemoteCommunication::DecompressPacket() [clone .localalias]':
  GDBRemoteCommunication.cpp:(.text._ZN12lldb_private18process_gdb_remote22GDBRemoteCommunication16DecompressPacketEv+0x59a): undefined reference to `inflateInit2_'
  /mnt/b/yoe/master/build/tmp/hosttools/ld: GDBRemoteCommunication.cpp:(.text._ZN12lldb_private18process_gdb_remote22GDBRemoteCommunication16DecompressPacketEv+0x5af): undefined reference to `inflate'
  /mnt/b/yoe/master/build/tmp/hosttools/ld: GDBRemoteCommunication.cpp:(.text._ZN12lldb_private18process_gdb_remote22GDBRemoteCommunication16DecompressPacketEv+0x5bb): undefined reference to `inflateEnd'
  collect2: error: ld returned 1 exit status
  
  `


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119058/new/

https://reviews.llvm.org/D119058



More information about the llvm-commits mailing list