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

Error building TensorFlow in Windows with Bazel 6.1.0: error from target //tensorflow:tf_python_api_gen_v2 , Argument list too long #17919

Closed
Bobarshad opened this issue Mar 29, 2023 · 1 comment
Labels

Comments

@Bobarshad
Copy link

Bobarshad commented Mar 29, 2023

Description of the bug:

I have this line in my .bazelrc but still getting this error. (regarding to issue #17068 )

.bazelrc

# Windows has a relatively short command line limit, which TF has begun to hit.
# See https://docs.bazel.build/versions/main/windows.html
build:windows --features=compiler_param_file --features=archive_param_file

Error in Windows:

ERROR: C:/workspace/tensorflow/BUILD:1636:19: Executing genrule //tensorflow:tf_python_api_gen_v2 [for tool] failed: (Exit 126): bash.exe failed: error executing command (from target //tensorflow:tf_python_api_gen_v2) 
  cd /d C:/tmp/hgi62d3r/execroot/org_tensorflow
  SET PATH=C:\tools\msys64\usr\bin;C:\tools\msys64\bin;C:\Windows;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0
  C:\tools\msys64\usr\bin\bash.exe bazel-out/x64_windows-opt-exec-A82A024B/bin/tensorflow/tf_python_api_gen_v2.genrule_script.sh
# Configuration: 1f6e0550cdefe8d442553635ac73902cd94905f87762da3c37903efca8370b03
# Execution platform: //tensorflow/tools/toolchains/win:rbe_windows_ltsc2019
bazel-out/x64_windows-opt-exec-A82A024B/bin/tensorflow/tf_python_api_gen_v2.genrule_script.sh: line 2: bazel-out/x64_windows-opt-exec-A82A024B/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.exe: Argument list too long

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Just getting this after changing Bazel 5.4.0 to Bazel 6.1.0

Which operating system are you running Bazel on?

Windows

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@Bobarshad
Copy link
Author

TF still not supporting Bazel 6.

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

No branches or pull requests

3 participants