forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm-ld: error: swiftrt.o: undefined symbol: swift_addNewDSOImage #5583
Comments
I'm going to send a patch to swift-cmark to support wasm32-unknown-wasip1-threads, but I encountered this issue. $ swift build --swift-sdk wasm32-unknown-wasip1-threads
Building for debugging...
error: link command failed with exit code 1 (use -v to see invocation)
wasm-ld: error: /home/kebo/.swiftpm/swift-sdks/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-06-07-a-wasm32-unknown-wasip1-threads.artifactbundle/DEVELOPMENT-SNAPSHOT-2024-06-07-a-wasm32-unknown-wasip1-threads/wasm32-unknown-wasip1-threads/swift.xctoolchain/usr/lib/swift_static/wasi/wasm32/swiftrt.o: undefined symbol: swift_addNewDSOImage
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[0/2] Linking api_test.wasm |
Ok, the problem here is that SwiftPM uses swiftc as a linker driver even though a building target is a ClangTarget.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When I tried to build a C executable target, I got the
undefined symbol: swift_addNewDSOImage
error.Steps to reproduce
Environment
The text was updated successfully, but these errors were encountered: