我正试图从我的泊坞窗图片中运行这个bazel命令
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
然而它失败并出现此错误:
{{1}}
答案 0 :(得分:0)
我认为当gcc被操作系统杀死时会发生此错误。你有足够的ram / swap吗?
我认为这不是Bazel或Tensorflow特有的。
答案 1 :(得分:0)
这可能是因为你用完了RAM。请在构建失败后立即发布dmesg | tail
的输出。