# UndefVarError when trying to build MbedTLS package

**URL:** <https://discourse.julialang.org/t/undefvarerror-when-trying-to-build-mbedtls-package/8363>\
**Category:** General Usage\
**Tags:** error\
**Created:** [January 14, 2018, 3:53pm UTC](https://discourse.julialang.org/t/undefvarerror-when-trying-to-build-mbedtls-package/8363 "2018-01-14T15:53:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martenskogh](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@martenskogh](https://discourse.julialang.org/u/martenskogh)\
**Post date:** [January 14, 2018, 3:53pm UTC](https://discourse.julialang.org/t/undefvarerror-when-trying-to-build-mbedtls-package/8363/1 "2018-01-14T15:53:41Z")

</div>

I have been trying to get Juno up and running on Linux but I can’t seem to be able to build the MbedTLS package. I added the package in Atom and then navigated to ‘Packages’-\>‘Julia’-\>‘Start Julia’. This runs for some time and then I get this out put:

> **Error Message Atom**
>
> INFO: Precompiling module Atom.  
> ERROR: LoadError:  
> could not open file /home/maarten/.julia/v0.6/MbedTLS/src/…/deps/deps.jl  
> Stacktrace:  
> [1] include\_from\_node1(::String) at ./loading.jl:576  
> [2] anonymous at ./:2  
> while loading /home/maarten/.julia/v0.6/MbedTLS/src/MbedTLS.jl, in expression starting on line 48  
> ERROR: LoadError:  
> Failed to precompile MbedTLS to /home/maarten/.julia/lib/v0.6/MbedTLS.ji.  
> Stacktrace:  
> [1] compilecache(::String) at ./loading.jl:710  
> [2] \_require(::Symbol) at ./loading.jl:463  
> [3] require(::Symbol) at ./loading.jl:405  
> [4] anonymous at ./:2  
> while loading /home/maarten/.julia/v0.6/HttpServer/src/HttpServer.jl, in expression starting on line 10  
> ERROR: LoadError: LoadError:  
> Failed to precompile HttpServer to /home/maarten/.julia/lib/v0.6/HttpServer.ji.  
> Stacktrace:  
> [1] compilecache(::String) at ./loading.jl:710  
> [2] \_require(::Symbol) at ./loading.jl:463  
> [3] require(::Symbol) at ./loading.jl:405  
> [4] include\_from\_node1(::String) at ./loading.jl:576  
> [5] anonymous at ./:2  
> while loading /home/maarten/.julia/v0.6/Mux/src/server.jl, in expression starting on line 1  
> while loading /home/maarten/.julia/v0.6/Mux/src/Mux.jl, in expression starting on line 24  
> ERROR: LoadError: LoadError:  
> Failed to precompile Mux to /home/maarten/.julia/lib/v0.6/Mux.ji.  
> Stacktrace:  
> [1] compilecache(::String) at ./loading.jl:710  
> [2] \_require(::Symbol) at ./loading.jl:463  
> [3] require(::Symbol) at ./loading.jl:405  
> [4] include\_from\_node1(::String) at ./loading.jl:576  
> [5] anonymous at ./:2  
> while loading /home/maarten/.julia/v0.6/Blink/src/content/content.jl, in expression starting on line 1  
> while loading /home/maarten/.julia/v0.6/Blink/src/Blink.jl, in expression starting on line 9  
> ERROR: LoadError:  
> Failed to precompile Blink to /home/maarten/.julia/lib/v0.6/Blink.ji.  
> Stacktrace:  
> [1] compilecache(::String) at ./loading.jl:710  
> [2] \_require(::Symbol) at ./loading.jl:463  
> [3] require(::Symbol) at ./loading.jl:405  
> [4] anonymous at ./:2  
> while loading /home/maarten/.julia/v0.6/Atom/src/Atom.jl, in expression starting on line 5  
> ERROR: LoadError:  
> Failed to precompile Atom to /home/maarten/.julia/lib/v0.6/Atom.ji.  
> while loading /home/maarten/.atom/packages/julia-client/script/boot.jl, in expression starting on line 34  
> Julia has stopped: 1

I thought it looked like something was fishy with the Mbed TLS package so I tried to build it from the Julia REPL with Pkg.build(“MbedTLS”) but then I got this error instead:

> **Error Message Julia Pkg.build**
>
> julia\> Pkg.build(“MbedTLS”)  
> INFO: Building MbedTLS  
> Manual build…  
> ===============================[ERROR: MbedTLS]===============================
> 
> LoadError: UndefVarError: pushfront! not defined  
> while loading /root/.julia/v0.6/MbedTLS/deps/build.jl, in expression starting on line 45
> 
> ================================================================================
> 
> ================================[BUILD ERRORS]================================
> 
> WARNING: MbedTLS had build errors.
> 
> - packages with build errors remain installed in /root/.julia/v0.6
> - build the package(s) and all dependencies with `Pkg.build("MbedTLS")`
> - build a single package by running its `deps/build.jl` script
> 
> ================================================================================

I am a bit stuck here and any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [January 14, 2018, 4:10pm UTC](https://discourse.julialang.org/t/undefvarerror-when-trying-to-build-mbedtls-package/8363/2 "2018-01-14T16:10:14Z")

</div>

I think [https://github.com/JuliaLang/BinDeps.jl/pull/349](https://github.com/JuliaLang/BinDeps.jl/pull/349) needs to be merged and tagged.

---

<div class="post-metadata">

**Author:** ![martenskogh](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@martenskogh](https://discourse.julialang.org/u/martenskogh)\
**Post date:** [January 15, 2018, 9:39am UTC](https://discourse.julialang.org/t/undefvarerror-when-trying-to-build-mbedtls-package/8363/3 "2018-01-15T09:39:01Z")

</div>

Thanks! It all works now.
