1. 程式人生 > >ubuntu 18.04 64bit build tensorflow report error:C++ compilation of rule '//tensorflow/core/kernels:broadcast_to_op' failed (Exit 4)

ubuntu 18.04 64bit build tensorflow report error:C++ compilation of rule '//tensorflow/core/kernels:broadcast_to_op' failed (Exit 4)

tar from https mem port nbsp building like failed

Ans: You are likely running out of memory. Try reducing number of parallel builds by passing ‘--local_resources 2048,.5,1.0‘, which would instruct bazel to spawn no more than one compiler process at the time.

Reference material:

Building from source, gcc issues

ubuntu 18.04 64bit build tensorflow report error:C++ compilation of rule '//tensorflow/core/kernels:broadcast_to_op' failed (Exit 4)