[swift-lldb-dev] Building and running swift-lldb from Xcode not working :(

Todd Fiala tfiala at apple.com
Wed Oct 5 15:58:10 CDT 2016


> On Oct 5, 2016, at 1:50 PM, Todd Fiala <tfiala at apple.com> wrote:
> 
> 
>> On Oct 5, 2016, at 1:41 PM, Rex Fenley via swift-lldb-dev <swift-lldb-dev at swift.org <mailto:swift-lldb-dev at swift.org>> wrote:
>> 
>> Hey swift lldb team!
>> 
>> I tried building the LLDB target from within Xcode. However, I get the following error during compilation:
>> subprocess.CalledProcessError: Command '['python', '/Users/Rex/Documents/projects/swift-lldb/llvm/tools/swift/utils/build-script', '--preset=LLDB_Swift_ReleaseAssert', 'swift_install_destdir=/Users/Rex/Documents/projects/swift-lldb/llvm-build/ReleaseAssert/swift-macosx-x86_64']' returned non-zero exit status 1
>> 
> 
> That message indicates that the LLVM/clang/Swift build portion of the Xcode-driven build failed.  There should be actual failure content from build-script somewhere above the ‘exit status 1’ portion.  You might need to go to your build log (the Report Navigator, right-most speech-bubble-like icon from the left pane of Xcode).  There should be a build log that details everything the Xcode build did, of which running the build-script is one stage.
> 
> Just to verify, what Xcode scheme and/or configuration are you building?  It should be the ‘desktop’ scheme, which will default to the DebugClang (or maybe Debug) configuration.

The other thing that might be the issue may be the state of the llvm, clang, swift and cmark repositories.  If your original check-out was via lldb, then it will automatically do a git clone of the relevant dependent projects for you.  However, it will not update them.  So, if you allowed the lldb build to sync those, then did a refresh of lldb much later, and didn’t manually update the llvm, clang, swift or cmark directory, you will have an out-of-sync composite source tree.

For the Xcode-driven build, the source layout looks like:
lldb/
lldb/llvm
lldb/llvm/tools/clang
lldb/llvm/tools/cmark
lldb/llvm/tools/swift

There will be symlinks in the lldb/ directory to the clang and swift directories.

You’ll want to make sure you update all of those at roughly the same time.  That might be a good place to start if this sounds like it might be your scenario.
>> And much further up I see
>> 
>> warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc <http://in.cc/> will not affect your build.
>> 
>> 
>> and
>> 
>> error: unknown setting: cmark-cmake-options
>> 
>> How may I fix this/these issues to build and run lldb from Xcode?
>> 
>> Thanks :)
>> 
>> 
>> -- 
>> Rex Fenley  |  IOS DEVELOPER
>> 
>> 
>> Remind.com <https://www.remind.com/> |  BLOG <http://blog.remind.com/>  |  FOLLOW US <https://twitter.com/remindhq>  |  LIKE US <https://www.facebook.com/remindhq>_______________________________________________
>> swift-lldb-dev mailing list
>> swift-lldb-dev at swift.org <mailto:swift-lldb-dev at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-lldb-dev
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-lldb-dev/attachments/20161005/5cb481a4/attachment.html>


More information about the swift-lldb-dev mailing list