Skip to content

Instantly share code, notes, and snippets.

@matthijs
Created August 29, 2019 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthijs/dd74249b585e00abdef17f7ecfd3af11 to your computer and use it in GitHub Desktop.
Save matthijs/dd74249b585e00abdef17f7ecfd3af11 to your computer and use it in GitHub Desktop.
python error...
(venv) matthijs@monster % CodeChecker check --logfile compile_commands.json --output ../results
Traceback (most recent call last):
File "/home/matthijs/codechecker/build/CodeChecker/cc_bin/CodeChecker.py", line 111, in main
subcommands[subcommand])
File "/home/matthijs/codechecker/build/CodeChecker/cc_bin/CodeChecker.py", line 47, in add_subcommand
command_module.add_arguments_to_parser(sc_parser)
File "/home/matthijs/codechecker/build/CodeChecker/cc_bin/../lib/python2.7/codechecker_analyzer/cmd/check.py", line 324, in add_arguments_to_parser
if analyzer_types.is_ctu_capable(context):
File "/home/matthijs/codechecker/build/CodeChecker/lib/python2.7/codechecker_analyzer/analyzers/analyzer_types.py", line 36, in is_ctu_capable
return clangsa_cfg.ctu_capability.is_ctu_capable
File "/home/matthijs/codechecker/build/CodeChecker/lib/python2.7/codechecker_analyzer/analyzers/clangsa/ctu_autodetection.py", line 162, in is_ctu_capable
tool_path = self.mapping_tool_path
File "/home/matthijs/codechecker/build/CodeChecker/lib/python2.7/codechecker_analyzer/analyzers/clangsa/ctu_autodetection.py", line 112, in mapping_tool_path
tool_path, _ = clang_options.ctu_mapping(self.analyzer_version_info)
File "/home/matthijs/codechecker/build/CodeChecker/lib/python2.7/codechecker_analyzer/analyzers/clangsa/clang_options.py", line 78, in ctu_mapping
LOG.debug(
NameError: global name 'LOG' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment