Skip to content

Unrecognized '-rdynamic' flag when using swiftc linker driver #395

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
cmcgee1024 opened this issue Apr 10, 2025 · 1 comment · Fixed by #400
Closed

Unrecognized '-rdynamic' flag when using swiftc linker driver #395

cmcgee1024 opened this issue Apr 10, 2025 · 1 comment · Fixed by #400

Comments

@cmcgee1024
Copy link
Member

While using the swiftc linker driver on Linux with the following setting override from SwiftPM:

LINKER_DRIVER=swiftc

I get the following error that the '-rdynamic' is an unknown argument:

/usr/bin/swiftc -target aarch64-unknown-linux-gnu -sysroot / -L/tmp/Miscellaneous_TestMultipleFailureXCTest.YZGbOI/Miscellaneous_TestMultipleFailureXCTest/.build/aarch64-unknown-linux-gnu/Intermediates.noindex/EagerLinkingTBDs/Debug-linux -L/tmp/Miscellaneous_TestMultipleFailureXCTest.YZGbOI/Miscellaneous_TestMultipleFailureXCTest/.build/aarch64-unknown-linux-gnu/Products/Debug-linux -L/usr/lib @/tmp/Miscellaneous_TestMultipleFailureXCTest.YZGbOI/Miscellaneous_TestMultipleFailureXCTest/.build/aarch64-unknown-linux-gnu/Intermediates.noindex/TestMultipleFailureXCTest.build/Debug-linux/TestMultipleFailureXCTestTests.build/Objects-normal/aarch64/TestMultipleFailureXCTestTests.LinkFileList -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/../Frameworks -rdynamic -lswiftCore -lswiftSwiftOnoneSupport -L/usr/lib/swift/linux -L/usr/lib/swift @/tmp/Miscellaneous_TestMultipleFailureXCTest.YZGbOI/Miscellaneous_TestMultipleFailureXCTest/.build/aarch64-unknown-linux-gnu/Intermediates.noindex/TestMultipleFailureXCTest.build/Debug-linux/TestMultipleFailureXCTestTests.build/Objects-normal/aarch64/TestMultipleFailureXCTestTests.autolink -o /tmp/Miscellaneous_TestMultipleFailureXCTest.YZGbOI/Miscellaneous_TestMultipleFailureXCTest/.build/aarch64-unknown-linux-gnu/Products/Debug-linux/TestMultipleFailureXCTestTests.xctest
info: error: unknown argument: '-rdynamic'
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant