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

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-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

Yup, fails here too:

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

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 :sweat_smile:

I'll give that a go!

1 Like

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

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.

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

1 Like

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

1 Like

Absolutely! Happy I was able to help :smile: