bazel build tensorflow/python/tools:strip_unused 编译失败
bazel build tensorflow/python/tools:strip_unused compilation failure
我正在尝试从我的 docker 图片中 运行 这个 bazel 命令
docker run -it gcr.io/tensorflow/tensorflow:latest-devel
cd /tensorflow
bazel build tensorflow/python/tools:strip_unused
但是失败并出现以下错误:
ERROR: /tensorflow/tensorflow/core/kernels/BUILD:1970:1: C++ compilation of rule '//tensorflow/core/kernels:svd_op' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG ... (remaining 107 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 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-5/README.Bugs> for instructions.
Target //tensorflow/python/tools:strip_unused failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 609.363s, Critical Path: 456.46s
我认为这个错误发生在gcc被操作系统杀死的时候。你有足够的ram/swap吗?
我认为这不是 Bazel 或 Tensorflow 特有的。
这可能是因为您 运行 内存不足。请在构建失败后立即 post dmesg | tail
的输出。
我正在尝试从我的 docker 图片中 运行 这个 bazel 命令
docker run -it gcr.io/tensorflow/tensorflow:latest-devel
cd /tensorflow
bazel build tensorflow/python/tools:strip_unused
但是失败并出现以下错误:
ERROR: /tensorflow/tensorflow/core/kernels/BUILD:1970:1: C++ compilation of rule '//tensorflow/core/kernels:svd_op' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG ... (remaining 107 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 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-5/README.Bugs> for instructions.
Target //tensorflow/python/tools:strip_unused failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 609.363s, Critical Path: 456.46s
我认为这个错误发生在gcc被操作系统杀死的时候。你有足够的ram/swap吗?
我认为这不是 Bazel 或 Tensorflow 特有的。
这可能是因为您 运行 内存不足。请在构建失败后立即 post dmesg | tail
的输出。