Skip to content

run @hedron_compile_commands//:refresh_all fail when use rules_foreign_cc cmake #266

@MoFHeka

Description

@MoFHeka

INFO: Invocation ID: 016e1cd5-c232-40d3-9c1d-dcf15ee690c3
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 (0 packages loaded, 3516 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: 0.495s, Critical Path: 0.02s
INFO: 1 process: 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 "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/execroot/_main/bazel-out/k8-opt/bin/external/hedron_compile_commands~/refresh_all.runfiles/_main/../hedron_compile_commands~/refresh_all.check_python_version.py", line 15, in
refresh_all.main()
File "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/execroot/_main/bazel-out/k8-opt/bin/external/hedron_compile_commands~/refresh_all.runfiles/hedron_compile_commands~/refresh_all.py", line 1428, in main
compile_command_entries.extend(_get_commands(target, flags))
File "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/execroot/_main/bazel-out/k8-opt/bin/external/hedron_compile_commands~/refresh_all.runfiles/hedron_compile_commands~/refresh_all.py", line 1290, in _get_commands
yield from _convert_compile_commands(parsed_aquery_output)
File "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/execroot/_main/bazel-out/k8-opt/bin/external/hedron_compile_commands~/refresh_all.runfiles/hedron_compile_commands~/refresh_all.py", line 1170, in _convert_compile_commands
for source_files, header_files, compile_command_args in outputs:
File "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/external/rules_pythonpython~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 "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/external/rules_python
pythonpython_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 "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/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 "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/external/rules_pythonpython~python_3_11_x86_64-unknown-linux-gnu/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/external/rules_python
pythonpython_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 "/data/hejia/.cache/bazel/_bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/execroot/_main/bazel-out/k8-opt/bin/external/hedron_compile_commands
/refresh_all.runfiles/hedron_compile_commands~/refresh_all.py", line 1134, in _get_cpp_command_for_files
source_files, header_files = get_files(compile_action)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/hejia/.cache/bazel/bazel_hejia/e2b71cff7c4ec13b3f18239def0844f8/execroot/main/bazel-out/k8-opt/bin/external/hedron_compile_commands~/refresh_all.runfiles/hedron_compile_commands~/refresh_all.py", line 638, 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_extensionlocal_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++17', '-MD', '-MF', 'bazel-out/k8-opt/bin/external/boost.regex/objs/boost.regex/cregex.h.d', '-iquote', 'external/boost.regex~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.regex~', '-iquote', 'external/boost.assert~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.assert~', '-iquote', 'external/boost.config~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.config~', '-iquote', 'external/boost.concept_check~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.concept_check~', '-iquote', 'external/boost.preprocessor~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.preprocessor~', '-iquote', 'external/boost.static_assert~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.static_assert~', '-iquote', 'external/boost.type_traits~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.type_traits~', '-iquote', 'external/boost.container_hash~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.container_hash~', '-iquote', 'external/boost.describe~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.describe~', '-iquote', 'external/boost.mp11~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.mp11~', '-iquote', 'external/boost.core~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.core~', '-iquote', 'external/boost.throw_exception~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.throw_exception~', '-iquote', 'external/boost.integer~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.integer~', '-iquote', 'external/boost.mpl~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.mpl~', '-iquote', 'external/boost.predef~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.predef~', '-iquote', 'external/boost.utility~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.utility~', '-iquote', 'external/boost.io~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.io~', '-iquote', 'external/boost.smart_ptr~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.smart_ptr~', '-iquote', 'external/boost.move~', '-iquote', 'bazel-out/k8-opt/bin/external/boost.move~', '-isystem', 'external/boost.regex~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.regex~/include', '-isystem', 'external/boost.assert~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.assert~/include', '-isystem', 'external/boost.config~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.config~/include', '-isystem', 'external/boost.concept_check~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.concept_check~/include', '-isystem', 'external/boost.preprocessor~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.preprocessor~/include', '-isystem', 'external/boost.static_assert~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.static_assert~/include', '-isystem', 'external/boost.type_traits~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.type_traits~/include', '-isystem', 'external/boost.container_hash~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.container_hash~/include', '-isystem', 'external/boost.describe~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.describe~/include', '-isystem', 'external/boost.mp11~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.mp11~/include', '-isystem', 'external/boost.core~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.core~/include', '-isystem', 'external/boost.throw_exception~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.throw_exception~/include', '-isystem', 'external/boost.integer~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.integer~/include', '-isystem', 'external/boost.mpl~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.mpl~/include', '-isystem', 'external/boost.predef~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.predef~/include', '-isystem', 'external/boost.utility~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.utility~/include', '-isystem', 'external/boost.io~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.io~/include', '-isystem', 'external/boost.smart_ptr~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.smart_ptr~/include', '-isystem', 'external/boost.move~/include', '-isystem', 'bazel-out/k8-opt/bin/external/boost.move~/include', '-O3', '-std=c++23', '-c', 'external/boost.regex~/include/boost/cregex.hpp', '-o', 'bazel-out/k8-opt/bin/external/boost.regex~/objs/boost.regex/cregex.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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions