質問編集履歴

2

Bazelのバージョンを最新版に更新し、エラーの内容が変わりました。

2017/02/04 07:29

投稿

student0
student0

スコア12

test CHANGED
@@ -1 +1 @@
1
- googleのビルドツールbazelのbuild時のエラー
1
+ googleのビルドツールBazel0.4.4のbuild時のエラー
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  AWS, Bitfusion Ubuntu 14 TensorFlow
4
4
 
5
-
5
+ Bazel 0.4.4
6
6
 
7
7
 
8
8
 
@@ -26,20 +26,14 @@
26
26
 
27
27
  ```
28
28
 
29
- ERROR: /home/ubuntu/tensorflow/third_party/gpus/cuda_configure.bzl:509:18: function 'repository_rule' does not exist.
29
+ ERROR: /home/ubuntu/.cache/bazel/_bazel_ubuntu/ad1e09741bb4109fbc70ef8216b59ee2/external/protobuf/protobuf.bzl:91:19: name 'HOST_CFG' is not defined.
30
30
 
31
- ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package 'external': Extension 'third_party/gpus/cuda_configure.bzl' has errors.
31
+ ERROR: /home/ubuntu/tensorflow/tensorflow/BUILD:82:1: error loading package 'tensorflow/python': Extension 'protobuf.bzl' has errors and referenced by '//tensorflow:tensorflow_py'.
32
+
33
+ ERROR: Analysis of target '//tensorflow/examples/image_retraining:retrain' failed; build aborted.
32
34
 
33
35
  ```
34
36
 
35
37
  というエラーが出ます。
36
38
 
37
39
  解決方法をご存知の方がいらっしゃればご教示いただけますと幸いです。
38
-
39
-
40
-
41
- ###試したこと
42
-
43
- bazelは、下記サイトを参考にしてインストールしてみました。
44
-
45
- http://www.techscore.com/blog/2016/03/18/%E6%AC%A1%E4%B8%96%E4%BB%A3%E3%83%93%E3%83%AB%E3%83%89%E3%83%84%E3%83%BC%E3%83%AB-bazel%E3%81%AB%E5%85%A5%E9%96%80%E3%81%97%E3%81%A6%E3%81%BF%E3%81%BE%E3%81%97%E3%81%9F/

1

エラーテキストの修正

2017/02/04 07:29

投稿

student0
student0

スコア12

test CHANGED
File without changes
test CHANGED
@@ -26,15 +26,15 @@
26
26
 
27
27
  ```
28
28
 
29
- ERROR: no such package 'tensorflow/examples/image_retraining': BUILD file not found on package path.
29
+ ERROR: /home/ubuntu/tensorflow/third_party/gpus/cuda_configure.bzl:509:18: function 'repository_rule' does not exist.
30
+
31
+ ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package 'external': Extension 'third_party/gpus/cuda_configure.bzl' has errors.
30
32
 
31
33
  ```
32
34
 
33
35
  というエラーが出ます。
34
36
 
35
- BUILDファイルを作りなさい、ということですが、どの場所にどのようなファイルを作って配置すればよいのでしょうか・・・?
36
-
37
- ご教示いただけますと幸いです。
37
+ 解決方法を存知の方がいらっしゃればご教示いただけますと幸いです。
38
38
 
39
39
 
40
40