Skip to content
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

[SR-1316] swift-package-manager link doesn't seem to respect the gold linker flag on Ubuntu #5299

Closed
trfiala mannequin opened this issue Apr 26, 2016 · 2 comments
Closed
Labels

Comments

@trfiala
Copy link
Mannequin

trfiala mannequin commented Apr 26, 2016

Previous ID SR-1316
Radar None
Original Reporter @trfiala
Type Bug
Status Closed
Resolution Duplicate
Environment

Ubuntu 16.04 x86_64.

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 5752e2e033a625fbdebf492421b3bca1

duplicates:

  • SR-941 SwiftPM bootstrap and gold linker

relates to:

  • SR-1023 Build Error: Relocation R_X86_64_PC32

Issue Description:

In trying to find a working solution for SR-1023, I'm trying to build the full packaging CI setup on Unbuntu 16.04. That fails with a relocation issue on the standard linker, so I'm trying to use the gold linker. In building <>, I hit the following:

Link /home/tfiala/src/lldb-github/build/buildbot_linux/swiftpm-linux-x86_64/.bootstrap/bin/swift-build
/usr/bin/ld: /home/tfiala/src/lldb-github/build/buildbot_linux/swiftpm-linux-x86_64/.bootstrap/lib/PackageDescription.a(Package.o): relocation R_X86_64_PC32 against protected symbol `_TMLCC18PackageDescription7Package10Dependency' can not be used when making a shared object
/usr/bin/ld: final link failed: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The swift-build step is not using the gold linker.

This may boil down to swiftc being used to link, and it itself is choosing to call clang to link, and isn't setup to specify usage of the gold linker. But this should be investigated, and regardless of the cause, we want to get gold linking working if at all possible.

@swift-ci
Copy link
Contributor

Comment by Ryan Lovelett (JIRA)

I think this is a duplicate of SR-941.

@trfiala
Copy link
Mannequin Author

trfiala mannequin commented Apr 26, 2016

Yes, this is a dupe of SR-941.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant