Closed
Bug 1635742
Opened 5 years ago
Closed 5 years ago
`./mach static-analysis check --checks="-*, mozilla-can-run-script" path/to/SomeFile.cpp` fails
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mbrodesser, Unassigned)
References
(Blocks 1 open bug)
Details
$ ./mach static-analysis check --checks="-*, mozilla-can-run-script" layout/generic/nsFrameSelection.cpp
Looks like a clang compilation database has not been created yet, creating it now...
0:00.71 /home/mirko/src/firefox/gecko/obj-x86_64-pc-linux-gnu-debug/_virtualenvs/init/bin/python /home/mirko/src/firefox/gecko/obj-x86_64-pc-linux-gnu-debug/config.status --backend CompileDB
Error running mach:
['static-analysis', 'check', '--checks=-*, mozilla-can-run-script', 'layout/generic/nsFrameSelection.cpp']
[...]
The details of the failure are as follows:
OSError: [Errno 2] No such file or directory
File "/home/mirko/src/firefox/gecko/python/mozbuild/mozbuild/code-analysis/mach_commands.py", line 248, in check
rc = self._build_compile_db(verbose=verbose)
File "/home/mirko/src/firefox/gecko/python/mozbuild/mozbuild/code-analysis/mach_commands.py", line 1896, in _build_compile_db
rc = builder.build_backend(['CompileDB'], verbose=verbose)
File "/home/mirko/src/firefox/gecko/python/mozbuild/mozbuild/build_commands.py", line 230, in build_backend
ensure_exit_code=False)
File "/home/mirko/src/firefox/gecko/python/mozbuild/mozbuild/base.py", line 822, in _run_command_in_objdir
return self.run_process(cwd=self.topobjdir, **args)
File "/home/mirko/src/firefox/gecko/python/mach/mach/mixin/process.py", line 119, in run_process
proc = subprocess.Popen(args, cwd=cwd, env=use_env)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Component: General → Source Code Analysis
Comment 2•5 years ago
|
||
This has been fixed, it was fallout of the migration to python3 and the fact that the virtualenv for python2 was not automatically set.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•