# Precompiling error for unknown reason

**URL:** <https://discourse.julialang.org/t/precompiling-error-for-unknown-reason/107073>\
**Category:** New to Julia\
**Created:** [December 3, 2023, 9:48am UTC](https://discourse.julialang.org/t/precompiling-error-for-unknown-reason/107073 "2023-12-03T09:48:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Wooheon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wooheon/32/206569_2.png) [@Wooheon](https://discourse.julialang.org/u/Wooheon)\
**Post date:** [December 3, 2023, 9:48am UTC](https://discourse.julialang.org/t/precompiling-error-for-unknown-reason/107073/1 "2023-12-03T09:48:59Z")

</div>

I tried to precompile CSV into julia v1.84 but failed showing error message about call.  
I thought maybe the version update is the problem so I downloaded v1.94 and again have the problem.  
From import Pkg; Pkg.precompile(), I got the following report.  
Can anyone help me with resolving the problem?

Precompiling project…  
✗ BinaryProvider  
✗ Adapt → AdaptStaticArraysExt  
✗ CSV  
✗ FFMPEG  
✗ Plots  
✗ StatsPlots  
1 dependency successfully precompiled in 12 seconds. 213 already precompiled.  
ERROR: The following 3 direct dependencies failed to precompile:

CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]

Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to “C:\Users\LG\.julia\compiled\v1.9\CSV\jl\_D1D.tmp”.  
ERROR: LoadError: ccall method definition: argument 1 type doesn’t correspond to a C type  
Stacktrace:  
[1] top-level scope  
@ C:\Users\LG.julia\packages\CSV\4GOjG\src\utils.jl:379  
[2] include(mod::Module, \_path::String)  
@ Base .\Base.jl:457  
[3] include(x::String)  
@ CSV C:\Users\LG.julia\packages\CSV\4GOjG\src\CSV.jl:1  
[4] top-level scope  
@ C:\Users\LG.julia\packages\CSV\4GOjG\src\CSV.jl:14  
[5] include  
@ .\Base.jl:457 [inlined]  
[6] 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, UInt128}}, source::Nothing)  
@ Base .\loading.jl:2049  
[7] top-level scope  
@ stdin:3  
in expression starting at C:\Users\LG.julia\packages\CSV\4GOjG\src\utils.jl:379  
in expression starting at C:\Users\LG.julia\packages\CSV\4GOjG\src\CSV.jl:1  
in expression starting at stdin:3

StatsPlots [f3b207a7-027a-5e70-b257-86293d7955fd]

Failed to precompile StatsPlots [f3b207a7-027a-5e70-b257-86293d7955fd] to “C:\Users\LG\.julia\compiled\v1.9\StatsPlots\jl\_24F4.tmp”.  
ERROR: LoadError: FFMPEG not installed properly, run `] build FFMPEG`, restart Julia and try again  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] top-level scope  
@ C:\Users\LG.julia\packages\FFMPEG\guN1x\src\FFMPEG.jl:23  
[3] include  
@ .\Base.jl:457 [inlined]  
[4] 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, UInt128}}, source::String)  
@ Base .\loading.jl:2049  
[5] top-level scope  
@ stdin:3  
in expression starting at C:\Users\LG.julia\packages\FFMPEG\guN1x\src\FFMPEG.jl:1  
in expression starting at stdin:3  
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to “C:\Users\LG\.julia\compiled\v1.9\FFMPEG\jl\_2823.tmp”.  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, keep\_loaded\_modules::Bool)  
@ Base .\loading.jl:2294  
[3] compilecache  
@ .\loading.jl:2167 [inlined]  
[4] \_require(pkg::Base.PkgId, env::String)  
@ Base .\loading.jl:1805  
[5] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1660  
[6] macro expansion  
@ .\loading.jl:1648 [inlined]  
[7] macro expansion  
@ .\lock.jl:267 [inlined]  
[8] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1611  
[9] include  
@ .\Base.jl:457 [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, UInt128}}, source::String)  
@ Base .\loading.jl:2049  
[11] top-level scope  
@ stdin:3  
in expression starting at C:\Users\LG.julia\packages\Plots\qZHsp\src\Plots.jl:1  
in expression starting at stdin:3  
ERROR: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to “C:\Users\LG\.julia\compiled\v1.9\Plots\jl\_23BE.tmp”.  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, keep\_loaded\_modules::Bool)  
@ Base .\loading.jl:2294  
[3] compilecache  
@ .\loading.jl:2167 [inlined]  
[4] \_require(pkg::Base.PkgId, env::String)  
@ Base .\loading.jl:1805  
[5] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1660  
[6] macro expansion  
@ .\loading.jl:1648 [inlined]  
[7] macro expansion  
@ .\lock.jl:267 [inlined]  
[8] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1611  
[9] include  
@ .\Base.jl:457 [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, UInt128}}, source::Nothing)  
@ Base .\loading.jl:2049  
[11] top-level scope  
@ stdin:3  
in expression starting at C:\Users\LG.julia\packages\StatsPlots\BRnMU\src\StatsPlots.jl:1  
in expression starting at stdin:3

Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to “C:\Users\LG\.julia\compiled\v1.9\Plots\jl\_185E.tmp”.  
ERROR: LoadError: FFMPEG not installed properly, run `] build FFMPEG`, restart Julia and try again  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] top-level scope  
@ C:\Users\LG.julia\packages\FFMPEG\guN1x\src\FFMPEG.jl:23  
[3] include  
@ .\Base.jl:457 [inlined]  
[4] 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, UInt128}}, source::String)  
@ Base .\loading.jl:2049  
[5] top-level scope  
@ stdin:3  
in expression starting at C:\Users\LG.julia\packages\FFMPEG\guN1x\src\FFMPEG.jl:1  
in expression starting at stdin:3  
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to “C:\Users\LG\.julia\compiled\v1.9\FFMPEG\jl\_18F0.tmp”.  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, keep\_loaded\_modules::Bool)  
@ Base .\loading.jl:2294  
[3] compilecache  
@ .\loading.jl:2167 [inlined]  
[4] \_require(pkg::Base.PkgId, env::String)  
@ Base .\loading.jl:1805  
[5] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base .\loading.jl:1660  
[6] macro expansion  
@ .\loading.jl:1648 [inlined]  
[7] macro expansion  
@ .\lock.jl:267 [inlined]  
[8] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1611  
[9] include  
@ .\Base.jl:457 [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, UInt128}}, source::Nothing)  
@ Base .\loading.jl:2049  
[11] top-level scope  
@ stdin:3  
in expression starting at C:\Users\LG.julia\packages\Plots\qZHsp\src\Plots.jl:1  
in expression starting at stdin:3

Stacktrace:  
[1] pkgerror(msg::String)  
@ Pkg.Types C:\Users\LG\AppData\Local\Programs\julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:69  
[2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; internal\_call::Bool, strict::Bool, warn\_loaded::Bool, already\_instantiated::Bool, timing::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})  
@ Pkg.API C:\Users\LG\AppData\Local\Programs\julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:1619  
[3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})  
@ Pkg.API C:\Users\LG\AppData\Local\Programs\julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:156  
[4] precompile(pkgs::Vector{Pkg.Types.PackageSpec})  
@ Pkg.API C:\Users\LG\AppData\Local\Programs\julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:145  
[5] precompile(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})  
@ Pkg.API C:\Users\LG\AppData\Local\Programs\julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:171  
[6] precompile()  
@ Pkg.API C:\Users\LG\AppData\Local\Programs\julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:162  
[7] top-level scope  
@ REPL[7]:1

---

_[View the full topic](https://discourse.julialang.org/t/precompiling-error-for-unknown-reason/107073)._
