Quantcast
Channel: LLDB - Swift Forums
Viewing all articles
Browse latest Browse all 40

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

$
0
0

I hope this is the correct category to post.
I have successfully (I think?) built the 5.10.1 based on these instructions here:
Building the Swift Project on Linux with lld instead of gold - #24 by itaiferber (thanks!!)

I've verified that I can compile swift programs with that binary, use swift repl so I think the swift 5.10.1 is all good. However, when I build the 6.0.1 using my version of 5.10.1, I can't build the lldb-server, nor the lib/liblldb.so.17.0.0 with missing symbols, like:

/usr/bin/ld: /home/build/swift-project/build/buildbot_linux/swift-linux-aarch64/lib/libswiftASTGen.a(SourceFile.swift.o): undefined reference to symbol '$ss10SetAlgebraP9formUnionyyxnFTj'
/usr/bin/ld: /home/build/swift-project/build/buildbot_linux/swift-linux-aarch64/lib/swift/linux/aarch64/libswiftCore.so: error adding symbols: DSO missing from command line
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

I'm using the utils/build-script like so (leaving out the install location for clarity):

swift/utils/build-script --preset=buildbot_linux,no_test

My biggest question is, would incorrectly built 5.10.1 cause the linker error for lldb-server? Just to narrow my search down.

If I leave out the lldb-server from the compilation, it produces a swift 6.0.1 but running swift repl reports version of 5.10.1.

Thanks in advance! Happy to provide more details if relevant, but wanted to validate my assumptions.

29 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 40

Trending Articles