Argument list too long error
See original GitHub issueEnvirment Info
Bazel plugin version: v2019.07.23.0.3 bazel version: 0.24.1 OS version: mac 10.14.4 Clion version: Clion 2019.1.4
Error message
Error:Cannot run program “/usr/local/bin/bazel” (in directory “project xxx”): error=7, Argument list too long
Bazel Console message
Syncing project: Sync (incremental)...
Updating VCS...
Running Bazel info...
Command: /usr/local/bin/bazel info --tool_tag=ijwb:CLion --curses=no --color=yes --progress_in_terminal_title=no --
Computing VCS working set...
Querying targets in project directories...
Command: /usr/local/bin/bazel query --tool_tag=ijwb:CLion --output=label_kind --keep_going attr("tags", "^((?!manual).)*$", //...:all - //bazel-bin/...:all - //bazel-genfiles/...:all - //bazel-out/...:all - //bazel-testlogs/...:all - //bazel-tensorflow/...:all - //.clwb/...:all) --
Sync targets from project view directories:
//third_party/toolchains/preconfig/win_1803/py36:python_headers
//third_party/toolchains/preconfig/win_1803/py36:numpy_headers
//third_party/toolchains/preconfig/win_1803/bazel_018:stl
//third_party/toolchains/preconfig/win_1803/bazel_018:malloc
//third_party/toolchains/preconfig/ubuntu16.04/tensorrt5.1:tensorrt
//third_party/toolchains/preconfig/ubuntu16.04/tensorrt5.1:tensorrt_headers
//third_party/toolchains/preconfig/ubuntu16.04/tensorrt5:tensorrt
//third_party/toolchains/preconfig/ubuntu16.04/tensorrt5:tensorrt_headers
//third_party/toolchains/preconfig/ubuntu16.04/py3:python_headers
//third_party/toolchains/preconfig/ubuntu16.04/py3:numpy_headers
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:libdevice_root
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cusparse
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cusolver
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cupti_headers
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cupti_headers_virtual
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cupti_dsos
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cudnn_header
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cudart_static
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cuda_driver
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cuda
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:curand
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cufft
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cudnn
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cudart
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cublas_headers
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cublas_headers_virtual
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cuda_headers
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cuda_headers_virtual
//third_party/toolchains/preconfig/ubuntu16.04/cuda10.0-cudnn7/cuda:cublas
//third_party/toolchains/preconfig/ubuntu16.04/clang:malloc
//third_party/toolchains/preconfig/ubuntu14.04/tensorrt5:tensorrt
//third_party/toolchains/preconfig/ubuntu14.04/tensorrt5:tensorrt_headers
//third_party/toolchains/preconfig/ubuntu14.04/py3:python_headers
//third_party/toolchains/preconfig/ubuntu14.04/py3:numpy_headers
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:libdevice_root
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cusparse
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cusolver
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cupti_headers
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cupti_headers_virtual
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cupti_dsos
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cudnn_header
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cudart_static
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cuda_driver
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cuda
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:curand
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cufft
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cudnn
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cudart
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cublas_headers
//third_party/toolchains/preconfig/ubuntu14.04/cuda10.0-cudnn7/cuda:cublas_headers_virtual
Plus 7801 more targets
Building blaze targets...
Command: /usr/local/bin/bazel build --tool_tag=ijwb:CLion --keep_going --build_event_binary_file=/var/folders/26/1y98zzm50l90ss8h_plr3nvm0000gn/T/intellij-bep-69d84afb-4868-4ef3-8580-a6e97d0a08d2 --nobuild_event_binary_file_path_conversion --curses=no --color=yes --progress_in_terminal_title=no --aspects=@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect --override_repository=intellij_aspect=/Users/xxx/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/191.7479.33/CLion.app.plugins/clwb/aspect --output_groups=intellij-info-cpp,intellij-info-generic,intellij-info-py,intellij-resolve-cpp,intellij-resolve-py -- //third_party/toolchains/preconfig/win_1803/py36:python_headers //third_party/toolchains/preconfig/win_1803/py36:numpy_headers //third_party/toolchains/preconfig/win_1803/bazel_018:stl //third_party/toolchains/preconfig/win_1803/bazel_018:malloc //third_party/toolchains/preconfig/ubuntu16.04/tensorrt5.1:tensorrt //third_party/toolchains/preconfi...
build invocation result: fatal_error
Sync finished
Timing summary:
BlazeInvocation: 4.1s, Prefetching: 0ms, Other: 0ms
Sync failed
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Argument list too long error for rm, cp, mv commands
No, rm has no such limit on the number of files it will process (other than that its argc cannot be larger than...
Read more >The “Argument List Too Long” Error in Linux Commands
When the number of files to be expanded as arguments is larger than the arguments buffer space, Bash fails to handle it. Note...
Read more >SOLUTION: /bin/rm: argument list too long - Linux Hint
The “Argument list too long” error does not come, for that the user can find out what the length of the command should...
Read more >(Resolved) – /bin/rm: Argument list too long - TecAdmin
If there are a large number of files in a single directory, Then the traditional rm command can not delete all files and...
Read more >kernel - "Argument list too long": How do I deal with it, without ...
I know why this happens: it is because there is a kernel limit on the amount of space for arguments to a command....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Good idea. At the moment we’re automatically splitting targets across multiple builds when it looks like we’d exceed ARG_MAX. That won’t affect performance too much given the level of caching in the bazel server.
It’s definitely a hack though – if we see users run into issues with that approach we’ll take a look at your suggestion.
@jin @brendandouglas @AlexeyGy The problem still exists in current plugin CLion version and is a critical blocker for my team and me. Are you sure the splitting works ? I am attaching my ARG_MAX settings just to be sure it’s okay.