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

[ray] [bazel] build failure, error --experimental_ui_deduplicate unrecognized #11237

Closed
2 tasks
acxz opened this issue Oct 6, 2020 · 10 comments · Fixed by #11238
Closed
2 tasks

[ray] [bazel] build failure, error --experimental_ui_deduplicate unrecognized #11237

acxz opened this issue Oct 6, 2020 · 10 comments · Fixed by #11238
Labels
docs An issue or change related to documentation good first issue Great starter issue for someone just starting to contribute to Ray P2 Important issue, but not time-critical

Comments

@acxz
Copy link
Contributor

acxz commented Oct 6, 2020

What is the problem?

When trying to build ray from source I am getting the following output:

Error
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Reading rc options for 'build' from /home/acxz/vcs/git/github/acxz/pkgbuilds/python-ray/src/ray-ray-1.0.0/.bazelrc:
'build' options: --enable_platform_specific_config --action_env=PATH --compilation_mode=opt --experimental_ui_deduplicate --per_file_copt=\.pb\.cc$@-w --per_file_copt=-\.(asm|S)$,external/.*@-w --per_file_copt=-\.(asm|S)$,external/com_github_grpc_grpc/.*@-DGRPC_BAZEL_BUILD --http_timeout_scaling=5.0 --verbose_failures
ERROR: --experimental_ui_deduplicate :: Unrecognized option: --experimental_ui_deduplicate
Traceback (most recent call last):
File "setup.py", line 450, in <module>
  setuptools.setup(
File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
  return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
  dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
  self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
  cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
  self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
  self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
  cmd_obj.run()
File "setup.py", line 443, in run
  return pip_run(self)
File "setup.py", line 352, in pip_run
  build(True, BUILD_JAVA)
File "setup.py", line 309, in build
  return bazel_invoke(
File "setup.py", line 195, in bazel_invoke
  result = invoker([cmd] + cmdline, *args, **kwargs)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
  raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bazel', 'build', '--verbose_failures', '--', '//:ray_pkg']' returned non-zero exit status 2.

Ray version and other system information (Python version, TensorFlow version, OS):
ray: 1.0.0
python: 3.8.5
gcc: 10.2.0
bazel: 3.5.0
os: Arch Linux

Reproduction (REQUIRED)

Please provide a script that can be run to reproduce the issue. The script should have no external library dependencies (i.e., use fake or mock data / environments):

If we cannot run your script, we cannot fix your issue.

  • I have verified my script runs in a clean environment and reproduces the issue.
  • I have verified the issue also occurs with the latest wheels.

The above does not apply since this is a build issue.

@acxz acxz added bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Oct 6, 2020
@acxz
Copy link
Contributor Author

acxz commented Oct 6, 2020

@acxz acxz changed the title [ray] Build failure when installing from source [ray] [bazel] build failure, error --experimental_ui_deduplicate unrecognized Oct 6, 2020
@rkooo567
Copy link
Contributor

rkooo567 commented Oct 6, 2020

I guess your bazel version is not correct? I am using bazel 3.2.0

@rkooo567 rkooo567 added question Just a question :) and removed bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Oct 6, 2020
@acxz
Copy link
Contributor Author

acxz commented Oct 6, 2020

Yep seems that in the later bazel releases --experimental_ui_deduplicate has been removed. Just made a PR to resolve it.

I would still consider this a bug.

@rkooo567
Copy link
Contributor

rkooo567 commented Oct 6, 2020

We explicitly said the supported version of bazel is just 3.2.0 in our code (

SUPPORTED_BAZEL = (3, 2, 0)
). We should probably improve our documentation or error handling, but I don't consider this a bug. Let me add a doc tag here.

@rkooo567 rkooo567 added fix-docs good first issue Great starter issue for someone just starting to contribute to Ray P2 Important issue, but not time-critical and removed question Just a question :) labels Oct 6, 2020
@rkooo567
Copy link
Contributor

rkooo567 commented Oct 6, 2020

Task: Specify a bazel veresion in our doc for development.

@acxz
Copy link
Contributor Author

acxz commented Oct 6, 2020

I see, in any case I dont think my PR hurts, if anything it allows Ray to build on later bazel versions as well which I am sure will eventually be needed.

@rkooo567
Copy link
Contributor

rkooo567 commented Oct 6, 2020

Oh, I didn't realize you pushed a PR! Thanks for doing that!

One concern I have is that when people use 3.2.0, this flag will be on again. Do you know what the flag is exactly about?

cc @simon-mo @mehrdadn Did you guys know why we added this flag in the first place? It seems to be off by default in bazel >= 3.5

@rkooo567
Copy link
Contributor

rkooo567 commented Oct 6, 2020

I'd love to merge the PR, but let me verify this is fine from people who are familiar with our bazel config! Thanks for the contribution again :)

@mehrdadn
Copy link
Contributor

mehrdadn commented Oct 6, 2020

@rkooo567 I think I added it for cleaning up the Bazel output. But you can remove it. It seems to have been removed in bazelbuild/bazel@a6935cd

@rkooo567
Copy link
Contributor

rkooo567 commented Oct 6, 2020

Awesome! @acxz we will merge the PR shortly. Thanks again for the contribution!

@bveeramani bveeramani added the docs An issue or change related to documentation label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs An issue or change related to documentation good first issue Great starter issue for someone just starting to contribute to Ray P2 Important issue, but not time-critical
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants