Skip to content

All compilation commands skipped #3906

Closed Answered by bruntib
d0rata asked this question in Q&A
May 11, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

This compile_commands.json.txt contains compiler invocations that do both preprocessing and compilation. CodeCompass skips the build actions that are related to preprocessing. For example the usage of -MP flag indicates that these build actions are controlling some preprocessing actions.

However, the core problem is that you're probably using make >= 4.3 version during CodeChecker log command. This contains such a setting by default (see the release notes https://lists.gnu.org/archive/html/info-gnu/2020-01/msg00004.html):

* GNU make will now use posix_spawn() on systems where it is available.
  If you prefer to use fork/exec even on systems where posix_spawn() is
  present, you can use th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bruntib
Comment options

Answer selected by d0rata
@d0rata
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants