2016-03-28 6 views
2

Dockerを使用してOSX El CapitanにTensorFlowをインストールしようとしていますが、エラーが続いています。OSXのDockerを使用したTensorflowのコンパイルエラー

for (int i = 0; i < suffix.size(); ++i) { 
           ^
ERROR: /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/external/tf/tensorflow/core/kernels/BUILD:212:1: C++ compilation of rule '@tf//tensorflow/core/kernels:mirror_pad_op' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -iquote external/tf -iquote ... (remaining 65 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. 

答えて

3

を解決:

bazel test tensorflow_serving/... 

ここで私が取得していますエラーがあります:

https://tensorflow.github.io/serving/docker.html

はここでエラーを引き起こしたコマンドである:ここで私は、次のよチュートリアルです!問題は、VM内のメモリが不足しているように見えます。 (私は1GBのみだった)マシンを作成する場合、それはより多くのメモリを持っていることを確認してください)

1:ここでは

は、私はそれを固定する方法です。ここでは、4ギガバイトでドッカマシンを作成する方法である:

docker-machine create -d virtualbox --virtualbox-memory 4096 default 

2)を使用するメモリの量を制限するパラメータでbazelコマンドパスを実行しています。ここで私は2ギガバイトを使用してコマンドを実行している:

元のコマンドだった
bazel build -c opt --copt=-mavx --verbose_failures --local_resources 2048,2.0,1.0 -j 1 //tensorflow_serving/example:mnist_export 

bazel build //tensorflow_serving/example:mnist_export 
関連する問題