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

CodeChecker doesn't support relative compiler paths #4340

Open
Discookie opened this issue Sep 12, 2024 · 0 comments
Open

CodeChecker doesn't support relative compiler paths #4340

Discookie opened this issue Sep 12, 2024 · 0 comments

Comments

@Discookie
Copy link
Contributor

Describe the bug
Having relative ../ compilers in the commands of the compilation database cannot be parsed by CodeChecker.

[ERROR 2024-09-08 20:59] - Failed to get and parse version of: ../../third_party/llvm-build/Release+Asserts/bin/clang++
[ERROR 2024-09-08 20:59] - [Errno 2] No such file or directory: '../../third_party/llvm-build/Release+Asserts/bin/clang++'

Ericsson/CodecheckerVSCodePlugin#155

CodeChecker version
6.24.0

To Reproduce
The Chromium repository's generate_compdb.py generates some entries like this.

Additional context
Example compdb entry:

  {
    "directory": "/[...]/src/out/frame_debug_apollo_arm64",
    "command": "../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/chrome/updater/base/setup.o.d [...]",
    "file": "../../chrome/updater/mac/setup/setup.mm",
    "output": "obj/chrome/updater/base/setup.o"
  },

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