-
Notifications
You must be signed in to change notification settings - Fork 0
/
bazel-error
421 lines (196 loc) · 12.5 KB
/
bazel-error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
$ chmod +x bazel-0.21.0-installer-darwin-x86_64.sh
$ ./bazel-0.21.0-installer-darwin-x86_64.sh --user
Bazel installer
---------------
Bazel is bundled with software licensed under the GPLv2 with Classpath exception.
You can find the sources next to the installer on our release page:
https://github.com/bazelbuild/bazel/releases
# Release 0.21.0 (2018-12-19)
Baseline: cb9b2afbba3f8d3a1db8bf68e65d06f1b36902f5
Cherry picks:
+ 12b96466ee0d6ab83f7d4cd24be110bb5021281d:
Windows, test wrapper: rename the associated flag
+ 7fc967c4d6435de2bb4e34aac00ca2e499f55fca:
Use a fixed thread pool in ByteStreamBuildEventArtifactUploader
+ 798b9a989aa793655d29504edb5fb85f3143db84:
Add --build_event_upload_max_threads option
+ dbe05df23ccf4c919379e0294e0701fd3f66739c:
Update the version of skylib bundled in the distfile
Incompatible changes:
- The --experimental_stl command line option is removed.
- aquery defaults to human readable output format.
New features:
- repository_ctx.download and repository_ctx.download_and_extract
now return a struct.
- Android Databinding v2 can be enabled with
--experimental_android_databinding_v2.
Important changes:
- The deprecated and unmaintained Docker rules in
tools/build_defs/docker were removed. Please use
https://github.com/bazelbuild/rules_docker instead.
- The new --upload_query_output_using_bep query/cquery/aquery flag
causes query outputs to be uploaded via BEP.
- New incompatible flag --incompatible_strict_argument_ordering
- --strict_android_deps and --strict_java_deps were renamed to
--experimental_strict_java_deps
- config_settings that select on "compiler" value instead of values
= {"compiler" : "x"} should use flag_values =
{"@bazel_tools//tools/cpp:compiler": "x"}.
- The new --upload_query_output_using_bep query/cquery/aquery flag
causes query outputs to be uploaded via BEP.
- Turn on --incompatible_disable_sysroot_from_configuration
- We revamped our Android with Bazel tutorial! Check it out
[here](https://docs.bazel.build/versions/master/tutorial/android-a
pp.html).
- --incompatible_disallow_slash_operator is now on by default
- Enable --experimental_check_desugar_deps by default. This flag
rules out several types of invalid Android builds at compile-time.
- The --max_config_changes_to_show option lists the names of
options which
have changed and thus caused the analysis cache to be dropped.
- The --experimental_strict_action_env option has been renamed to
--incompatible_strict_action_env and is now on by default. This
means Bazel will no longer use the client's PATH and
LD_LIBRARY_PATH environmental variables in the default action
environment. If the old behavior is desired, pass
--action_env=PATH and --action_env=LD_LIBRARY_PATH.
--noincompatible_strict_action_env will also temporarily restore
the old behavior. However, as --action_env is a more general and
explicit way to pass client environmental variables into actions,
--noincompatible_strict_action_env will eventually be deprecated
and removed. See #6648 for more details.
- XCRUNWRAPPER_LABEL has been removed. If you used this value
before, please use @bazel_tools//tools/objc:xcrunwrapper instead.
- --incompatible_static_name_resolution is no unable by default
- We will phase out --genrule_strategy in favor of
--strategy=Genrule=<value> (for genrules) or
--spawn_strategy=<value> (for all actions).
- --incompatible_package_name_is_a_function is now enabled by
default
- Dynamic execution is now available with
--experimental_spawn_strategy. Dynamic execution allows a build
action to run locally and remotely simultaneously, and Bazel
picks the fastest action. This provides the best of both worlds:
faster clean builds than pure local builds, and faster
incremental builds than pure remote builds.
- --incompatible_package_name_is_a_function is now enabled by
default
- New incompatible flag --incompatible_merge_genfiles_directory
- grpc log now logs updateActionResult
- CppConfiguration doesn't do package loading anymore. That means:
* it's no longer needed to have C++ toolchain available when
building non-C++ projects
* bazel will not analyze C++ toolchain when not needed -> speedup
~2s on bazel startup when C++ rules using hermetic toolchain are
not loaded
- --incompatible_package_name_is_a_fu...
This release contains contributions from many people at Google, as well as andy g scott ?, Attila Ol?h, Benjamin Peterson, Clint Harrison, Dave Lee, Ed Schouten, Greg Estren, Gregor Jasny, Jamie Snape, Jerry Marino, Loo Rong Jie, Or Shachar, Sevki Hasirci, William Chargin.
## Build informations
- [Commit](https://github.com/bazelbuild/bazel/commit/defd737761b)
Uncompressing......Extracting Bazel installation...
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Invocation ID: e8a6d944-b7bf-4f8c-a1c2-061657b83873
.
Bazel is now installed!
Make sure you have "/Users/yuichikato/bin" in your path. You can also activate bash
completion by adding the following line to your ~/.bash_profile:
source /Users/yuichikato/.bazel/bin/bazel-complete.bash
See http://bazel.build/docs/getting-started.html to start a new project!
miyataaimoe:Downloads yuichikato$ export PATH="$PATH:$HOME/bin"
miyataaimoe:Downloads yuichikato$ bazel version
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Invocation ID: e5999ad4-f221-4b9b-a45e-5c907b2f8a9c
Build label: 0.21.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Dec 19 12:57:09 2018 (1545224229)
Build timestamp: 1545224229
Build timestamp as int: 1545224229
$ bazel version
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Invocation ID: f5cc3490-0ff2-478d-aeae-634d66a49980
Build label: 0.21.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Dec 19 12:57:09 2018 (1545224229)
Build timestamp: 1545224229
Build timestamp as int: 1545224229
miyataaimoe:~ yuichikato$ git clone https://github.com/tensorflow/tensorflow.git
Cloning into 'tensorflow'...
remote: Enumerating objects: 505713, done.
remote: Total 505713 (delta 0), reused 0 (delta 0), pack-reused 505713
Receiving objects: 100% (505713/505713), 293.05 MiB | 1.46 MiB/s, done.
Resolving deltas: 100% (405467/405467), done.
Checking out files: 100% (15428/15428), done.
miyataaimoe:~ yuichikato$ cd tensorflow
miyataaimoe:tensorflow yuichikato$ ./configure
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Invocation ID: 308e7b5f-118d-4873-ab0d-3522f5330036
You have bazel 0.21.0 installed.
Please specify the location of python. [Default is /Users/yuichikato/anaconda3/bin/python]: bazel shutdown
Invalid python path: bazel shutdown cannot be found.
Please specify the location of python. [Default is /Users/yuichikato/anaconda3/bin/python]:
Found possible Python library paths:
/Users/yuichikato/anaconda3/lib/python3.6/site-packages
Please input the desired Python library path to use. Default is [/Users/yuichikato/anaconda3/lib/python3.6/site-packages]
Do you wish to build TensorFlow with XLA JIT support? [y/N]:
No XLA JIT support will be enabled for TensorFlow.
Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]:
No OpenCL SYCL support will be enabled for TensorFlow.
Do you wish to build TensorFlow with ROCm support? [y/N]:
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]:
No CUDA support will be enabled for TensorFlow.
Do you wish to download a fresh release of clang? (Experimental) [y/N]:
Clang will not be downloaded.
Do you wish to build TensorFlow with MPI support? [y/N]:
No MPI support will be enabled for TensorFlow.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native -Wno-sign-compare]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: n
Not configuring the WORKSPACE for Android builds.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
--config=mkl # Build with MKL support.
--config=monolithic # Config for mostly static monolithic build.
--config=gdr # Build with GDR support.
--config=verbs # Build with libverbs support.
--config=ngraph # Build with Intel nGraph support.
--config=dynamic_kernels # (Experimental) Build kernels into separate shared objects.
Preconfigured Bazel build configs to DISABLE default on features:
--config=noaws # Disable AWS S3 filesystem support.
--config=nogcp # Disable GCP support.
--config=nohdfs # Disable HDFS support.
--config=noignite # Disable Apache Ignite support.
--config=nokafka # Disable Apache Kafka support.
--config=nonccl # Disable NVIDIA NCCL support.
Configuration finished
$ bazel build --config=opt//tensorflow/tools/pip_package:build_pip_package
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=80
INFO: Reading rc options for 'build' from /Users/yuichikato/tensorflow/.bazelrc:
'build' options: --define framework_shared_object=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone --strategy=Genrule=standalone -c opt --define=grpc_no_ares=true --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include
INFO: Reading rc options for 'build' from /Users/yuichikato/tensorflow/.tf_configure.bazelrc:
'build' options: --action_env PYTHON_BIN_PATH=/Users/yuichikato/anaconda3/bin/python --action_env PYTHON_LIB_PATH=/Users/yuichikato/anaconda3/lib/python3.6/site-packages --python_path=/Users/yuichikato/anaconda3/bin/python --action_env TF_NEED_OPENCL_SYCL=0 --action_env TF_NEED_ROCM=0 --action_env TF_NEED_CUDA=0 --action_env TF_DOWNLOAD_CLANG=0
ERROR: Config value opt//tensorflow/tools/pip_package:build_pip_package is not defined in any .rc file
INFO: Invocation ID: 14514a22-f296-4946-8f50-56d6476c6590
miyataaimoe:tensorflow yuichikato$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
INFO: Invocation ID: d653837f-cc0b-497a-a45d-bcabfdf22e7e
ERROR: /private/var/tmp/_bazel_yuichikato/2f56da6d0e205256e4b3591a707923ab/external/local_config_cc/BUILD:58:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-armeabi-v7a: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, try: "bazel clean --expunge" to re-run Xcode configuration
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-armeabi-v7a' failed; build aborted
INFO: Elapsed time: 25.019s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (164 packages loaded, 3136 targets\
configured)
currently loading: tensorflow/contrib/resampler
Fetching @grpc; fetching
Fetching @gif_archive; fetching
miyataaimoe:tensorflow yuichikato$ bazel clean --expunge
INFO: Invocation ID: 54ca3adf-f3f3-4fbf-96e0-c51e90344dee
INFO: Starting clean.
miyataaimoe:tensorflow yuichikato$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 1ef449d8-976c-427f-8ffc-66e48c45b98b
ERROR: /private/var/tmp/_bazel_yuichikato/2f56da6d0e205256e4b3591a707923ab/external/local_config_cc/BUILD:58:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-armeabi-v7a: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, try: "bazel clean --expunge" to re-run Xcode configuration
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-armeabi-v7a' failed; build aborted
INFO: Elapsed time: 17.207s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (179 packages loaded, 3054 targets\
configured)
Fetching @com_google_absl; fetching 5s