Opened 7 years ago
Closed 7 years ago
#55731 closed defect (fixed)
bazel @0.5.2: "Cannot find requested resource bundle for locale en_US"
Reported by: | vmstanford | Owned by: | RootFunction |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | bazel |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
OS: Sierra 10.12.6
Xcode: Xcode Version 8.3.3 (8E3004b)
Build fails:
ERROR: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel/work/bazel-0.5.2-dist/src/main/protobuf/BUILD:27:2: Building src/main/protobuf/libextra_actions_base_proto-speed.jar (1 source jar) failed: Worker process sent response with exit code: 1. java.lang.InternalError: Cannot find requested resource bundle for locale en_US
Did the
port selfupdate port update outdated
and renistalled macports to make sure it is the one for Sierra 10.12.
Any help will be greately appreciated. I am trying to build Tensorflow from source, but can't until bazel is working.
========== port -v output ==============
VincentStanfordsPro:bin vince$ sudo port -v install bazel Password: ---> Computing dependencies for bazel. ---> Building bazel INFO: You can skip this first step by providing a path to the bazel binary as second argument: INFO: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel/work/bazel-0.5.2-dist/compile.sh compile /path/to/bazel 🍃 Building Bazel from scratch....... 🍃 Building Bazel with Bazel. .WARNING: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel/work/.tmp/bazel_k21AMNL7/out/external/bazel_tools/WORKSPACE:1: Workspace name in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel/work/.tmp/bazel_k21AMNL7/out/external/bazel_tools/WORKSPACE (@io_bazel) does not match the name given in the repository's definition (@bazel_tools); this will cause a build error in future versions. WARNING: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel/work/bazel-0.5.2-dist/tools/build_defs/docker/docker.bzl:19:1: The docker_{build,bundle} rules bundled with Bazel are deprecated in favor of: https://github.com/bazelbuild/rules_docker. Please change BUILD loads to reference: @io_bazel_rules_docker//docker:docker.bzl and add the following to your WORKSPACE: git_repository( name = "io_bazel_rules_docker", remote = "https://github.com/bazelbuild/rules_docker.git", commit = "...", ) load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories") docker_repositories(). INFO: Found 1 target... INFO: From Compiling external/com_google_protobuf/src/google/protobuf/compiler/js/embed.cc [for host]: external/com_google_protobuf/src/google/protobuf/compiler/js/embed.cc:37:12: warning: unused variable 'output_file' [-Wunused-const-variable] const char output_file[] = "well_known_types_embed.cc"; ^ 1 warning generated. INFO: From JavacBootstrap src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libbootstrap_JarOwner.jar [for host]: warning: Implicitly compiled files were not subject to annotation processing. Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation. 1 warning INFO: From JavacBootstrap src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libskylark-deps.jar [for host]: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. INFO: From Compiling third_party/protobuf/3.2.0/src/google/protobuf/compiler/js/embed.cc [for host]: third_party/protobuf/3.2.0/src/google/protobuf/compiler/js/embed.cc:37:12: warning: unused variable 'output_file' [-Wunused-const-variable] const char output_file[] = "well_known_types_embed.cc"; ^ 1 warning generated. INFO: From Compiling third_party/ijar/zip.cc [for host]: third_party/ijar/zip.cc:153:7: warning: private field 'uncompressed_data_' is not used [-Wunused-private-field] u1 *uncompressed_data_; ^ third_party/ijar/zip.cc:154:10: warning: private field 'uncompressed_data_allocated_' is not used [-Wunused-private-field] size_t uncompressed_data_allocated_; ^ 2 warnings generated. INFO: From Compiling third_party/ijar/zip.cc: third_party/ijar/zip.cc:153:7: warning: private field 'uncompressed_data_' is not used [-Wunused-private-field] u1 *uncompressed_data_; ^ third_party/ijar/zip.cc:154:10: warning: private field 'uncompressed_data_allocated_' is not used [-Wunused-private-field] size_t uncompressed_data_allocated_; ^ 2 warnings generated. INFO: From Linking external/com_google_protobuf/libprotobuf_lite.a [for host]: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/com_google_protobuf/libprotobuf_lite.a(arenastring.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/com_google_protobuf/libprotobuf_lite.a(atomicops_internals_x86_msvc.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/com_google_protobuf/libprotobuf_lite.a(io_win32.o) has no symbols INFO: From Linking external/com_google_protobuf/libprotobuf.a [for host]: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/com_google_protobuf/libprotobuf.a(gzip_stream.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/com_google_protobuf/libprotobuf.a(io_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/com_google_protobuf/libprotobuf.a(error_listener.o) has no symbols INFO: From Linking third_party/protobuf/3.2.0/libprotobuf_lite.a [for host]: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/third_party/protobuf/3.2.0/libprotobuf_lite.a(arenastring.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/third_party/protobuf/3.2.0/libprotobuf_lite.a(atomicops_internals_x86_msvc.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/third_party/protobuf/3.2.0/libprotobuf_lite.a(io_win32.o) has no symbols INFO: From Linking third_party/grpc/libgrpc_unsecure.a: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(endpoint_pair_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(iocp_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(iomgr_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(pollset_set_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(pollset_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(resolve_address_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(socket_utils_linux.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(socket_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(tcp_client_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(tcp_server_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(tcp_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(udp_server.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(wakeup_fd_eventfd.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(workqueue_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(stap_timers.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(cpu_iphone.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(cpu_linux.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(cpu_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(env_linux.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(env_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(file_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(log_android.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(log_linux.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(log_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(string_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(subprocess_windows.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(sync_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(thd_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(time_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(tls_pthread.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc_unsecure.a(wrap_memcpy.o) has no symbols INFO: From Linking third_party/protobuf/3.2.0/libprotobuf.a [for host]: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/third_party/protobuf/3.2.0/libprotobuf.a(gzip_stream.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/third_party/protobuf/3.2.0/libprotobuf.a(io_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/third_party/protobuf/3.2.0/libprotobuf.a(error_listener.o) has no symbols INFO: From Linking third_party/protobuf/3.2.0/libprotobuf_lite.a: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/protobuf/3.2.0/libprotobuf_lite.a(arenastring.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/protobuf/3.2.0/libprotobuf_lite.a(atomicops_internals_x86_msvc.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/protobuf/3.2.0/libprotobuf_lite.a(io_win32.o) has no symbols INFO: From Linking third_party/grpc/libgrpc++_unsecure.a: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/grpc/libgrpc++_unsecure.a(rpc_method.o) has no symbols INFO: From Generating Java (Immutable) proto_library @googleapis//:google_devtools_build_v1_publish_build_event_proto: google/devtools/build/v1/publish_build_event.proto: warning: Import google/protobuf/any.proto but not used. google/devtools/build/v1/publish_build_event.proto: warning: Import google/api/auth.proto but not used. INFO: From Generating Java (Immutable) proto_library @googleapis//:google_devtools_build_v1_build_status_proto: google/devtools/build/v1/build_status.proto: warning: Import google/protobuf/any.proto but not used. INFO: From Generating Java (Immutable) proto_library @googleapis//:google_watch_v1_proto: google/watcher/v1/watch.proto: warning: Import google/protobuf/empty.proto but not used. INFO: From Generating Java (Immutable) proto_library @googleapis//:google_bytestream_bytestream_proto: google/bytestream/bytestream.proto: warning: Import google/protobuf/wrappers.proto but not used. INFO: From Generating external/googleapis/google_devtools_build_v1_publish_build_event_java_grpc_srcs.jar: google/devtools/build/v1/publish_build_event.proto: warning: Import google/protobuf/any.proto but not used. google/devtools/build/v1/publish_build_event.proto: warning: Import google/api/auth.proto but not used. INFO: From Generating external/googleapis/google_watch_v1_java_grpc_srcs.jar: google/watcher/v1/watch.proto: warning: Import google/protobuf/empty.proto but not used. INFO: From Generating external/googleapis/google_bytestream_bytestream_java_grpc_srcs.jar: google/bytestream/bytestream.proto: warning: Import google/protobuf/wrappers.proto but not used. INFO: From Linking third_party/protobuf/3.2.0/libprotobuf.a: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/protobuf/3.2.0/libprotobuf.a(gzip_stream.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/protobuf/3.2.0/libprotobuf.a(io_win32.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/darwin_x86_64-opt/bin/third_party/protobuf/3.2.0/libprotobuf.a(error_listener.o) has no symbols ERROR: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel/work/bazel-0.5.2-dist/src/main/protobuf/BUILD:27:2: Building src/main/protobuf/libextra_actions_base_proto-speed.jar (1 source jar) failed: Worker process sent response with exit code: 1. java.lang.InternalError: Cannot find requested resource bundle for locale en_US at com.sun.tools.javac.util.JavacMessages.getBundles(JavacMessages.java:128) at com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:147) at com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:140) at com.sun.tools.javac.util.Log.localize(Log.java:788) at com.sun.tools.javac.util.Log.printLines(Log.java:586) at com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:170) at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:96) at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:90) at com.google.devtools.build.buildjar.javac.BlazeJavacMain.compile(BlazeJavacMain.java:103) at com.google.devtools.build.buildjar.SimpleJavaLibraryBuilder$1.invokeJavac(SimpleJavaLibraryBuilder.java:106) at com.google.devtools.build.buildjar.SimpleJavaLibraryBuilder.compileSources(SimpleJavaLibraryBuilder.java:49) at com.google.devtools.build.buildjar.SimpleJavaLibraryBuilder.compileJavaLibrary(SimpleJavaLibraryBuilder.java:109) at com.google.devtools.build.buildjar.SimpleJavaLibraryBuilder.run(SimpleJavaLibraryBuilder.java:121) at com.google.devtools.build.buildjar.BazelJavaBuilder.processRequest(BazelJavaBuilder.java:89) at com.google.devtools.build.buildjar.BazelJavaBuilder.runPersistentWorker(BazelJavaBuilder.java:66) at com.google.devtools.build.buildjar.BazelJavaBuilder.main(BazelJavaBuilder.java:44) Caused by: java.util.MissingResourceException: Can't find bundle for base name com.google.errorprone.errors, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1573) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396) at java.util.ResourceBundle.getBundle(ResourceBundle.java:854) at com.sun.tools.javac.util.JavacMessages.lambda$add$0(JavacMessages.java:106) at com.sun.tools.javac.util.JavacMessages.getBundles(JavacMessages.java:125) ... 15 more Target //src:bazel failed to build INFO: Elapsed time: 94.419s, Critical Path: 66.08s ERROR: Could not build Bazel Error: Failed to build bazel: child process exited abnormally Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port bazel failed VincentfordsPro:bin vince$
Change History (3)
comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)
Description: | modified (diff) |
---|---|
Owner: | set to RootFunction |
Port: | bazel added |
Status: | new → assigned |
comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Summary: | Google bazel build fails with: "Cannot find requested resource bundle for locale en_US" → bazel @0.5.2: "Cannot find requested resource bundle for locale en_US" |
There are other open bug reports about bazel, and an open pull request to update it to 0.9.0. Maybe updating it will fix this issue.
comment:3 Changed 7 years ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Please, in the future, uses wiki formatting. Also add the maintainer, in this case
port info --maintainer bazel
to theCc
field, and the port to thePort
field.