Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 7 Install: WARNING: An illegal reflective access operation has occurred #6197

Closed
pauldelmusica opened this issue Sep 21, 2018 · 8 comments

Comments

@pauldelmusica
Copy link

pauldelmusica commented Sep 21, 2018

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\tensorflow-master>cd c:\bazel

c:\bazel>bazel-0.17.1-windows-x86_64.exe
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/C:/U
sers/me/_bazel_me/install/360a69cc0fef41d83a4dd948c0474ca5/_embedded_binaries/A-
server.jar) to field java.lang.String.value
WARNING: Please consider reporting this to the maintainers of com.google.protobu
f.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Ba
zel server using the command "bazel shutdown".
                                                          [bazel release 0.17.1]

Usage: bazel <command> <options> ...

Available commands:
  analyze-profile     Analyzes build profile data.
  aquery              Analyzes the given targets and queries the action graph.
  build               Builds the specified targets.
  canonicalize-flags  Canonicalizes a list of bazel options.
  clean               Removes output files and optionally stops the server.
  coverage            Generates code coverage report for specified test targets.

  cquery              Loads, analyzes, and queries the specified targets w/ conf
igurations.
  dump                Dumps the internal state of the bazel server process.
  fetch               Fetches external repositories that are prerequisites to th
e targets.
  help                Prints help for commands, or the index.
  info                Displays runtime info about the bazel server.
  license             Prints the license of this software.
  mobile-install      Installs targets to mobile devices.
  print_action        Prints the command line args for compiling a file.
  query               Executes a dependency graph query.
  run                 Runs the specified target.
  shutdown            Stops the bazel server.
  sync                Syncs all repositories specifed in the workspace file
  test                Builds and runs the specified test targets.
  version             Prints version information for bazel.

Getting more help:
  bazel help <command>
                   Prints help and options for <command>.
  bazel help startup_options
                   Options for the JVM hosting bazel.
  bazel help target-syntax
                   Explains the syntax for specifying targets.
  bazel help info-keys
                   Displays a list of keys used by the info command.

c:\bazel>
@cushon
Copy link
Contributor

cushon commented Sep 21, 2018

This is the same issue as #6164.

0.17.2 was recently released, and include fixes for some instances of this problem. Can you try updating to it?

@cushon cushon closed this as completed Sep 21, 2018
@pauldelmusica
Copy link
Author

pauldelmusica commented Sep 22, 2018 via email

@cushon
Copy link
Contributor

cushon commented Sep 22, 2018

Sorry, the fix I was thinking of was efdb3f6, which didn't make it into 0.17.2 It should be fixed at head, or in the next release.

Are the warnings causing anything to not work? They should be harmless (but annoying).

@pauldelmusica
Copy link
Author

pauldelmusica commented Sep 22, 2018 via email

@cushon
Copy link
Contributor

cushon commented Sep 22, 2018

Sorry, I'm not sure I understand: it looks like you successfully installed bazel, ran it, and it printed help text with some additional warning spam. What wasn't installed?

@pauldelmusica
Copy link
Author

pauldelmusica commented Sep 22, 2018 via email

@cushon
Copy link
Contributor

cushon commented Sep 22, 2018

bazel-0.17.2-windows-x86_64.exe is the bazel binary. The installation instructions suggest renaming the executable and moving it somewhere on your path: https://docs.bazel.build/versions/master/install-windows.html#getting-bazel

@pauldelmusica
Copy link
Author

pauldelmusica commented Sep 22, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants