注意:笔者未能在Ubuntu18.04 64bit下成功从源码编译cpu版本的tensorflow

Ans: 1.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.

        2.  sudo apt-get install gcc-6 g++-6

    cd /usr/bin

    sudo mv gcc gcc-7.3.0.back

    sudo ln -s gcc-6 gcc

    sudo mv g++ g++-7.3.0.back

    sudo ln -s g++-6 g++

  3. sudo mv ~/.cache/bazel ~/.cache/bazel.back

 

Reference material:

Building from source, gcc issues

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2021-12-05
  • 2021-08-21
  • 2021-08-04
  • 2021-12-02
  • 2022-01-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-12-10
  • 2021-09-14
相关资源
相似解决方案