-
Notifications
You must be signed in to change notification settings - Fork 81
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
Static compilation fails on Compose.jl #221
Comments
some more info at JuliaLang/julia#16970. Compose should not be trying to use Pkg at load time to deal with optional dependencies. Optional dependencies should be moved to separate packages to work properly with precompilation. |
@tkelman Is this what |
FileIO is more about dispatching to whichever of multiple possible packages are installed. It does import packages to do so, but into Main rather than itself. Possibly dodgy to eval things that way, not sure. |
Would the best course of action be to wait for |
No, the issue should be fixed for 0.4 and 0.5 supporting versions of the package if at all possible. |
as a workaround, i tried commenting out the conditional dependencies before building a new system image with here are the changes i made to
here's how i built the new sysimg. the build process returns no errors or warnings:
and here's the error i get upon starting julia with the customized sysimg:
any ideas? |
Not sure, but I always report seg faults to base
On Sun, Dec 3, 2017, 05:33 Ben Arthur ***@***.***> wrote:
as a workaround, i tried commenting out the conditional dependencies
before building a new system image with Compose in userimg.jl, but i get
a seg fault.
here are the changes i made to Compose. when using the default sysimg
that is bundled with julia 0.6, these work fine.
arthurb-lm4:Compose arthurb$ git diff
diff --git a/src/Compose.jl b/src/Compose.jl
index 8925b0b..eb0a1f5 100644
--- a/src/Compose.jl
+++ b/src/Compose.jl
@@ -153,25 +153,25 @@ macro missing_cairo_error(backend)
string(msg1, msg2)
end
-if isinstalled("Cairo")
+#if isinstalled("Cairo")
include("cairo_backends.jl")
include("immerse_backend.jl")
-else
- global PNG
- global PS
- global PDF
-
- PNG(args...) = ***@***.***_cairo_error "PNG")
- PS(args...) = ***@***.***_cairo_error "PS")
- PDF(args...) = ***@***.***_cairo_error "PDF")
-end
+#else
+# global PNG
+# global PS
+# global PDF
+#
+# PNG(args...) = ***@***.***_cairo_error "PNG")
+# PS(args...) = ***@***.***_cairo_error "PS")
+# PDF(args...) = ***@***.***_cairo_error "PDF")
+#end
include("svg.jl")
include("pgf_backend.jl")
# If available, pango and fontconfig are used to compute text extents and match
# fonts. Otherwise a simplistic pure-julia fallback is used.
-if isinstalled("Fontconfig")
+#if isinstalled("Fontconfig")
pango_cairo_ctx = C_NULL
include("pango.jl")
@@ -185,9 +185,9 @@ if isinstalled("Fontconfig")
Ptr{Void}, (Ptr{Void},), pango_cairo_fm)
pangolayout = PangoLayout()
end
-else
- include("fontfallback.jl")
-end
+#else
+# include("fontfallback.jl")
+#end
show(io::IO, m::MIME"text/html", ctx::Context) =
draw(SVGJS(io, default_graphic_width, default_graphic_height, false,
here's how i built the new sysimg:
$ cat userimg.jl
using Compose
julia> include(joinpath(JULIA_HOME, Base.DATAROOTDIR, "julia", "build_sysimg.jl"))
julia> build_sysimg("/Users/arthurb/sys.ji", "native", "/Users/arthurb/userimg.jl")
and here's the error i get:
$ julia -J /Users/arthurb/sys.ji.dylib
signal (11): Segmentation fault: 11
while loading no file, in expression starting on line 0
Segmentation fault: 11
any ideas?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#221 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlaL2VUeKQXt7SPN_q9qn1H7ohqEsDGks5s8qM2gaJpZM4J-3tN>
.
--
Tamas Nagy
Graduate Student, Bioinformatics
Weiner Lab
University of California, San Francisco
http://tamasnagy.com
|
the problem is the |
This is likely to be resolved since we removed our hacky Pkg loading and started using |
I’m trying to create a system image of Julia with Compose.jl embedded, I encountered following error while building Julia (using release-0.5 branch).
OS = Ubuntu 14.04
Compose version = 0.4.4
The text was updated successfully, but these errors were encountered: