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

Out of memory when building Erlang on EV3 running release ev3dev-jessie-2015-12-30 #547

Closed
jfcloutier opened this issue Feb 11, 2016 · 4 comments

Comments

@jfcloutier
Copy link

While I could build Erlang from sources in the previous release (ev3-ev3dev-jessie-2015-09-13), I now run into an out of memory condition.

Note that I MUST build Erlang from sources in order to install an 18.* version which I require.

robot@ev3dev:~/otp_src_18.2.1$ make
 MAKE   depend
make[1]: Entering directory '/home/robot/otp_src_18.2.1/erts/emulator'
 MAKE   generate
[...]
CC  /home/robot/otp_src_18.2.1/erts/emulator/pcre/obj/armv5tejl-unknown-linux-gnueabi/opt/pcre_dfa_exec.o
GEN /home/robot/otp_src_18.2.1/erts/emulator/pcre/pcre_exec_loop_break_cases.inc
CC  /home/robot/otp_src_18.2.1/erts/emulator/pcre/obj/armv5tejl-unknown-linux-gnueabi/opt/pcre_exec.o

cc1: out of memory allocating 8251148 bytes after a total of 17690624 bytes
pcre/pcre.mk:64: recipe for target '/home/robot/otp_src_18.2.1/erts/emulator/pcre/obj/armv5tejl-unknown-linux-gnueabi/opt/pcre_exec.o' failed
make[3]: *** [/home/robot/otp_src_18.2.1/erts/emulator/pcre/obj/armv5tejl-unknown-linux-gnueabi/opt/pcre_exec.o] Error 1

robot@ev3dev:~/otp_src_18.2.1$ vmstat -s
    59436 K total memory
    41028 K used memory
     5696 K active memory
    21232 K inactive memory
    18408 K free memory
     2184 K buffer memory
    21344 K swap cache
    65532 K total swap
     8216 K used swap
    57316 K free swap

Any suggestion?

Thanks!

@dlech
Copy link
Member

dlech commented Feb 11, 2016

Don't compile on your EV3. Use brickstrap.

@dlech
Copy link
Member

dlech commented Feb 11, 2016

Or mount more swap as in #520.

@jfcloutier
Copy link
Author

Trying both. Thanks!

@jfcloutier
Copy link
Author

All good. Thanks again.

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

2 participants