Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy
https://codechecker.readthedocs.io
Apache License 2.0
2.23k stars 374 forks source link

CodeChecker store error "Can't get attribute 'get_reports'" #3739

Open sandroandrade opened 2 years ago

sandroandrade commented 2 years ago

Describe the bug CodeChecker store fails with a Can't get attribute 'get_reports' error.

CodeChecker version 6.19.1 (on macOS M1)

To Reproduce Steps to reproduce the behaviour:

  1. Run log and analyze commands
  2. Start a local CodeChecker server
  3. Run CodeChecker store -n Default my_plists/

Expected behaviour Analysis data should be stored in CodeChecker web.

Desktop (please complete the following information)

Additional context During analysis stage I got some errors like:

clang: error: no such file or directory: 'x86_64'
clang: error: cannot specify -o when generating multiple output files
sandroandrade commented 1 year ago

Hey, guys. Any point of investigation for this? Still unable to analyze any project with CodeChecker master branch for this setup on macOS M1.

bruntib commented 1 year ago

Hi, Unfortunately I couldn't reproduce this problem yet. So do I understand correctly that this ticket is covering two issues? One during the analysis and another during report storage?

So far I haven't managed to reproduce these errors on a Mac machine. I assume that during analysis you're using the --ctu flag, right? Could you try executing analysis with the flag --ctu-collect instead of --ctu? This will do only the first phase of the CTU analysis, so to analysis will not be complete. But this command should create a directory named /ctu-dir. Could you, please, check what's the content of this directory? Thank you!

bruntib commented 1 year ago

The analysis error may be related to this issue: https://github.com/Ericsson/codechecker/issues/3847 This has been fixed by this PR: https://github.com/Ericsson/codechecker/pull/3854

Could you check if this is related and fixes your analysis error?

Thank you!