Skip to content

.beam files differ between builds #8689

@bmwiedemann

Description

@bmwiedemann

Environment

  • Elixir & Erlang/OTP versions (elixir --version):
    elixir-1.7.4 erlang-21.1.4
  • Operating system: openSUSE Tumbleweed 20190124

Current behavior

Somewhat similar to #4814 building the openSUSE elixir package produces various .beam files that differ for every build, e.g. /usr/lib/elixir/lib/mix/ebin/Elixir.Mix.Tasks.Deps.Unlock.beam

Some of the diff is even there when doing builds as similar as possible (e.g. disabling ASLR, 1-core VM without parallelism)

The erlang package itself does not have this kind of variations in its .beam files (but others from timestamps)

Note: the elixir-ex_doc package (in the best case) only has 1 beam file with 1 bit diff so might be easier to debug.

Expected behavior

Builds should produce deterministic results.
See https://reproducible-builds.org/ for why this matters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions