various warnings building julia, assertion failure precompiling GLWindow.jl in recent v0.5 builds

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

various warnings building julia, assertion failure precompiling GLWindow.jl in recent v0.5 builds

Scott Jones
Recently, I've been getting a number of warnings building Julia:

/j/julia/src/jlapi.c:381:53: warning: incompatible pointer types passing 'uintptr_t *' (aka 'unsigned long *') to parameter of type 'unw_word_t *'

      (aka 'unsigned long long *') [-Wincompatible-pointer-types]

    return unw_get_reg((unw_cursor_t *)cursor, reg, retval);

                                                    ^~~~~~

/j/julia/usr/include/libunwind.h:93:72: note: passing argument to parameter here

extern int         unw_get_reg(unw_cursor_t*, unw_regnum_t, unw_word_t*)        __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_5_0);


Also this was caused by #15307: (it needs to be defined within #ifdef OBJPROFILE)

/j/julia/src/gc.c:276:20: warning: unused variable 'jl_singleton_tag' [-Wunused-const-variable]

static void *const jl_singleton_tag = (void*)0xdeadaa02;


For some time now, compiling the .jl code produces the following warning, twice: (first in pointer.jl, then in refpointer.jl):

WARNING: Method definition (::Type{#T<:Any})(Any) in module Inference at coreimg.jl:45 overwritten in module Inference at coreimg.jl:45.


Finally, I have not been able to load GLVisualize.jl with recent builds of master, because of an error I've narrowed down a bit to precompiling GLWindow.jl:

Assertion failed: (addr != 0), function getAddressForOrCompileFunction, file /j/julia/src/codegen.cpp, line 1063.

ERROR: Failed to precompile GLWindow to /Users/scott/.julia/lib/v0.5/GLWindow.ji

 in error(::ASCIIString) at ./error.jl:21

 in compilecache(::ASCIIString) at ./loading.jl:496

 in compilecache(::Symbol) at ./loading.jl:485

 in require(::Symbol) at ./loading.jl:355

 in eval(::Module, ::Any) at ./boot.jl:243


Hopefully somebody can make an issue or better yet PRs to fix these issues in v0.5.


Thanks,

Scott