Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

unknown type name 'FILE' #4

Closed
gustaphe opened this issue Sep 25, 2022 · 2 comments
Closed

unknown type name 'FILE' #4

gustaphe opened this issue Sep 25, 2022 · 2 comments

Comments

@gustaphe
Copy link

I tried to load this package to try it out. But there is a loading error:

julia> using LibTeXPrintf
[ Info: Precompiling LibTeXPrintf [f5e74093-75df-45cb-9a4a-089f0fae2cb7]
using ┌ Error: /home/david/.julia/artifacts/41ce71e6316ffd02ded66fe69800f6b1256f4078/include/texprintf.h:25:16: error: unknown type name 'FILE'
└ @ CBinding ~/.julia/packages/CBinding/U3ykW/src/context.jl:377
LERROR: LoadError: Errors parsing C code
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] parse!(ctx::ateCBinding.Context{:c})
    @ CBinding ~/.julia/packages/CBinding/U3ykW/src/context.jl:388
  [3] clang_str(mod::Module, loc::LineNumberNode, lang::Symbol, str::String, opts::String)
    @ CBinding ~/.julia/packages/CBinding/U3ykW/src/context.jl:481
  [4] var"@c_str"(__source__::LineNumberNode, __module__::Module, exprs::Vararg{Any})
    @ CBinding ~/.julia/packages/CBinding/U3ykW/src/context_c.jl:5
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
  [6] include(x::String)
    @ LibTeXPrintf ~/.julia/dev/LibTeXPrintf/src/LibTeXPrintf.jl:1
  [7] top-level scope
    @ ~/.julia/dev/LibTeXPrintf/src/LibTeXPrintf.jl:7
  [8] include
    @ ./Base.jl:419 [inlined]
  [9] 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:1554
 [10] top-level scope
    @ stdin:1
in expression starting at /home/david/.julia/dev/LibTeXPrintf/src/wrapper.jl:21
in expression starting at /home/david/.julia/dev/LibTeXPrintf/src/wrapper.jl:1
in expression starting at /home/david/.julia/dev/LibTeXPrintf/src/LibTeXPrintf.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile LibTeXPrintf [f5e74093-75df-45cb-9a4a-089f0fae2cb7] to /home/david/.julia/compiled/v1.8/LibTeXPrintf/jl_l9jReN.
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:1705
 [3] compilecache
   @ ./loading.jl:1649 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1200
 [6] macro expansion
   @ ./loading.jl:1180 [inlined]
 [7] macro expansion
   @ ./lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144
@Suavesito-Olimpiada
Copy link
Collaborator

Fixed, can you try?

@gustaphe
Copy link
Author

Yep, that did it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants