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
internal compiler error: Killed (program cc1plus) #334
Comments
gcc needs at least 6 GB of RAM to compile TDLib. You can use clang instead, which needs less than 2 GB. |
How do I configure cmake to use clang? |
For Ubuntu: https://stackoverflow.com/a/12843988. |
Please note that you need to delete the whole build directory and recreate it to be able to change compiler. |
I'm actually managed to build TDLib on 4Gb RAM machine, so I feel that the requirement might be a bit lower than that. |
@kossnocorp I've tested recently with GCC 4.9.2 and it used 5.5 GB RAM at the peak. I've rounded it up to 6 GB to make the comment correct for the next few months. |
I see, probably my results were affected by the virtual memory although I'm not sure how it actually works. |
TDLib 1.4.0 includes a lot of compilation memory usage optimizations and a new script |
@levlam that sounds amazing, great work! Is there are extra steps to make it work on 1Gb RAM? |
@levlam thanks! |
|
@maxtronic Do not try to build using 4 threads. Use clang and SplitSource.php before building as described in https://github.com/tdlib/td#building. |
limit make paralel number to smal, eg. |
Writing HLS project(help me fix this error as i am using hls4ml) Done |
Hi,
I wanna compile the github.com/vysheng/tdbot , but it returns error on 60% process:
[ 58%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/ConfigManager.cpp.o
[ 60%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/ConfigShared.cpp.o
[ 60%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/Contact.cpp.o
[ 60%] Building CXX object td/CMakeFiles/tdcore.dir/td/telegram/ContactsManager.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
td/CMakeFiles/tdcore.dir/build.make:590: recipe for target 'td/CMakeFiles/tdcore.dir/td/telegram/ContactsManager.cpp.o' failed
make[3]: *** [td/CMakeFiles/tdcore.dir/td/telegram/ContactsManager.cpp.o] Error 4
CMakeFiles/Makefile2:378: recipe for target 'td/CMakeFiles/tdcore.dir/all' failed
make[2]: *** [td/CMakeFiles/tdcore.dir/all] Error 2
CMakeFiles/Makefile2:86: recipe for target 'CMakeFiles/telegram-bot.dir/rule' failed
make[1]: *** [CMakeFiles/telegram-bot.dir/rule] Error 2
Makefile:164: recipe for target 'telegram-bot' failed
make: *** [telegram-bot] Error 2
OS: Ubuntu 17.10 x86_64
RAM: 2 GB
The text was updated successfully, but these errors were encountered: