Open
Description
On Linux, I get the following output from swift build --build-system swiftbuild --build-tests
on a fresh library package from swift package init
.
0% [-----------------------------------------------------------------------------------]
warning: path("/home/dschaefer2/swift/datest/.build/aarch64-unknown-linux-gnu/Intermediates.noindex/datest.build/Debug-linux/datest_Module.build/Objects-normal/aarch64/datest_Module-master-emit-module.dia", fileLocation: nil) Could not read serialized diagnostics file: unable to find libclang []
warning: path("/home/dschaefer2/swift/datest/.build/aarch64-unknown-linux-gnu/Intermediates.noindex/datest.build/Debug-linux/datest_Module.build/Objects-normal/aarch64/datest.dia", fileLocation: nil) Co68% [========================================================---------------------------]
warning: unknown Argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument] []
warning: path("/home/dschaefer2/swift/datest/.build/aarch64-unknown-linux-gnu/Intermediates.noindex/datest.build/Debug-linux/datestTests.build/Objects-normal/aarch64/datestTests-master-emit-module.dia", fileLocation: nil) Could not read serialized diagnostics file: unable to find libclang []
warning: path("/home/dschaefer2/swift/datest/.build/aarch64-unknown-linux-gnu/Intermediates.noindex/datest.build/Debug-linux/datestTests.build/Objects-normal/aarch64/datestTests.dia", fileLocation: nil)90% [==========================================================================---------]
error: unknown Linker command failed with exit code 1 (use -v to see invocation) []
Activity
owenv commentedon Mar 12, 2025
@dschaefer2 which toolchain do you have installed? It may be one without swiftlang/swift#79108, which would explain the missing libclang
owenv commentedon Mar 12, 2025
There might still be a different failure underlying that one
dschaefer2 commentedon Mar 12, 2025
It's the feb 19'th nightly. I'll update to the latest. SwiftPM and swift-build are off of main.
dschaefer2 commentedon Mar 12, 2025
OK fixed my toolchain line up. Ran it this time with -v and got a better answer:
Looks like the warning about
-rdynamic
might be significant?neonichu commentedon Mar 12, 2025
What's the content of
datestTests.LinkFileList
?