Skip to content

reproducible builds #585

@attila-lendvai

Description

@attila-lendvai

compilation doesn't seem to produce the same output when invoked multiple times on the same source file.

even the size of the result is changing:

(parameterize ([optimize-level 3] [fasl-compressed #f]) (compile-program "idris2.ss"))
27224054 Oct  8 12:39 idris2.so
27224026 Oct  8 12:36 idris2.so.1
27224054 Oct  8 12:37 idris2.so.2
27224054 Oct  8 12:38 idris2.so.3

for matching sizes the difference is not enormous:

$ cmp --verbose idris2.so idris2.so.2 | wc -l
700

for someone who knows the codebase it's probably something simple. typically unsorted iteration of a hashtable, or some other unordered collection.

or if it's not that simple, then this effort can even reveal bugs where something from the environment inadvertently leaks into the output.

potential candidates

  • multiple hashtable-entries calls in fasl.ss (unsorted iteration).

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