https://github.com/tensorflow/tensorflow/issues/20677
https://blog.csdn.net/lanbeiliu/article/details/90293642 内存不足
http://m.sohu.com/a/304842717_99979179 从CPU指令集优化
好像要编译对aws s3的支持吧,我之前编的时候觉得用不到s3,就在configure阶段就关掉了。不过你可以试一下build命令加上--config=noaws 选项
学适给的例子
bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 --copt=-mfpmath=both -k //tensorflow/tools/pip_package:build_pip_package
noaws不知道什么意思
bazel build --config=noaws --config=opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package
错误信息如下
INFO: From Compiling external/snappy/snappy-sinksource.cc[for host]:
cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++
INFO: From Compiling external/snappy/snappy-stubs-internal.cc[for host]:
cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++
INFO: From Compiling external/snappy/snappy.cc[for host]:
cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++
ERROR: /root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/external/aws/BUILD.bazel:12:1: C++ compilation of rule '@aws//:aws' failed (Exit 4)
gcc: 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.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 3481.048s, Critical Path: 2901.73s
INFO: 2630 processes: 2630 local.
网友评论