-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Deterministic builds delete important module meta data #8602
Comments
Another solution: to provide some option for preserve compile meta data (at least |
Is it be suitable if I just make compiler to preserve Proposed output would be:
|
I'm very sorry for the long ignorance -- was a kind of busy with other things. I've made a small fix, as was suggested by @michalmuskala at #8607.
I can also take yet another one feature (as separate task) which was advised by @michalmuskala, in spite of it is not directly related to deterministic builds. :) |
That solution also breaks Elixir. Still no ideas, what is better. May be just to revert bootstrap's Almost no one needs deterministic out-of-box, but |
Just updated #8607. Branch name is old and not relevant. What was done there:
Those options are also workable from shell:
Is it more suitable? |
Thanks for raising this issue and taking the time to make a PR addressing it. Unfortunately we're in the middle of the vacation period and have limited time to look at things right now, especially changes that require consensus, so we'll revisit this once most of us are back. |
Describe the bug
When Erlang is configured with
--enable-deterministic-build
option, compiler produces BEAMs withoutoptions
andsource
subsections in module meta data. This data is required for some dependents, at least Elixir expects it.To Reproduce
Compile with
--enable-deterministic-build
option, then run REPL:Expected behavior
May be it would be suitable to normalize paths somehow, may be by changing '/some/path/to' to something hardcoded, for example: '/deterministic' when compiled with
--enable-deterministic-build
option.Affected versions
I have tested it on 27.0 and maint branch.
Additional context
None. Feel free to ask.
The text was updated successfully, but these errors were encountered: