Skip to content

CodeQL configuration steps for Windows driver testing is giving an error #16837

@ghost

Description

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/cpp-all@0.12.1 codeql/suite-helpers@0.7.4 codeql/util@0.2.4
Package installation location: C:\Users\DTMLLUAdminUser.codeql\packages
Already installed codeql/cpp-all@0.12.1
Installed fresh codeql/suite-helpers@0.7.4
Already installed codeql/util@0.2.4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staleawaiting-responseThe CodeQL team is awaiting further input or clarification from the original reporter of this issue.questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions