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

Meeting Proposal: dylibs need directors #415

Closed
pnkfelix opened this issue Mar 11, 2021 · 1 comment
Closed

Meeting Proposal: dylibs need directors #415

pnkfelix opened this issue Mar 11, 2021 · 1 comment

Comments

@pnkfelix
Copy link
Member

pnkfelix commented Mar 11, 2021

  • Title: dylibs need directors
  • Type: (it's complicated)

Summary

dylibs need directors: We need dedicated dylib working/project group. (weak title joke, I know... I'm in a rush here...)

Dynamic libraries are a known weak spot in the Rust ecosystem.

E.g. consider this five year old bug:

"Cannot link to --crate-type dylib #34909

We haven't, to my knowledge, tried to make an fully established semantics for dylibs. (Though if you look at rust-lang/rust#34909 (comment) you at least get a nice chart of different combinations and what happened on them, at least as of 2017...)

Instead, we've discouraged their use, focusing on the static linking case, and pointing people at cdylib when they absolutely need dynamic loading (since in that case, we can actually provide some sort of stable ABI guarantee).

But this means that every time dylibs come up, its a bit of a black art figuring out what the users intended. (See for example rust-lang/rust#82151 )

Its also a black art to identify the developers who would be best able to dissect the problem in the first place.

Before this meeting would start, I would want a pre-written document for the meeting, listing the known problems with dylibs today. Then we could spend the meeting discussing the problems, to tease out which things we think we can resolve, and then find volunteers to work on it.

About this issue

This issue corresponds to a meeting proposal for the compiler team
steering meeting. It corresponds to a possible topic of
discussion. You can read more about the steering meeting procedure
here
.

Comment policy

These issues are meant to be used as an "announcements channel"
regarding the proposal, and not as a place to discuss the technical
details. Feel free to subscribe to updates. We'll post comments when
reviewing the proposal in meetings or making a scheduling decision.
In the meantime, if you have questions or ideas, ping the proposers
on Zulip (or elsewhere).

@pnkfelix pnkfelix changed the title Meeting Proposal: We need dedicated dylib working/project group Meeting Proposal: dylibs need directors Mar 11, 2021
@pnkfelix
Copy link
Member Author

pnkfelix commented Apr 9, 2021

I'm going to close this: This topic needs a properly written doc describing the problems, but I don't know when I would have time to generate it.

@pnkfelix pnkfelix closed this as completed Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant