# Error Precomping Lathe

**URL:** https://discourse.julialang.org/t/error-precomping-lathe/73559
**Category:** General Usage
**Tags:** package
**Created:** [December 23, 2021, 10:29pm UTC](https://discourse.julialang.org/t/error-precomping-lathe/73559 "2021-12-23T22:29:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![daler6](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daler6/32/13930_2.png) [@daler6](https://discourse.julialang.org/u/daler6)
#### Post date: [December 23, 2021, 10:29pm UTC](https://discourse.julialang.org/t/error-precomping-lathe/73559/1 "2021-12-23T22:29:14Z")

</div>

I recently installed Julia 1.7.1. When I try using Lathe, I get the following error:

[Info: Precompiling Lathe [38d8eb38-e7b1-11e9-0012-376b6c802672]  
ERROR: LoadError: InitError: could not load symbol “LLVMExtraInitializeAllTargets”:  
dlsym(RTLD\_DEFAULT, LLVMExtraInitializeAllTargets): symbol not found  
Stacktrace:  
[1] LLVMInitializeAllTargets  
@ ~/.julia/packages/LLVM/srSVa/lib/libLLVM\_extra.jl:10 [inlined]  
[2] InitializeAllTargets  
@ ~/.julia/packages/LLVM/srSVa/src/init.jl:58 [inlined]  
[3] **init** ()  
@ GPUCompiler ~/.julia/packages/GPUCompiler/XwWPj/src/GPUCompiler.jl:50  
[4] \_include\_from\_serialized(path::String, depmods::Vector{Any})  
@ Base ./loading.jl:768  
[5] \_require\_search\_from\_serialized(pkg::Base.PkgId, sourcepath::String)  
@ Base ./loading.jl:854  
[6] \_require(pkg::Base.PkgId)  
@ Base ./loading.jl:1097  
[7] require(uuidkey::Base.PkgId)  
@ Base ./loading.jl:1013  
[8] require(into::Module, mod::Symbol)  
@ Base ./loading.jl:997  
[9] include  
@ ./Base.jl:418 [inlined]  
[10] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)  
@ Base ./loading.jl:1318  
[11] top-level scope  
@ none:1  
[12] eval  
@ ./boot.jl:373 [inlined]  
[13] eval(x::Expr)  
@ Base.MainInclude ./client.jl:453  
[14] top-level scope  
@ none:1  
during initialization of module GPUCompiler  
in expression starting at /Users/dsr/.julia/packages/CUDA/M4jkK/src/CUDA.jl:1  
ERROR: LoadError: Failed to precompile CUDA [052768ef-5323-5732-b1bb-66c8b64840ba] to /Users/dsr/.julia/compiled/v1.7/CUDA/jl\_L6BYvp.  
Stacktrace:  
[1] error(s::String)  
@ Base ./error.jl:33  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, ignore\_loaded\_modules::Bool)  
@ Base ./loading.jl:1466  
[3] compilecache(pkg::Base.PkgId, path::String)  
@ Base ./loading.jl:1410  
[4] \_require(pkg::Base.PkgId)  
@ Base ./loading.jl:1120  
[5] require(uuidkey::Base.PkgId)  
@ Base ./loading.jl:1013  
[6] require(into::Module, mod::Symbol)  
@ Base ./loading.jl:997  
[7] include(mod::Module, \_path::String)  
@ Base ./Base.jl:418  
[8] include(x::String)  
@ Lathe.models ~/.julia/packages/Lathe/JIXAl/src/Models.jl:18  
[9] top-level scope  
@ ~/.julia/packages/Lathe/JIXAl/src/Models.jl:46  
[10] include(mod::Module, \_path::String)  
@ Base ./Base.jl:418  
[11] include(x::String)  
@ Lathe ~/.julia/packages/Lathe/JIXAl/src/Lathe.jl:44  
[12] top-level scope  
@ ~/.julia/packages/Lathe/JIXAl/src/Lathe.jl:53  
[13] include  
@ ./Base.jl:418 [inlined]  
[14] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)  
@ Base ./loading.jl:1318  
[15] top-level scope  
@ none:1  
[16] eval  
@ ./boot.jl:373 [inlined]  
[17] eval(x::Expr)  
@ Base.MainInclude ./client.jl:453  
[18] top-level scope  
@ none:1  
in expression starting at /Users/dsr/.julia/packages/Lathe/JIXAl/src/models/treeclass.jl:4  
in expression starting at /Users/dsr/.julia/packages/Lathe/JIXAl/src/Models.jl:6  
in expression starting at /Users/dsr/.julia/packages/Lathe/JIXAl/src/Lathe.jl:25  
ERROR: Failed to precompile Lathe [38d8eb38-e7b1-11e9-0012-376b6c802672] to /Users/dsr/.julia/compiled/v1.7/Lathe/jl\_hOuKcI.  
Stacktrace:  
[1] error(s::String)  
@ Base ./error.jl:33  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, ignore\_loaded\_modules::Bool)  
@ Base ./loading.jl:1466  
[3] compilecache(pkg::Base.PkgId, path::String)  
@ Base ./loading.jl:1410  
[4] \_require(pkg::Base.PkgId)  
@ Base ./loading.jl:1120  
[5] require(uuidkey::Base.PkgId)  
@ Base ./loading.jl:1013  
[6] require(into::Module, mod::Symbol)  
@ Base ./loading.jl:997

---

<div class="post-metadata">

### Author: ![anon56330260](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anon56330260](https://discourse.julialang.org/u/anon56330260)
#### Post date: [December 25, 2021, 4:21am UTC](https://discourse.julialang.org/t/error-precomping-lathe/73559/2 "2021-12-25T04:21:01Z")

</div>

Consider reinstalling every package (espeically those using `LLVM.jl`). It seems that `LLVMExtraInitializeAllTargets` symbol doesn’t exist. I suspect this is caused by mismatched version of LLVM binary.

---

<div class="post-metadata">

### Author: ![secarl](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@secarl](https://discourse.julialang.org/u/secarl)
#### Post date: [March 21, 2023, 8:54pm UTC](https://discourse.julialang.org/t/error-precomping-lathe/73559/3 "2023-03-21T20:54:28Z")

</div>

I have a similar issue. If I have DuckDB installed I can’t install Lathe. If I have Lathe installed, I can’t install DuckDB.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [March 22, 2023, 10:07am UTC](https://discourse.julialang.org/t/error-precomping-lathe/73559/4 "2023-03-22T10:07:21Z")

</div>

Lathe is effectively unmaintained as far as I can tell, has not been updated in 2 years and as a result of that restricts compat to some pretty outdated versions of its dependencies. I don’t think it can be sensibly used in a modern (i.e. using current versions of popular packages) analysis pipeline.

---

<div class="post-metadata">

### Author: ![secarl](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@secarl](https://discourse.julialang.org/u/secarl)
#### Post date: [March 22, 2023, 10:38am UTC](https://discourse.julialang.org/t/error-precomping-lathe/73559/5 "2023-03-22T10:38:47Z")

</div>

Right. Thank you.
