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

Cannot compile Gadfly on Linux #1335

Closed
erezsh opened this issue Oct 26, 2019 · 1 comment
Closed

Cannot compile Gadfly on Linux #1335

erezsh opened this issue Oct 26, 2019 · 1 comment

Comments

@erezsh
Copy link

erezsh commented Oct 26, 2019

I tried compiling the Gadfly package on fresh installs of both Fedora and Ubuntu, and both failed with the same error.

That happens with either ]add Gadfly or ]add Gadfly#master (doesn't seem to matter)

julia> import Gadfly
[ Info: Precompiling Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004]
┌ Warning: `lgamma(x::Real)` is deprecated, use `(logabsgamma(x))[1]` instead.
│   caller = lstirling_asym(::BigFloat) at misc.jl:56
└ @ StatsFuns ~/.julia/packages/StatsFuns/2QE7p/src/misc.jl:56
ERROR: could not load library "/root/julia-1.2.0/lib/julia/sys.so"
/root/julia-1.2.0/lib/julia/sys.so: failed to map segment from shared object
ERROR: LoadError: IOError: write: broken pipe (EPIPE)

It failed to build both on Julia 1.1 and Julia 1.2

(In this instance I ran Julia as root, but it also happens when installed and used by a regular user)

Also, the file exists, of course:

root@ubuntu-s-1vcpu-1gb-nyc1-01:~# ls -lah /root/julia-1.2.0/lib/julia/sys.so
-rwxr-xr-x 1 1337 1337 161M Aug 20 01:50 /root/julia-1.2.0/lib/julia/sys.so

Ubuntu version: Linux ubuntu-s-1vcpu-1gb-nyc1-01 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Fedora version: Linux preql 5.0.16-300.fc30.x86_64 #1 SMP Tue May 14 19:33:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@erezsh
Copy link
Author

erezsh commented Oct 26, 2019

Closing because it's not specific to Gadfly, turns out this error happens when Julia runs out of memory, and Gadfly just happens to require >1GB to compile

@erezsh erezsh closed this as completed Oct 26, 2019
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

1 participant