Closed sofiaoreis closed 2 years ago
CodeQL needs to compile C/C++ source code in order to analyze it. The error message Semmle autobuild: no supported build system detected
is a little misleading. When looking at the output it looks like CodeQL detected a Makefile
and ran make
. Unfortunately make
failed with the message Configuration file ".config" not found!
. Most likely you need to run a "configure" step first.
The location of your home directory /Users
and the error message /bin/false: No such file or directory
suggest that you are using OSX. It may be hard to cross compile the Linux kernel on MacOS. Perhaps you could try using Docker (or a linux machine) instead.
Thanks for the tips!
Hi! I'm trying to create a database with codeql for C/C++, but it always returns the following error no matter what source root I give to the command.
Here is the output of running it on
torvalds/linux
:codeql database create database/ --language=cpp --source-root=linux
.What am I doing wrong? Thanks!