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

Unable to compile 21.1 with wx on Debian stretch #91

Closed
lpil opened this issue Oct 4, 2018 · 6 comments
Closed

Unable to compile 21.1 with wx on Debian stretch #91

lpil opened this issue Oct 4, 2018 · 6 comments

Comments

@lpil
Copy link

lpil commented Oct 4, 2018

I've installed all the packages listed in the README (and a few other for good measure) yet I am still unable to compile with wx support. (Though libpng3 isn't available so I installed everything with the libpng prefix)

For building with wxWidgets (start observer or debugger!) apt-get -y install libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng3

APPLICATIONS INFORMATION (See: /home/louispilfold/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_build_21.1.log)
 * wx             : wxWidgets not found, wx will NOT be usable

Is there a way to determine what package I'm missing?

@lpil lpil changed the title Unable to compile with wx on Debian stretch Unable to compile 21.1 with wx on Debian stretch Oct 4, 2018
@Stratus3D
Copy link
Member

This looks similar to #90. You'll probably get this solved faster over at https://github.com/kerl/kerl.

Maybe related to kerl/kerl#279 (comment)?

@jerko-culina
Copy link

jerko-culina commented Dec 8, 2018

make[3]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib/wx/src'
make[3]: Entering directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib/wx/c_src'
 CC     x86_64-unknown-linux-gnu/wxe_driver.o
 CC     x86_64-unknown-linux-gnu/wxe_ps_init.o
 CXX    x86_64-unknown-linux-gnu/wxe_main.o
 CXX    x86_64-unknown-linux-gnu/wxe_impl.o
 CXX    x86_64-unknown-linux-gnu/wxe_helpers.o
 CXX    x86_64-unknown-linux-gnu/wxe_callback_impl.o
 CXX    x86_64-unknown-linux-gnu/wxe_return.o
 CXX    x86_64-unknown-linux-gnu/wxe_gl.o
 CXX    x86_64-unknown-linux-gnu/wxe_funcs.o

cc1plus: out of memory allocating 54634528 bytes after a total of 1361604608 bytes
Makefile:156: recipe for target 'x86_64-unknown-linux-gnu/wxe_funcs.o' failed
make[3]: *** [x86_64-unknown-linux-gnu/wxe_funcs.o] Error 1
make[3]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib/wx/c_src'
/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[2]: *** [opt] Error 2
make[2]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib/wx'
/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[1]: *** [opt] Error 2
make[1]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib'
Makefile:482: recipe for target 'libs' failed
make: *** [libs] Error 2

on ubuntu 18.04 got error above

UPDATE:
memory leak cause this problem, so after I added 4 GB of swap space, it builds without any problem, it was happened on Digital Ocean droplet 1vcpu 2gb

@khipukamayuq
Copy link

@lpil Wondering what you know about libpng3 not existing. I'm on Ubuntu 18.10 and get E: Unable to locate package when trying to install it per asdf-erlang's README. Can't find much on it. Did see a libpng at version 1.6.36. Does that work instead of libpng3 maybe? Sorta fumbling in the dark here.

@Stratus3D
Copy link
Member

@khipukamayuq related: #98

@designrubenz
Copy link

designrubenz commented Apr 4, 2019

make[3]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib/wx/src'
make[3]: Entering directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib/wx/c_src'
 CC     x86_64-unknown-linux-gnu/wxe_driver.o
 CC     x86_64-unknown-linux-gnu/wxe_ps_init.o
 CXX    x86_64-unknown-linux-gnu/wxe_main.o
 CXX    x86_64-unknown-linux-gnu/wxe_impl.o
 CXX    x86_64-unknown-linux-gnu/wxe_helpers.o
 CXX    x86_64-unknown-linux-gnu/wxe_callback_impl.o
 CXX    x86_64-unknown-linux-gnu/wxe_return.o
 CXX    x86_64-unknown-linux-gnu/wxe_gl.o
 CXX    x86_64-unknown-linux-gnu/wxe_funcs.o

cc1plus: out of memory allocating 54634528 bytes after a total of 1361604608 bytes
Makefile:156: recipe for target 'x86_64-unknown-linux-gnu/wxe_funcs.o' failed
make[3]: *** [x86_64-unknown-linux-gnu/wxe_funcs.o] Error 1
make[3]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib/wx/c_src'
/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[2]: *** [opt] Error 2
make[2]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib/wx'
/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/make/otp_subdir.mk:29: recipe for target 'opt' failed
make[1]: *** [opt] Error 2
make[1]: Leaving directory '/home/deploy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.1/otp_src_21.1/lib'
Makefile:482: recipe for target 'libs' failed
make: *** [libs] Error 2

on ubuntu 18.04 got error above

UPDATE:
memory leak cause this problem, so after I added 4 GB of swap space, it builds without any problem, it was happened on Digital Ocean droplet 1vcpu 2gb

Second this!
A 2GB Digital Ocean droplet running on Ubuntu 18.04 produced the exact same error message. Had to resize the droplet to 4GB and voila, works just fine.

I find some tutorials out there misleading as they explicitly mention 1GB or 2GB droplets.
Also, I didn't know (and was quite surprised) that compiling erlang takes about 10 min.

Thanks a lot to @jerko-culina for his update!

@Stratus3D
Copy link
Member

Closing since it I do not believe there are any bugs in asdf-erlang contributing to these problems.

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

5 participants