Open
Description
Environment
Ubuntu 22.04
Bazel 8.2.1
hedron_compile_commands f5fbd4c (same as #219)
Project
➜ httptest ls
BUILD MODULE.bazel main.cpp
BUILD
:
cc_binary(
name = "main",
srcs = ["main.cpp"],
deps = [
"@boost.asio",
"@boost.beast",
],
)
MODULE.bazel
:
bazel_dep(name = "boost.asio", version = "1.87.0.bcr.1")
bazel_dep(name = "boost.beast", version = "1.87.0.bcr.1")
# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
remote = "https://github.com/mikael-s-persson/bazel-compile-commands-extractor",
commit = "f5fbd4cee671d8d908f37c83abaf70fba5928fc7"
)
main.cpp
:
int main() { return 0; }
Error
➜ httptest bazel run @hedron_compile_commands//:refresh_all
WARNING: Build options --features and --host_features have changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
INFO: Analyzed target @@hedron_compile_commands+//:refresh_all (77 packages loaded, 3259 targets configured).
INFO: Found 1 target...
Target @@hedron_compile_commands+//:refresh_all up-to-date:
bazel-bin/external/hedron_compile_commands+/refresh_all
bazel-bin/external/hedron_compile_commands+/refresh_all.check_python_version.py
bazel-bin/external/hedron_compile_commands+/refresh_all.py
INFO: Elapsed time: 3.860s, Critical Path: 0.06s
INFO: 1 process: 9 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/external/hedron_compile_commands+/refresh_all
>>> Analyzing commands used in @//...
WARNING: Build options --features and --host_features have changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
Traceback (most recent call last):
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/execroot/_main/bazel-out/k8-fastbuild/bin/external/hedron_compile_commands+/refresh_all.runfiles/_main/../hedron_compile_commands+/refresh_all.check_python_version.py", line 15, in <module>
refresh_all.main()
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/execroot/_main/bazel-out/k8-fastbuild/bin/external/hedron_compile_commands+/refresh_all.runfiles/hedron_compile_commands+/refresh_all.py", line 1425, in main
compile_command_entries.extend(_get_commands(target, flags))
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/execroot/_main/bazel-out/k8-fastbuild/bin/external/hedron_compile_commands+/refresh_all.runfiles/hedron_compile_commands+/refresh_all.py", line 1287, in _get_commands
yield from _convert_compile_commands(parsed_aquery_output)
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/execroot/_main/bazel-out/k8-fastbuild/bin/external/hedron_compile_commands+/refresh_all.runfiles/hedron_compile_commands+/refresh_all.py", line 1167, in _convert_compile_commands
for source_files, header_files, compile_command_args in outputs:
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/concurrent/futures/_base.py", line 619, in result_iterator
yield _result_or_cancel(fs.pop())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/concurrent/futures/_base.py", line 317, in _result_or_cancel
return fut.result(timeout)
^^^^^^^^^^^^^^^^^^^
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/execroot/_main/bazel-out/k8-fastbuild/bin/external/hedron_compile_commands+/refresh_all.runfiles/hedron_compile_commands+/refresh_all.py", line 1131, in _get_cpp_command_for_files
source_files, header_files = _get_files(compile_action)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dev/.cache/bazel/_bazel_dev/77df868007044fab4d335dfedb7b5445/execroot/_main/bazel-out/k8-fastbuild/bin/external/hedron_compile_commands+/refresh_all.runfiles/hedron_compile_commands+/refresh_all.py", line 635, in _get_files
assert source_file_candidates, f"No source files found in compile args: {compile_action.arguments}.\nPlease file an issue with this information!"
^^^^^^^^^^^^^^^^^^^^^^
AssertionError: No source files found in compile args: ['external/rules_cc++cc_configure_extension+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', '-std=c++17', '-MD', '-MF', 'bazel-out/k8-fastbuild/bin/external/boost.beast+/_objs/boost.beast/1/error.h.d', '-DBOOST_THREAD_DONT_USE_ATOMIC', '-DBOOST_ALL_NO_LIB', '-DBOOST_ASIO_SEPARATE_COMPILATION', '-DBOOST_BEAST_SEPARATE_COMPILATION', '-iquote', 'external/boost.beast+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.beast+', '-iquote', 'external/boost.asio+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.asio+', '-iquote', 'external/boost.align+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.align+', '-iquote', 'external/boost.assert+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.assert+', '-iquote', 'external/boost.config+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.config+', '-iquote', 'external/boost.core+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.core+', '-iquote', 'external/boost.static_assert+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.static_assert+', '-iquote', 'external/boost.throw_exception+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.throw_exception+', '-iquote', 'external/boost.array+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.array+', '-iquote', 'external/boost.bind+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.bind+', '-iquote', 'external/boost.chrono+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.chrono+', '-iquote', 'external/boost.integer+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.integer+', '-iquote', 'external/boost.type_traits+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.type_traits+', '-iquote', 'external/boost.move+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.move+', '-iquote', 'external/boost.mpl+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.mpl+', '-iquote', 'external/boost.predef+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.predef+', '-iquote', 'external/boost.preprocessor+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.preprocessor+', '-iquote', 'external/boost.utility+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.utility+', '-iquote', 'external/boost.io+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.io+', '-iquote', 'external/boost.ratio+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.ratio+', '-iquote', 'external/boost.rational+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.rational+', '-iquote', 'external/boost.system+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.system+', '-iquote', 'external/boost.variant2+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.variant2+', '-iquote', 'external/boost.mp11+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.mp11+', '-iquote', 'external/boost.winapi+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.winapi+', '-iquote', 'external/boost.typeof+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.typeof+', '-iquote', 'external/boost.context+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.context+', '-iquote', 'external/boost.pool+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.pool+', '-iquote', 'external/boost.smart_ptr+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.smart_ptr+', '-iquote', 'external/boost.coroutine+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.coroutine+', '-iquote', 'external/boost.exception+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.exception+', '-iquote', 'external/boost.tuple+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.tuple+', '-iquote', 'external/boost.date_time+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.date_time+', '-iquote', 'external/boost.algorithm+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.algorithm+', '-iquote', 'external/boost.concept_check+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.concept_check+', '-iquote', 'external/boost.function+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.function+', '-iquote', 'external/boost.iterator+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.iterator+', '-iquote', 'external/boost.conversion+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.conversion+', '-iquote', 'external/boost.detail+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.detail+', '-iquote', 'external/boost.function_types+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.function_types+', '-iquote', 'external/boost.fusion+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.fusion+', '-iquote', 'external/boost.container_hash+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.container_hash+', '-iquote', 'external/boost.describe+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.describe+', '-iquote', 'external/boost.functional+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.functional+', '-iquote', 'external/boost.optional+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.optional+', '-iquote', 'external/boost.range+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.range+', '-iquote', 'external/boost.regex+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.regex+', '-iquote', 'external/boost.unordered+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.unordered+', '-iquote', 'external/boost.lexical_cast+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.lexical_cast+', '-iquote', 'external/boost.container+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.container+', '-iquote', 'external/boost.intrusive+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.intrusive+', '-iquote', 'external/boost.numeric_conversion+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.numeric_conversion+', '-iquote', 'external/boost.tokenizer+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.tokenizer+', '-iquote', 'external/boringssl+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boringssl+', '-iquote', 'external/boost.endian+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.endian+', '-iquote', 'external/boost.logic+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.logic+', '-iquote', 'external/boost.static_string+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.static_string+', '-iquote', 'external/boost.type_index+', '-iquote', 'bazel-out/k8-fastbuild/bin/external/boost.type_index+', '-isystem', 'external/boost.beast+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.beast+/include', '-isystem', 'external/boost.asio+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.asio+/include', '-isystem', 'external/boost.align+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.align+/include', '-isystem', 'external/boost.assert+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.assert+/include', '-isystem', 'external/boost.config+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.config+/include', '-isystem', 'external/boost.core+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.core+/include', '-isystem', 'external/boost.static_assert+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.static_assert+/include', '-isystem', 'external/boost.throw_exception+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.throw_exception+/include', '-isystem', 'external/boost.array+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.array+/include', '-isystem', 'external/boost.bind+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.bind+/include', '-isystem', 'external/boost.chrono+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.chrono+/include', '-isystem', 'external/boost.integer+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.integer+/include', '-isystem', 'external/boost.type_traits+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.type_traits+/include', '-isystem', 'external/boost.move+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.move+/include', '-isystem', 'external/boost.mpl+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.mpl+/include', '-isystem', 'external/boost.predef+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.predef+/include', '-isystem', 'external/boost.preprocessor+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.preprocessor+/include', '-isystem', 'external/boost.utility+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.utility+/include', '-isystem', 'external/boost.io+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.io+/include', '-isystem', 'external/boost.ratio+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.ratio+/include', '-isystem', 'external/boost.rational+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.rational+/include', '-isystem', 'external/boost.system+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.system+/include', '-isystem', 'external/boost.variant2+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.variant2+/include', '-isystem', 'external/boost.mp11+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.mp11+/include', '-isystem', 'external/boost.winapi+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.winapi+/include', '-isystem', 'external/boost.typeof+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.typeof+/include', '-isystem', 'external/boost.context+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.context+/include', '-isystem', 'external/boost.pool+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.pool+/include', '-isystem', 'external/boost.smart_ptr+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.smart_ptr+/include', '-isystem', 'external/boost.coroutine+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.coroutine+/include', '-isystem', 'external/boost.exception+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.exception+/include', '-isystem', 'external/boost.tuple+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.tuple+/include', '-isystem', 'external/boost.date_time+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.date_time+/include', '-isystem', 'external/boost.algorithm+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.algorithm+/include', '-isystem', 'external/boost.concept_check+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.concept_check+/include', '-isystem', 'external/boost.function+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.function+/include', '-isystem', 'external/boost.iterator+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.iterator+/include', '-isystem', 'external/boost.conversion+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.conversion+/include', '-isystem', 'external/boost.detail+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.detail+/include', '-isystem', 'external/boost.function_types+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.function_types+/include', '-isystem', 'external/boost.fusion+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.fusion+/include', '-isystem', 'external/boost.container_hash+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.container_hash+/include', '-isystem', 'external/boost.describe+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.describe+/include', '-isystem', 'external/boost.functional+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.functional+/include', '-isystem', 'external/boost.optional+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.optional+/include', '-isystem', 'external/boost.range+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.range+/include', '-isystem', 'external/boost.regex+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.regex+/include', '-isystem', 'external/boost.unordered+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.unordered+/include', '-isystem', 'external/boost.lexical_cast+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.lexical_cast+/include', '-isystem', 'external/boost.container+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.container+/include', '-isystem', 'external/boost.intrusive+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.intrusive+/include', '-isystem', 'external/boost.numeric_conversion+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.numeric_conversion+/include', '-isystem', 'external/boost.tokenizer+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.tokenizer+/include', '-isystem', 'external/boringssl+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boringssl+/include', '-isystem', 'external/boost.endian+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.endian+/include', '-isystem', 'external/boost.logic+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.logic+/include', '-isystem', 'external/boost.static_string+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.static_string+/include', '-isystem', 'external/boost.type_index+/include', '-isystem', 'bazel-out/k8-fastbuild/bin/external/boost.type_index+/include', '-O0', '-g', '-std=c++20', '-c', 'external/boost.beast+/include/boost/beast/_experimental/test/impl/error.ipp', '-o', 'bazel-out/k8-fastbuild/bin/external/boost.beast+/_objs/boost.beast/1/error.h.processed', '-Wno-builtin-macro-redefined', '-D__DATE__="redacted"', '-D__TIMESTAMP__="redacted"', '-D__TIME__="redacted"'].
Please file an issue with this information!
Metadata
Metadata
Assignees
Labels
No labels