Skip to content

Got error "linking with rust-lld failed: exit code: 1" when compiling contracts in examples #54

Open
@levackt

Description

@levackt

forum post

If anyone else comes onto this thread looking for the resolution, this post from above helped me to resolve my issue: Got error "linking with rust-lld failed: exit code: 1" when compiling contracts in examples

I had to set the name field in my Cargo.toml to be contract. Creating a custom contract name causes the build to fail.

taariq or ainsley I recommend that be documented in the sample Cargo.toml files so people don’t change it! 😉

I couldn't reproduce this using the examples and requested rustc version for now, may also request a github project.

Metadata

Metadata

Assignees

Labels

forumissue originated in the forumin progressSomeone is working on this issue.rust

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions