-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
LoadError with --inline=no #10238
Comments
Which Julia version? |
julia version 0.4.0-dev+3399
|
Might this be related to Void/Nullable/null/Undef/something else that changed recently in the nothingness department, @JeffBezanson? |
Sorry for the complexity of that macro in util.jl. If I have some time in the next few days, I'll try to reproduce and boil it down to a kernel. |
There are many closed issues about |
Just tried master (154076e): Not fixed :(
|
I boiled down the problem and devised a simple test: using Base.Test
obj = "some object"
ptr_void = pointer_from_objref(obj)
ptr_type = convert(Ptr{typeof(obj)}, ptr_void)
x = unsafe_pointer_to_objref(ptr_void)
@test typeof(x) == typeof(obj)
@test x == obj
x = unsafe_pointer_to_objref(ptr_type)
@test typeof(x) == typeof(obj)
@test x == obj
|
this seems likely to be fixed by #9986, when the codepath taken by that function is changed from an intrinsic to a ccall |
This works for me now, please respond if this is still an issue. |
When using GLFW.jl (
Pkg.add("GLFW")
) and callbacks, it only works with--inline=yes
. Example code:Which works fine except when
--inline=no
is set:I'm sorry I can't figure out where exactly it goes wrong as I don't quite understand what is happening inside
util.jl
. Maybe @jayschwa knows more.The text was updated successfully, but these errors were encountered: