Skip to content

Linux binary for version 0.4.10 in solc-bin was built from a different commit than binaries for other platforms #10839

@cameel

Description

@cameel

solc-linux-amd64-v0.4.10+commit.f0d539ae identifies itself as:

./solc-linux-amd64-v0.4.10+commit.f0d539ae --version
solc, the solidity compiler commandline interface
Version: 0.4.10+commit.9e8cc01b.Linux.g++

Note that the commit hash is different than the one in the name.

This affects produced metadata and therefore also bytecode:

echo "contract C {}" | ./solc-linux-amd64-v0.4.10+commit.f0d539ae --metadata -
{"compiler":{"version":"0.4.10+commit.9e8cc01b"},"language":"Solidity","output":{"abi":[],"devdoc":{"methods":{}},"userdoc":{"methods":{}}},"settings":{"compilationTarget":{"<stdin>":"C"},"libraries":{},"optimizer":{"enabled":false,"runs":200},"remappings":[]},"sources":{"<stdin>":{"keccak256":"0xec5627577fc5b8010229a1036827ef0739fb21bb05b7bf259947acdded145877","urls":["bzzr://851401d5a4f7ae83d237aa6fda2e11331e2cf3c76d8a733bdd5d8ee6c93500f7"]}},"version":1}

All the other 0.4.10 binaries in solc-bin correctly report the commit hash as f0d539a (including the macOS one included in argotorg/solc-bin#76).

The problem affects the Linux binary included in v0.4.10 github release as well - the files are identical.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions