-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 on machines with insufficient ram #143
Comments
Which compiler do you use? |
I used gcc. Let me try to switch to clang. |
By using clang and clang++, it returns the following
|
Have you removed build directory before switching to clang and rerun cmake from scratch? |
yes, the folder "build" was recreated. Still has same error. |
Could you show, how you invoked cmake to switch to clang++? |
|
Could you try to use
instead of
? |
seems like even worse
|
|
It looks like some binutils problem, but cmake invocations looks right for me. If you are on Ubuntu you can try to switch to clang++ using this advice: https://stackoverflow.com/a/12843988. |
apt install clang In my opinion, global switching to clang is not the best plan. Perhaps it's worth setting limits on consumption of RAM at the level of the operating system. When assembling jni. Cmake begins to eat strongly by 50% |
It is compiled eventually by using the command @isopen provided. Thanks! |
I tried to compile tdlib by using the instructions, but I found that while compiling, it just consumes all of my ram and unable to proceed.
My machine has 4GB ram.
The text was updated successfully, but these errors were encountered: