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

AssertionError: No source files found in compile args #234

Open
sthornington opened this issue Dec 9, 2024 · 0 comments
Open

AssertionError: No source files found in compile args #234

sthornington opened this issue Dec 9, 2024 · 0 comments

Comments

@sthornington
Copy link

This resulted from the latest version of rules_rust adding a dependency on google protobuf (and transitively abseil therefore), as part of their work here bazelbuild/rules_rust#3037 (comment). Since we already have our own fork of bazel-compile-commands-extractor, I'm going to try to work around locally, but I filed this because the assertion asked me to.

Traceback (most recent call last):
  File "/scratch/simont/bazel_base/baabe75813de12a265f0541a9f99347d/execroot/__main__/bazel-out/k8-dbg/bin/refresh_compile_commands.runfiles/__main__/refresh_compile_commands.check_python_version.py", line 15, in <module>
    refresh_compile_commands.main()
  File "/scratch/simont/bazel_base/baabe75813de12a265f0541a9f99347d/execroot/__main__/bazel-out/k8-dbg/bin/refresh_compile_commands.py", line 1807, in main
    compile_command_entries.extend(_get_commands(target, flags))
  File "/scratch/simont/bazel_base/baabe75813de12a265f0541a9f99347d/execroot/__main__/bazel-out/k8-dbg/bin/refresh_compile_commands.py", line 1631, in _get_commands
    yield from _convert_compile_commands(parsed_aquery_output)
  File "/scratch/simont/bazel_base/baabe75813de12a265f0541a9f99347d/execroot/__main__/bazel-out/k8-dbg/bin/refresh_compile_commands.py", line 1486, in _convert_compile_commands
    for source_files, header_files, compile_command_args in outputs:
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 619, in result_iterator
    yield fs.pop().result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/scratch/simont/bazel_base/baabe75813de12a265f0541a9f99347d/execroot/__main__/bazel-out/k8-dbg/bin/refresh_compile_commands.py", line 1448, in _get_cpp_command_for_files
    source_files, header_files = _get_files(compile_action)
  File "/scratch/simont/bazel_base/baabe75813de12a265f0541a9f99347d/execroot/__main__/bazel-out/k8-dbg/bin/refresh_compile_commands.py", line 755, in _get_files
    assert (
AssertionError: No source files found in compile args: ['external/local_config_cc/cc_wrapper.sh', '-xc++-header', '-fsyntax-only', '-U_FORTIFY_SOURCE', '-fstack-protector', '-Wall', '-Wunused-but-set-parameter', '-Wno-free-nonheap-object', '-fno-omit-frame-pointer', '-g0', '-O2', '-D_FORTIFY_SOURCE=1', '-DNDEBUG', '-ffunction-sections', '-fdata-sections', '-std=c++14', '-MD', '-MF', 'bazel-out/k8-opt-exec-ST-a828a81199fe/bin/external/com_google_absl/absl/log/_objs/initialize/initialize.h.d', '-iquote', 'external/com_google_absl', '-iquote', 'bazel-out/k8-opt-exec-ST-a828a81199fe/bin/external/com_google_absl', '-g0', '-g0', '-Wall', '-Wextra', '-Wcast-qual', '-Wconversion-null', '-Wformat-security', '-Wmissing-declarations', '-Woverlength-strings', '-Wpointer-arith', '-Wundef', '-Wunused-local-typedefs', '-Wunused-result', '-Wvarargs', '-Wvla', '-Wwrite-strings', '-DNOMINMAX', '-Wno-builtin-macro-redefined', '-D__DATE__="redacted"', '-D__TIMESTAMP__="redacted"', '-D__TIME__="redacted"', '-c', 'external/com_google_absl/absl/log/initialize.h', '-o', 'bazel-out/k8-opt-exec-ST-a828a81199fe/bin/external/com_google_absl/absl/log/_objs/initialize/initialize.h.processed'].
Please file an issue with this information!
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

1 participant