c++: fatal error: Killed signal terminated program cc1plus
arashnm80 opened this issue · comments
I use Ubuntu 20.04.5 LTS
and my cpu is x64 AMD
.
I am trying to compile and install the library. At first I clone the repo and change directory to it:
git clone https://github.com/reo7sp/tgbot-cpp
cd tgbot-cpp
Then I run cmake .
:
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1f")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found suitable version "7.68.0", minimum required is "7.58.0")
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.65.1") found components: system
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/Library/tgbot-cpp
but finally when I run sudo make install
I get these errors:
[ 4%] Building CXX object CMakeFiles/TgBot.dir/src/Api.cpp.o
[ 14%] Building CXX object CMakeFiles/TgBot.dir/src/Bot.cpp.o
[ 9%] Building CXX object CMakeFiles/TgBot.dir/src/TgException.cpp.o
[ 19%] Building CXX object CMakeFiles/TgBot.dir/src/EventHandler.cpp.o
[ 23%] Building CXX object CMakeFiles/TgBot.dir/src/TgTypeParser.cpp.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/TgBot.dir/build.make:63: CMakeFiles/TgBot.dir/src/Api.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/TgBot.dir/build.make:76: CMakeFiles/TgBot.dir/src/Bot.cpp.o] Error 1
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/TgBot.dir/build.make:115: CMakeFiles/TgBot.dir/src/TgTypeParser.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/TgBot.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Does anybody know how to fix this situation?
accidentally posted twice, the original issue is #241