2017-05-30 9 views
0

私はそれがこのエラーで失敗しかし、私のドッキングウィンドウの画像bazelビルドtensorflow /パイソン/ツール:strip_unusedコンパイルに失敗

docker run -it gcr.io/tensorflow/tensorflow:latest-devel 
cd /tensorflow 
bazel build tensorflow/python/tools:strip_unused 

内からこの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 

答えて

0

私は思いますこのエラーは、gccがオペレーティングシステムによって強制終了された場合に発生します。十分なラム/スワップがありますか?

私はこれがBazelまたはTensorflow固有ではないと思います。

+0

はい、正しくありました。私は '' 'bazel build tensorflow/python/tools:strip_unused --local_resources 2048、.5,1.0'''を実行して解決しました。 – ajayjapan

0

これはおそらくRAMが不足しているためです。ビルドが失敗した直後にdmesg | tailの出力を投稿してください。

関連する問題