<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - cross-compile lldb for ios fails"
   href="https://bugs.llvm.org/show_bug.cgi?id=42981">42981</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cross-compile lldb for ios fails
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mryusolo@live.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>i cross-compile lldb for ios, but it failed.
cmake -DCMAKE_CROSSCOMPILING=True
-DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/IOS.cmake
-DCMAKE_IOS_SDK_ROOT=/Users/ruizhang/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk
-DLLVM_TABLEGEN=/Users/ruizhang/Desktop/tsdb/third_party/llvm/build_mac/bin/llvm-tblgen
-DCLANG_TABLEGEN=/Users/ruizhang/Desktop/tsdb/third_party/llvm/build_mac/bin/clang-tblgen
-DLLVM_HOST_TRIPLE=aarch64-apple-darwin18 -DLLVM_TARGET_ARCH=AArch64
-DLLVM_TARGETS_TO_BUILD=AArch64 -DCMAKE_OSX_ARCHITECTURES="armv7;armv7s;arm64"
-DLLVM_ENABLE_RTTI=1 -DLLDB_DISABLE_LIBEDIT=1 -DLLDB_DISABLE_CURSES=1
-DLLDB_DISABLE_PYTHON=1 -DLLVM_ENABLE_TERMINFO=0 -DLLVM_ENABLE_PIC=False
-DLLVM_BUILD_TOOLS=OFF -DLLVM_BUILD_RUNTIME=OFF -DLLVM_BUILD_EXAMPLES=OFF
-DLLVM_BUILD_TESTS=OFF -DLLVM_ENABLE_BACKTRACES=OFF -DLLVM_INCLUDE_TESTS=OFF
-DLLDB_BUILD_FRAMEWORK=1 -DLLDB_CODESIGN_IDENTITY=lldb_codesign 
-DCMAKE_BUILD_TYPE=Release ../   

there is a lack of lockdown.h in cross-compiling. The detailed error
information is as follows:


/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/RNBSocket.h:24:10:
fatal error: 
      'lockdown.h' file not found
#include "lockdown.h"
         ^~~~~~~~~~~~
In file included from
/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/libdebugserver.cpp:23:
In file included from
/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/RNBRemote.h:21:
/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/RNBSocket.h:24:10:
fatal error: 
      'lockdown.h' file not found
#include "lockdown.h"
         ^~~~~~~~~~~~
1 error generated.
make[2]: ***
[tools/lldb/tools/debugserver/source/CMakeFiles/lldbDebugserverCommon.dir/libdebugserver.cpp.o]
Error 1
In file included from
/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/RNBContext.cpp:27:
In file included from
/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/RNBRemote.h:21:
[ 38%] Building CXX object
lib/Transforms/AggressiveInstCombine/CMakeFiles/LLVMAggressiveInstCombine.dir/TruncInstCombine.cpp.o
/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/RNBSocket.h:24:10:
fatal error: 
      'lockdown.h' file not found
#include "lockdown.h"
         ^~~~~~~~~~~~
1 error generated.
make[2]: ***
[tools/lldb/tools/debugserver/source/CMakeFiles/lldbDebugserverCommon.dir/RNBContext.cpp.o]
Error 1
[ 38%] Building CXX object
lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/BoundsChecking.cpp.o
1 error generated.
make[2]: ***
[tools/lldb/tools/debugserver/source/CMakeFiles/lldbDebugserverCommon.dir/RNBRemote.cpp.o]
Error 1
Scanning dependencies of target LLVMInstCombine
[ 38%] Building CXX object
lib/Transforms/InstCombine/CMakeFiles/LLVMInstCombine.dir/InstructionCombining.cpp.o
/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/MacOSX/MachProcess.mm:218:9:
fatal error: 
      'BackBoardServices/BKSOpenApplicationConstants_Private.h' file not found
#import <BackBoardServices/BKSOpenApplicationConstants_Private.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: ***
[tools/lldb/tools/debugserver/source/CMakeFiles/lldbDebugserverCommon.dir/MacOSX/MachProcess.mm.o]
Error 1
[ 38%] Building CXX object
lib/Transforms/Instrumentation/CMakeFiles/LLVMInstrumentation.dir/CGProfile.cpp.o
/Users/ruizhang/Desktop/tsdb/third_party/llvm/tools/lldb/tools/debugserver/source/MacOSX/MachTask.mm:54:9:
fatal error: 
      'BackBoardServices/BKSWatchdogAssertion.h' file not found
#import <BackBoardServices/BKSWatchdogAssertion.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: ***
[tools/lldb/tools/debugserver/source/CMakeFiles/lldbDebugserverCommon.dir/MacOSX/MachTask.mm.o]
Error 1</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>