You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because of this swift issue swiftlang/swift#60406, it only appears in opt because bazel passes --gc-sections only for opt builds. You should be able to work around it by passing --linkopt=-z --linkopt nostart-stop-gc on Linux.
In Swift 5.7 (or maybe 5.7.1 who knows), it will be fixed by automatically adding this for you when using lld. You can also switch to a different linker to avoid this if that's easier.
Linker errors
Steps to reproduce (Requires Docker):
Also full logs are available on SwiftLint's CI: https://github.com/realm/SwiftLint/runs/7976793407?check_suite_focus=true
If you change
-c opt
for-c dbg
on this line there are no linker errors: https://github.com/realm/SwiftLint/blob/145175f16c6b53c2b9e7a7a9497d92d1bdcbd26a/Dockerfile#L26I see the same error if I build for amd64 or arm64. I don't have the same error if I build on macOS.
I'm using rules_swift 469db13
The text was updated successfully, but these errors were encountered: