keystone
keystone copied to clipboard
Failed to install with pip3 on Ubuntu 18.04
I'm trying to install keystone-engine with pip3: pip3 install keystone-engine
When it tries to build I get an error:
Scanning dependencies of target keystone
[ 1%] Building CXX object llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmBackend.cpp.o
[ 2%] Building CXX object llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/ELFObjectWriter.cpp.o
[ 3%] Building CXX object llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoCOFF.cpp.o
[ 3%] Building CXX object llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoELF.cpp.o
[ 4%] Building CXX object llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAssembler.cpp.o
[ 4%] Building CXX object llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfo.cpp.o
[ 5%] Building CXX object llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoDarwin.cpp.o
[ 3%] Building CXX object llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/ConstantPools.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.
llvm/keystone/CMakeFiles/keystone.dir/build.make:110: recipe for target 'llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmBackend.cpp.o' failed
make[2]: *** [llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmBackend.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
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.
llvm/keystone/CMakeFiles/keystone.dir/build.make:206: recipe for target 'llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoELF.cpp.o' failed
make[2]: *** [llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoELF.cpp.o] Error 4
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.
llvm/keystone/CMakeFiles/keystone.dir/build.make:62: recipe for target 'llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/ConstantPools.cpp.o' failed
make[2]: *** [llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/ConstantPools.cpp.o] Error 4
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.
llvm/keystone/CMakeFiles/keystone.dir/build.make:134: recipe for target 'llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfo.cpp.o' failed
make[2]: *** [llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfo.cpp.o] Error 4
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.
llvm/keystone/CMakeFiles/keystone.dir/build.make:158: recipe for target 'llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoCOFF.cpp.o' failed
make[2]: *** [llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoCOFF.cpp.o] Error 4
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.
llvm/keystone/CMakeFiles/keystone.dir/build.make:182: recipe for target 'llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoDarwin.cpp.o' failed
make[2]: *** [llvm/keystone/CMakeFiles/keystone.dir/__/lib/MC/MCAsmInfoDarwin.cpp.o] Error 4
CMakeFiles/Makefile2:405: recipe for target 'llvm/keystone/CMakeFiles/keystone.dir/all' failed
make[1]: *** [llvm/keystone/CMakeFiles/keystone.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data
creating build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib
creating build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/keystone.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/arm64_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/sparc_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/mips_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/__init__.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/arm_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/x86_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/keystone_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/systemz_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/hexagon_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
copying build/lib/keystone/ppc_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone
running install_data
creating build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/data
creating build/bdist.linux-x86_64/wheel/usr
creating build/bdist.linux-x86_64/wheel/usr/lib
creating build/bdist.linux-x86_64/wheel/usr/lib/python3
creating build/bdist.linux-x86_64/wheel/usr/lib/python3/dist-packages
creating build/bdist.linux-x86_64/wheel/usr/lib/python3/dist-packages/keystone
error: can't copy 'src/build/llvm/lib/libkeystone.so': doesn't exist or not a regular file
----------------------------------------
Failed building wheel for keystone-engine
Running setup.py clean for keystone-engine
Failed to build keystone-engine
Installing collected packages: keystone-engine
Running setup.py install for keystone-engine ... done
Successfully installed keystone-engine-0.9.1.post3
Did you install cmake? Try sudo apt-get install cmake and see if that fixes it.
Did you install cmake? Try
sudo apt-get install cmakeand see if that fixes it.
Sorry, it still doesn't solve my problem.
that is GCC compiler error, so you should try to remove the Pypi package, and try again.