tensorflow / community

Stores documents used by the TensorFlow developer community
Apache License 2.0
1.26k stars 580 forks source link

Cmake fails on Ubuntu 20 #460

Open neocoretechs opened 6 months ago

neocoretechs commented 6 months ago

uname -a: Linux braincoral 5.4.0-177-generic #197-Ubuntu SMP Thu Mar 28 22:45:47 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Cmake begins failing when producing C API when following build instructions here: https://www.tensorflow.org/lite/guide/build_cmake Also fails in same manner following steps 1-5. Thanks.

[ 80%] Building CXX object tensorflow-lite/CMakeFiles/tensorflow-lite.dir/kernels/rng_bit_generator.cc.o c++: fatal error: Killed signal terminated program cc1plus compilation terminated. [ 80%] Building CXX object tensorflow-lite/CMakeFiles/tensorflow-lite.dir/kernels/round.cc.o make[2]: [tensorflow-lite/CMakeFiles/tensorflow-lite.dir/build.make:63: tensorflow-lite/CMakeFiles/tensorflow-lite.dir/core/acceleration/configuration/delegate_registry.cc.o] Error 1 make[2]: Waiting for unfinished jobs.... c++: fatal error: Killed signal terminated program cc1plus compilation terminated. [ 80%] Building CXX object tensorflow-lite/CMakeFiles/tensorflow-lite.dir/kernels/rng_util.cc.o make[2]: [tensorflow-lite/CMakeFiles/tensorflow-lite.dir/build.make:76: tensorflow-lite/CMakeFiles/tensorflow-lite.dir/core/acceleration/configuration/nnapi_plugin.cc.o] Error 1 c++: fatal error: Killed signal terminated program cc1plus compilation terminated. make[2]: [tensorflow-lite/CMakeFiles/tensorflow-lite.dir/build.make:128: tensorflow-lite/CMakeFiles/tensorflow-lite.dir/core/api/op_resolver.cc.o] Error 1 c++: fatal error: Killed signal terminated program cc1plus compilation terminated. make[2]: [tensorflow-lite/CMakeFiles/tensorflow-lite.dir/build.make:115: tensorflow-lite/CMakeFiles/tensorflow-lite.dir/core/api/flatbuffer_conversions.cc.o] Error 1 c++: fatal error: Killed signal terminated program cc1plus compilation terminated. make[2]: [tensorflow-lite/CMakeFiles/tensorflow-lite.dir/build.make:154: tensorflow-lite/CMakeFiles/tensorflow-lite.dir/core/c/c_api.cc.o] Error 1 [ 80%] Building CXX object tensorflow-lite/CMakeFiles/tensorflow-lite.dir/kernels/scatter_nd.cc.o c++: fatal error: Killed signal terminated program cc1plus compilation terminated.