Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upLinking with gold does not search /usr/local/lib #30784
Comments
brson
added
I-nominated
regression-from-stable-to-nightly
T-tools
labels
Jan 8, 2016
This comment has been minimized.
This comment has been minimized.
|
Like I said on the on the PR, this seems to be a distro/user bug, since it would affect everything using gold, not just rustc. |
This comment has been minimized.
This comment has been minimized.
|
How it can be a distro bug I'm not sure, if that's just the way that gold works. Does any distro actually install gold as the default linker ( By the way, since there usually is this mechanism, why not let that extend to Rust as well, and let the user choose by whatever is |
This comment has been minimized.
This comment has been minimized.
|
The title says |
brson
changed the title
Linking with gold does not search /etc/local/lib
Linking with gold does not search /usr/local/lib
Jan 11, 2016
This comment has been minimized.
This comment has been minimized.
|
@rprichard updated the op. Thanks. |
bors
added a commit
that referenced
this issue
Jan 14, 2016
This comment has been minimized.
This comment has been minimized.
|
Removing nomination/regression tags but leaving open as to why we reverted gold |
brson commentedJan 8, 2016
If it thinks it can rustc will link with the gold linker. Unfortunately ld.bfd and ld.gold do not search the same paths for libraries. The bfd linker looks in the runtime linker path, while gold does not. This creates a very confusing difference in behavior.
Original report.