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

Build problems with julia 0.5.0 - dev #193

Closed
ethomag opened this issue Mar 23, 2016 · 8 comments
Closed

Build problems with julia 0.5.0 - dev #193

ethomag opened this issue Mar 23, 2016 · 8 comments

Comments

@ethomag
Copy link

ethomag commented Mar 23, 2016

I'm trying to build Gadfly, using the julia 0.5.0 dev (master). But I get som problems with Compose.jl, I think:

master $ ./julia 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+3235 (2016-03-23 05:32 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit c29bff1* (0 days old master)
|__/                   |  x86_64-linux-gnu

julia> using Compose
INFO: Precompiling module Compose...
ERROR: LoadError: LoadError: Not an `in` expression
 in include(::ASCIIString) at ./boot.jl:240
 in include_from_node1(::ASCIIString) at ./loading.jl:417
 in include(::ASCIIString) at ./boot.jl:240
 in include_from_node1(::ASCIIString) at ./loading.jl:417
 [inlined code] from ./boot.jl:243
 in anonymous at ./<no file>:4294967295
 in eval(::Module, ::Any) at ./boot.jl:243
 [inlined code] from ./sysimg.jl:11
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:318
while loading /home/ethomag/.julia/v0.5/Compose/src/form.jl, in expression starting on line 188
while loading /home/ethomag/.julia/v0.5/Compose/src/Compose.jl, in expression starting on line 80
ERROR: Failed to precompile Compose to /home/ethomag/.julia/lib/v0.5/Compose.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

Looking at line 188 in my Compse/src/form.jl, I see:

function rectangle(x0s::AbstractArray, y0s::AbstractArray,
                   widths::AbstractArray, heights::AbstractArray, tag=empty_tag)
    return @makeform (x0 in x0s, y0 in y0s, width in widths, height in heights),
        RectanglePrimitive{Vec2, Measure, Measure}((x_measure(x0), y_measure(y0)),
                                                    x_measure(width), y_measure(height)) tag
end

In which I guess the ERROR: LoadError: LoadError: Not an 'in' expression origins from.

@lobingera
Copy link

btw; i can now confim on my own box:

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+3209 (2016-03-19 00:44 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 05bdbb0* (5 days old master)
|__/                   |  x86_64-linux-gnu

julia> Pkg.build("Compose.jl")

signal (15): Terminated
while loading no file, in expression starting on line 0
unknown function (ip: 0x7fe212931883)
unknown function (ip: 0x7fe212936557)
unknown function (ip: 0x7fe21293d515)
_ZN4llvm15callDefaultCtorINS_10LiveStacksEEEPNS_4PassEv at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
_ZN4llvm17PMTopLevelManager12schedulePassEPNS_4PassE at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
_ZN4llvm16TargetPassConfig7addPassEPNS_4PassEbb at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
_ZN4llvm16TargetPassConfig20addOptimizedRegAllocEPNS_12FunctionPassE at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
_ZN4llvm16TargetPassConfig16addMachinePassesEv at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
unknown function (ip: 0x7fe210091e03)
_ZN4llvm17LLVMTargetMachine17addPassesToEmitMCERNS_6legacy15PassManagerBaseERPNS_9MCContextERNS_17raw_pwrite_streamEb at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
[inline] at /home/lobi/julia05/src/jitlayers.cpp:287
JuliaOJIT at /home/lobi/julia05/src/codegen.cpp:6083
_julia_init at /home/lobi/julia05/src/init.c:620
julia_init at /home/lobi/julia05/src/task.c:281
unknown function (ip: 0x4016d3)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: (nil))
Allocations: 384367 (Pool: 383224; Big: 1143); GC: 0
ERROR: Base.Pkg.PkgError("Compose.jl is not an installed package")
 [inlined code] from ./pkg.jl:13
 in build!(::Array{ASCIIString,1}, ::Pipe, ::Set{Any}) at ./pkg/entry.jl:506
 in build!(::Array{ASCIIString,1}, ::Dict{Any,Any}, ::Set{Any}) at ./pkg/entry.jl:551
 [inlined code] from ./dict.jl:502
 in build(::Array{ASCIIString,1}) at ./pkg/entry.jl:573
 [inlined code] from ./boot.jl:307
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{ASCIIString,1}}})() at ./pkg/dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{ASCIIString,1}}}, ::ASCIIString) at ./file.jl:48
 in #cd#1(::Array{Any,1}, ::Any, ::Any, ::Array{ASCIIString,1}, ::Vararg{Array{ASCIIString,1}}) at ./pkg/dir.jl:31
 [inlined code] from ./boot.jl:307
 in build(::ASCIIString, ::Vararg{ASCIIString}) at ./pkg.jl:210
 in eval(::Module, ::Any) at ./boot.jl:243

julia> 

@ethomag
Copy link
Author

ethomag commented Mar 24, 2016

Hi Andreas,

The line

ERROR: Base.Pkg.PkgError("Compose.jl is not an installed package")

Suggests something else.

Did you mean:

julia> Pkg.build("Compose")

without the .jl suffix ?

/tm

From: Andreas Lobinger [mailto:notifications@github.com]
Sent: den 24 mars 2016 07:08
To: dcjones/Compose.jl
Cc: Thomas Magnusson
Subject: Re: [Compose.jl] Build problems with julia 0.5.0 - dev (#193)

btw; i can now confim on my own box:

_ _ ()_ | A fresh approach to technical computing
() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type "?help" for help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 0.5.0-dev+3209 (2016-03-19 00:44 UTC)
/ |_'|||__'| | Commit 05bdbb0* (5 days old master)
|__/ | x86_64-linux-gnu

julia> Pkg.build("Compose.jl")

signal (15): Terminated
while loading no file, in expression starting on line 0
unknown function (ip: 0x7fe212931883)
unknown function (ip: 0x7fe212936557)
unknown function (ip: 0x7fe21293d515)
_ZN4llvm15callDefaultCtorINS_10LiveStacksEEEPNS_4PassEv at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
_ZN4llvm17PMTopLevelManager12schedulePassEPNS_4PassE at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
_ZN4llvm16TargetPassConfig7addPassEPNS_4PassEbb at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
_ZN4llvm16TargetPassConfig20addOptimizedRegAllocEPNS_12FunctionPassE at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
_ZN4llvm16TargetPassConfig16addMachinePassesEv at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
unknown function (ip: 0x7fe210091e03)
_ZN4llvm17LLVMTargetMachine17addPassesToEmitMCERNS_6legacy15PassManagerBaseERPNS_9MCContextERNS_17raw_pwrite_streamEb at /home/lobi/julia05/usr/bin/../lib/libLLVM-3.7.1.so (unknown line)
[inline] at /home/lobi/julia05/src/jitlayers.cpp:287
JuliaOJIT at /home/lobi/julia05/src/codegen.cpp:6083
_julia_init at /home/lobi/julia05/src/init.c:620
julia_init at /home/lobi/julia05/src/task.c:281
unknown function (ip: 0x4016d3)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: (nil))
Allocations: 384367 (Pool: 383224; Big: 1143); GC: 0
ERROR: Base.Pkg.PkgError("Compose.jl is not an installed package")
[inlined code] from ./pkg.jl:13
in build!(::Array{ASCIIString,1}, ::Pipe, ::Set{Any}) at ./pkg/entry.jl:506
in build!(::Array{ASCIIString,1}, ::Dict{Any,Any}, ::Set{Any}) at ./pkg/entry.jl:551
[inlined code] from ./dict.jl:502
in build(::Array{ASCIIString,1}) at ./pkg/entry.jl:573
[inlined code] from ./boot.jl:307
in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{ASCIIString,1}}})() at ./pkg/dir.jl:31
in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#build,Tuple{Array{ASCIIString,1}}}, ::ASCIIString) at ./file.jl:48
in #cd#1(::Array{Any,1}, ::Any, ::Any, ::Array{ASCIIString,1}, ::Vararg{Array{ASCIIString,1}}) at ./pkg/dir.jl:31
[inlined code] from ./boot.jl:307
in build(::ASCIIString, ::Vararg{ASCIIString}) at ./pkg.jl:210
in eval(::Module, ::Any) at ./boot.jl:243

julia>


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/193#issuecomment-200691275 https://github.com/notifications/beacon/APYydA0KoUTuHL237Aq-CtJc0wQPutzAks5pwiovgaJpZM4H3NM1.gif

@lobingera
Copy link

@ethomag I think you are right, this might be anthor 0.5 problem. However for your/our problem i think the https://github.com/JuliaLang/julia/blob/master/HISTORY.md "Language Changes" Tuple change applies.

@lobingera
Copy link

Looks like more complicated, the makeform macro tries some local optimization...

@ethomag
Copy link
Author

ethomag commented Mar 25, 2016

No, I don't think this is necessarily complicated. If the original author just has a look at it, it is probably obvious to hum/her. It looks like the "in" expession ast has changed or an extra layer of tuples is added or something in that area. I am not fluent enough in julia at this level.

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Andreas Lobinger [notifications@github.com]
Received: fredag, 25 mar 2016, 9:01
To: dcjones/Compose.jl [Compose.jl@noreply.github.com]
CC: Thomas Magnusson [thomas.magnusson@ericsson.com]
Subject: Re: [Compose.jl] Build problems with julia 0.5.0 - dev (#193)

Looks like more complicated, the makeform macro tries some local optimization...


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com//issues/193#issuecomment-201191471

@lobingera
Copy link

@timholy , @yuyichao, any idea here?

@yuyichao
Copy link
Contributor

SImply because JuliaLang/julia#15524 ?

@ethomag
Copy link
Author

ethomag commented Mar 27, 2016

@ScottPJones fix makes Compose build again. Thanks!

@aviks aviks closed this as completed in 826f62b Mar 28, 2016
aviks added a commit that referenced this issue Mar 28, 2016
Fix #193, issue with makeform macro in v0.5
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

No branches or pull requests

3 participants