Skip to content

cmd/compile: non-reproducible builds for some cgo code #20272

Closed
@josharian

Description

@josharian

Reproduce:

Grab the three cgo-generated files from https://gist.github.com/josharian/88c23ec7c4c7c45ac87a539ee18ede5d. These were generated from a slightly minimized, old copy of package github.com/mattn/go-gtk/glib. Run go tool compile -o a.o *.go on them multiple times, and check that the output file is identical.

Want:

Exactly one canonical output for these inputs.

Have:

Two distinct outputs, one object file that is 240250 bytes and one that is 240092. The difference appears to be in the namedata (type information) symbols that are emitted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions