Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

invalid pcre ccall error message #61

Closed
jrevels opened this issue Jul 24, 2018 · 2 comments · Fixed by #63
Closed

invalid pcre ccall error message #61

jrevels opened this issue Jul 24, 2018 · 2 comments · Fixed by #63

Comments

@jrevels
Copy link
Collaborator

jrevels commented Jul 24, 2018

Might be from the depwarn? Just overdubbing the depwarn doesn't trigger it though...

julia> using Cassette

julia> Cassette.@context Ctx

julia> Cassette.recurse(Ctx(), Vector{Any}, 1)
Exception handling log message: TypeError(:recurse, "ccall: first argument not a pointer or valid constant expression", Ptr, (:pcre2_match_8, "libpcre2-8"))
  module=Cassette  file=/Users/jarrettrevels/.julia/dev/Cassette/src/overdub.jl  line=0
  Second exception: TypeError(:recurse, "ccall: first argument not a pointer or valid constant expression", Ptr, (:pcre2_match_8, "libpcre2-8"))
1-element Array{Any,1}:
 #undef
@vchuravy
Copy link
Member

I think ccall has specific linearization requirements for the IR and it is checking if the arguments are constant, maybe we added a level of indirection here that messes that up?

@jrevels
Copy link
Collaborator Author

jrevels commented Jul 25, 2018

We did emit calls that messed that up before (#52), but I thought I had fixed it...

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

Successfully merging a pull request may close this issue.

2 participants