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

**URL:** <https://forum.scrt.network/t/got-error-linking-with-rust-lld-failed-exit-code-1-when-compiling-contracts-in-examples/987>\
**Category:** Developer Help\
**Created:** [July 15, 2019, 10:23am UTC](https://forum.scrt.network/t/got-error-linking-with-rust-lld-failed-exit-code-1-when-compiling-contracts-in-examples/987 "2019-07-15T10:23:56Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![arookie](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/arookie/32/845_2.png) [@arookie](https://forum.scrt.network/u/arookie)\
**Post date:** [July 19, 2019, 2:26am UTC](https://forum.scrt.network/t/got-error-linking-with-rust-lld-failed-exit-code-1-when-compiling-contracts-in-examples/987/5 "2019-07-19T02:26:47Z")

</div>

hi @adi I already got [the issue](https://forum.scrt.network/t/error-installing-discovery-cli/917/25) when installing `discovery-cli`, so I used the docker to build instead.  
I will try to rebuild the brand-new env and let you know the result later.

Btw, for `discovery-cli`, I tried to downgrade node version to v10 and it’s working now.

---

_[View the full topic](https://forum.scrt.network/t/got-error-linking-with-rust-lld-failed-exit-code-1-when-compiling-contracts-in-examples/987)._
