type JuliaUnknown has no field sym #395
Answered
by
Gnimuc
amontoison
asked this question in
Q&A
-
I'm working on a Julia interface for a collection of Fortran packages with C interfaces and I have the same following error with two packages ( ERROR: type JuliaUnknown has no field sym
Stacktrace:
[1] getproperty
@ ./Base.jl:38 [inlined]
[2] collect_dependent_system_nodes!(dag::ExprDAG, node::ExprNode{Clang.Generators.FunctionProto, CLFunctionDecl}, system_nodes::Dict{ExprNode, Int64})
@ Clang.Generators ~/.julia/packages/Clang/uWQ8S/src/generator/system_deps.jl:22
[3] (::CollectDependentSystemNode)(dag::ExprDAG, options::Dict{String, Any})
@ Clang.Generators ~/.julia/packages/Clang/uWQ8S/src/generator/passes.jl:69
[4] build!(ctx::Context, stage::Clang.Generators.BuildStage)
@ Clang.Generators ~/.julia/packages/Clang/uWQ8S/src/generator/context.jl:169
[5] wrapper(name::String, headers::Vector{String}, optimized::Bool; targets::Vector{String})
@ Main ~/Bureau/git/GALAHAD.jl/gen/wrapper.jl:24
[6] wrapper
@ ~/Bureau/git/GALAHAD.jl/gen/wrapper.jl:8 [inlined]
[7] main(name::String; optimized::Bool)
@ Main ~/Bureau/git/GALAHAD.jl/gen/wrapper.jl:74
[8] top-level scope
@ REPL[15]:1 I also share the generator script galahad.zip. |
Beta Was this translation helpful? Give feedback.
Answered by
Gnimuc
Nov 16, 2022
Replies: 1 comment 12 replies
-
The error is caused by this function proto: void lhs_ihs( int n_dimen,
int n_points,
int *seed,
int X[n_dimen][n_points],
const struct lhs_control_type *control,
struct lhs_inform_type *inform, void **data );
|
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
amontoison
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error is caused by this function proto:
int X[n_dimen][n_points]
is a variable array that we don't support at this moment. I can push a quick workaround to skip these kinda function protos.