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 library on brick #45

Open
magic-dave opened this issue Feb 15, 2019 · 3 comments
Open

Cannot compile library on brick #45

magic-dave opened this issue Feb 15, 2019 · 3 comments

Comments

@magic-dave
Copy link

When typing make as per the ev3 brick instructions I receive the error:

c++: internal compiler error: Killed (program cc1plus)

This happens no matter how many jobs I assign: -j1 does not even work.

Is there a reason for this? I considered the idea that my SD card is too small, but this is more of a processor problem, right?

Thank you

@ddemidov
Copy link
Owner

This looks like the compiler ran out of memory, which is not unreasonable given the amount of RAM available on the brick. I would try to use a cross-compiler:
https://github.com/ddemidov/ev3dev-lang-cpp#cross-compiling

From the experience, cross-compiling on your desktop and copying the results to the brick is much more pleasant simply because it takes much less time. Compiling anything C++ on the brick takes ages even when it does work.

@magic-dave
Copy link
Author

This would be fine for me, but it is my students that need to be able to use it. Im already pretty annoyed that they dont know how to use their own OS's to do this. Never mind. Thanks for your help.

Ill write them an instruction list for cross compiling

@ddemidov
Copy link
Owner

You can try to precompile the library for them, copy it into the brick (or provide a download link), and let them compile the actual program (and link it to the library) on the brick. It could work if the program compilation requires less memory that the library compilation.

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