CodeQL configuration steps for Windows driver testing is giving an error #16837
Labels
awaiting-response
The CodeQL team is awaiting further input or clarification from the original reporter of this issue.
question
Further information is requested
I am trying to configure the CodeQL for WHQL testing, followed the steps mentioned in the link:
static-tools-and-codeql
I have ended up with below error.
C:\codeql-home\codeql>codeql --version
CodeQL command-line toolchain release 2.6.3.
Copyright (C) 2019-2021 GitHub, Inc.
Unpacked in: C:\codeql-home\codeql
Analysis results depend critically on separately distributed query and
extractor modules. To list modules that are visible to the toolchain,
use 'codeql resolve qlpacks' and 'codeql resolve languages'.
C:\codeql-home\codeql>*codeql pack install ..\Windows-Driver-Developer-Supplemental-Tools\src*
Dependencies resolved. Installing packages...
Install location: C:\Users\admin.codeql\packages
{
"packs" : [
{
"name" : "codeql/cpp-all",
"version" : "0.12.1",
"library" : true,
"result" : "INSTALLED"
},
{
"name" : "codeql/dataflow",
"version" : "0.1.4",
"library" : true,
"result" : "INSTALLED"
},
{
"name" : "codeql/ssa",
"version" : "0.2.4",
"library" : true,
"result" : "INSTALLED"
},
{
"name" : "codeql/util",
"version" : "0.2.4",
"library" : true,
"result" : "INSTALLED"
},
{
"name" : "codeql/typetracking",
"version" : "0.2.4",
"library" : true,
"result" : "INSTALLED"
},
{
"name" : "codeql/rangeanalysis",
"version" : "0.0.3",
"library" : true,
"result" : "INSTALLED"
},
{
"name" : "codeql/tutorial",
"version" : "0.2.4",
"library" : true,
"result" : "INSTALLED"
}
]
}
C:\codeql-home\codeql>codeql database analyze C:\codeql-home\databases\Database --format=sarifv2.1.0 --output=C:\codeql-home\USBDriverProjectResults-mustfix.sarif C:\codeql-home\Windows-Driver-Developer-Supplemental-Tools\suites\windows_driver_mustfix.qls --download
{
"packs" : [
{
"name" : "codeql/cpp-queries",
"version" : "0.9.0",
"library" : false,
"result" : "INSTALLED"
},
{
"name" : "microsoft/windows-drivers",
"version" : "1.1.0",
"library" : false,
"result" : "INSTALLED"
}
]
}
Running queries.
ERROR: Referenced pack 'codeql/cpp-all' not found. (C:\Users\admin.codeql\packages\codeql\cpp-queries\0.9.0\qlpack.yml:1,1-1)
ERROR: Referenced pack 'codeql/suite-helpers' not found. (C:\Users\admin.codeql\packages\codeql\cpp-queries\0.9.0\qlpack.yml:1,1-1)
ERROR: Referenced pack 'codeql/util' not found. (C:\Users\admin.codeql\packages\codeql\cpp-queries\0.9.0\qlpack.yml:1,1-1)
A fatal error occurred: Could not resolve library path for C:\Users\admin.codeql\packages\codeql\cpp-queries\0.9.0
C:\codeql-home\codeql>codeql pack download codeql/[email protected] codeql/[email protected] codeql/[email protected]
Package installation location: C:\Users\DTMLLUAdminUser.codeql\packages
Already installed codeql/[email protected]
Installed fresh codeql/[email protected]
Already installed codeql/[email protected]
C:\codeql-home\codeql>codeql database analyze C:\codeql-home\databases\WAGUSBDatabase --format=sarifv2.1.0 --output=C:\codeql-home\WAGUSBDriverProjectResults-mustfix.sarif C:\codeql-home\Windows-Driver-Developer-Supplemental-Tools\suites\windows_driver_mustfix.qls --download
{
"packs" : [
{
"name" : "codeql/cpp-queries",
"version" : "0.9.0",
"library" : false,
"result" : "IGNORED"
},
{
"name" : "microsoft/windows-drivers",
"version" : "1.1.0",
"library" : false,
"result" : "IGNORED"
}
]
}
Running queries.
ERROR: Referenced pack 'codeql/cpp-all' not found. (C:\Users\DTMLLUAdminUser.codeql\packages\codeql\cpp-queries\0.9.0\qlpack.yml:1,1-1)
ERROR: Referenced pack 'codeql/suite-helpers' not found. (C:\Users\DTMLLUAdminUser.codeql\packages\codeql\cpp-queries\0.9.0\qlpack.yml:1,1-1)
ERROR: Referenced pack 'codeql/util' not found. (C:\Users\DTMLLUAdminUser.codeql\packages\codeql\cpp-queries\0.9.0\qlpack.yml:1,1-1)
A fatal error occurred: Could not resolve library path for C:\Users\DTMLLUAdminUser.codeql\packages\codeql\cpp-queries\0.9.0
Can anyone help me resolving this issue.
The text was updated successfully, but these errors were encountered: