Skip to content

Cannot compile flipper contract #391

@ayeteng

Description

@ayeteng
ubuntu@ubuntu1804:~/tmp/flipper$ cargo +nightly contract build
 [1/4] Collecting crate metadata
 [2/4] Building cargo project
   Compiling flipper v0.1.0 (/tmp/.cargo-contract_zD0iFQ)
error: failed to get bitcode from object file for LTO (Bitcode section not found in object file)

error: aborting due to previous error

error: could not compile `flipper`.

To learn more, run the command again with --verbose.
ERROR: xbuild failed with status exit code: 101

Version:
get flipper by cargo contract new flipper
cargo-contract v0.6.0
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.43.1 (8d69840ab 2020-05-04)
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.45.0-nightly (9912925c2 2020-05-10)

is this relevant here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions