# Trouble building lib/liblldb.so.17.0.0 on 6.0.1 using manually built 5.10.1

**URL:** <https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610>\
**Category:** LLDB\
**Created:** [October 25, 2024, 7:32am UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610 "2024-10-25T07:32:24Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![vaikas](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/vaikas/32/37871_2.png) [@vaikas](https://forums.swift.org/u/vaikas)\
**Post date:** [October 27, 2024, 5:10pm UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/21 "2024-10-27T17:10:11Z")

</div>

Ok, just a quick update while I'm waiting on building to finish (oh snaps, does it take a long time), I did see the following tests failing:

```swift
swift-package-tests :: test-cross-compile/test-compile-wasm.test
swift-package-tests :: test-foundation-package/test-foundation-networking-static-stdlib.test
swift-package-tests :: test-foundation-package/test-foundation-static-stdlib.test
swift-package-tests :: test-foundation-package/test-foundation-xml-static-stdlib.test
swift-package-tests :: test-snapshot-binaries/test-rpath-linux.py

```

---

<div class="post-metadata">

**Author:** ![vaikas](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/vaikas/32/37871_2.png) [@vaikas](https://forums.swift.org/u/vaikas)\
**Post date:** [October 28, 2024, 11:24pm UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/22 "2024-10-28T23:24:47Z")

</div>

Yup, fails here too:

```swift
Welcome to Swift version 6.0.1 (swift-6.0.1-RELEASE).
Type :help for assistance.
  1> 1+1
Optimizer/Verifier.swift:22: Fatal error: instruction %5 = struct $Int (%4 : $Builtin.Int64) // user: %7
should conform to ForwardingInstruction
LLDB diagnostics will be written to /tmp/diagnostics-7aab42
Please include the directory content when filing a bug report
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 lldb 0x0000aaaab0815c48

```

---

<div class="post-metadata">

**Author:** ![itaiferber](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/itaiferber/32/33840_2.png) [@itaiferber](https://forums.swift.org/u/itaiferber)\
**Post date:** [October 29, 2024, 1:02am UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/23 "2024-10-29T01:02:24Z")

</div>

Thanks for confirming! Until we figure out the root cause and get a fix in place, you can get a working repl/`lldb` capable of running Swift code by rebuilding Swift 6 with the Swift 6 compiler you just built... if you've got the time 😅

---

<div class="post-metadata">

**Author:** ![vaikas](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/vaikas/32/37871_2.png) [@vaikas](https://forums.swift.org/u/vaikas)\
**Post date:** [October 29, 2024, 7:29pm UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/24 "2024-10-29T19:29:31Z")

</div>

I'll give that a go!

---

<div class="post-metadata">

**Author:** ![vaikas](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/vaikas/32/37871_2.png) [@vaikas](https://forums.swift.org/u/vaikas)\
**Post date:** [October 30, 2024, 8:17pm UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/25 "2024-10-30T20:17:17Z")

</div>

Just documenting this in case anybody else hits this. This was because it was missing ldd and wasi, once I installed those, everything worked.

---

<div class="post-metadata">

**Author:** ![vaikas](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/vaikas/32/37871_2.png) [@vaikas](https://forums.swift.org/u/vaikas)\
**Post date:** [October 30, 2024, 10:12pm UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/26 "2024-10-30T22:12:14Z")

</div>

I noticed that 6.0.2 was released, so tried that with the 5.10.1 and it resulted with the similar issues. Then I built the 6.0.1 (well, I guess rebuilt), and 6.0.2 with the 6.0.1 and that worked.

---

<div class="post-metadata">

**Author:** ![itaiferber](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/itaiferber/32/33840_2.png) [@itaiferber](https://forums.swift.org/u/itaiferber)\
**Post date:** [October 30, 2024, 10:58pm UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/27 "2024-10-30T22:58:22Z")

</div>

Thanks for confirming! That's what I was seeing too. Glad you have a working repl for now, at least!

---

<div class="post-metadata">

**Author:** ![vaikas](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/vaikas/32/37871_2.png) [@vaikas](https://forums.swift.org/u/vaikas)\
**Post date:** [October 31, 2024, 10:15am UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/28 "2024-10-31T10:15:21Z")

</div>

Thank you so very much for your help, very much appreciated!!!

---

<div class="post-metadata">

**Author:** ![itaiferber](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/itaiferber/32/33840_2.png) [@itaiferber](https://forums.swift.org/u/itaiferber)\
**Post date:** [October 31, 2024, 10:38am UTC](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610/29 "2024-10-31T10:38:48Z")

</div>

Absolutely! Happy I was able to help 😄

[Previous page](https://forums.swift.org/t/trouble-building-lib-liblldb-so-17-0-0-on-6-0-1-using-manually-built-5-10-1/75610.md?page=1)
