# Mender 2.0.0 build failure cannot find --llzma

**URL:** <https://hub.mender.io/t/mender-2-0-0-build-failure-cannot-find-llzma/709>\
**Category:** General Discussions\
**Created:** [June 14, 2019, 1:59pm UTC](https://hub.mender.io/t/mender-2-0-0-build-failure-cannot-find-llzma/709 "2019-06-14T13:59:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hunter](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@hunter](https://hub.mender.io/u/hunter)\
**Post date:** [June 14, 2019, 1:59pm UTC](https://hub.mender.io/t/mender-2-0-0-build-failure-cannot-find-llzma/709/1 "2019-06-14T13:59:47Z")

</div>

Hi,

I am trying to build the latest 2.0.0 release. I was using 1.6.0.

But the build failed with:  
mender$ env CC=arm-linux-gnueabihf-gcc CGO\_ENABLED=1 GOOS=linux GOARCH=arm make build  
go build -ldflags “-X main.Version=2.1.0b1-build4”  
# [github.com/mendersoftware/mender/vendor/github.com/remyoudompheng/go-liblzma](http://github.com/mendersoftware/mender/vendor/github.com/remyoudompheng/go-liblzma)  
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/…/…/…/…/arm-linux-gnueabihf/bin/ld: cannot find -llzma  
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/…/…/…/…/arm-linux-gnueabihf/bin/ld: cannot find -llzma  
collect2: error: ld returned 1 exit status  
# [github.com/mendersoftware/mender/vendor/golang.org/x/net/http2](http://github.com/mendersoftware/mender/vendor/golang.org/x/net/http2)  
vendor/[golang.org/x/net/http2/server.go:220](http://golang.org/x/net/http2/server.go:220): s.RegisterOnShutdown undefined (type \*http.Server has no field or method RegisterOnShutdown)  
make: \*\*\* [mender] Error 2

I built 1.6.0 well with the system, any ideas?

Thanks,  
Hunter

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [June 14, 2019, 3:53pm UTC](https://hub.mender.io/t/mender-2-0-0-build-failure-cannot-find-llzma/709/2 "2019-06-14T15:53:16Z")

</div>

Hi @hunter and welcome to Mender Hub!

As the error message is saying, you need to cross-compile the liblzma dependency. In your case, using the same toolchain `arm-linux-genueabihf-gcc`. See [mender README](https://github.com/mendersoftware/mender#cross-compiling) for details.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 14, 2019, 3:54pm UTC](https://hub.mender.io/t/mender-2-0-0-build-failure-cannot-find-llzma/709/3 "2019-06-14T15:54:03Z")

</div>

You need to install the lzma header and such on your build system. On my Ubuntu build system it is called lzma-dev.

---

<div class="post-metadata">

**Author:** ![hunter](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@hunter](https://hub.mender.io/u/hunter)\
**Post date:** [June 15, 2019, 1:46pm UTC](https://hub.mender.io/t/mender-2-0-0-build-failure-cannot-find-llzma/709/4 "2019-06-15T13:46:58Z")

</div>

Thanks for help, I appreciate it, it does resolved my issue.
