github / github/codeql-cli-binaries
No supported build system detected.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 1k
- Fork
- 184
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi I want to run codeQL on some C/C++ source files. I am getting the following errors when running ```./codeql database create mydb --language=cpp```
```
Initializing database at /home/nimashiri/SATS/codeql-linux64/codeql/mydb.
Running build command: [/home/nimashiri/SATS/codeql-linux64/codeql/cpp/tools/autobuild.sh]
[2023-02-04 19:51:58] [build-stderr] + TOOLS_DIR=/home/nimashiri/SATS/codeql-linux64/codeql/cpp/tools
[2023-02-04 19:51:58] [build-stderr] + /home/nimashiri/SATS/codeql-linux64/codeql/cpp/tools/detect_source_root
[2023-02-04 19:51:58] [build-stdout] detect_source_root: Build will be attempted from '.'
[2023-02-04 19:51:58] [build-stdout] even though no build system was found there.
[2023-02-04 19:51:58] [build-stderr] + '[' -L _lgtm_detected_source_root ']'
[2023-02-04 19:51:58] [build-stderr] ++ readlink _lgtm_detected_source_root
[2023-02-04 19:51:58] [build-stderr] + cd .
[2023-02-04 19:51:58] [build-stderr] + export CXXFLAGS=-fpermissive
[2023-02-04 19:51:58] [build-stderr] + CXXFLAGS=-fpermissive
[2023-02-04 19:51:58] [build-stderr] + configure_prefix_opt=
[2023-02-04 19:51:58] [build-stderr] + '[' -f configure.ac ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f configure.in ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f CMakeLists.txt ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f meson.build ']'
[2023-02-04 19:51:58] [build-stderr] + try_configure
[2023-02-04 19:51:58] [build-stderr] + build_dir=.
[2023-02-04 19:51:58] [build-stderr] + root_dir=.
[2023-02-04 19:51:58] [build-stderr] + grep -q 'AC_MSG_.* configure in a separate.* directory' configure.in configure.ac
[2023-02-04 19:51:58] [build-stderr] + for configure in configure configure.gnu
[2023-02-04 19:51:58] [build-stderr] + '[' -x configure ']'
[2023-02-04 19:51:58] [build-stderr] + for configure in configure configure.gnu
[2023-02-04 19:51:58] [build-stderr] + '[' -x configure.gnu ']'
[2023-02-04 19:51:58] [build-stderr] + rm -rf _lgtm_build_dir
[2023-02-04 19:51:58] [build-stderr] + for bootstrap in bootstrap.sh bootstrap autogen.sh
[2023-02-04 19:51:58] [build-stderr] + '[' -x bootstrap.sh ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f bootstrap.sh ']'
[2023-02-04 19:51:58] [build-stderr] + for bootstrap in bootstrap.sh bootstrap autogen.sh
[2023-02-04 19:51:58] [build-stderr] + '[' -x bootstrap ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f bootstrap ']'
[2023-02-04 19:51:58] [build-stderr] + for bootstrap in bootstrap.sh bootstrap autogen.sh
[2023-02-04 19:51:58] [build-stderr] + '[' -x autogen.sh ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f autogen.sh ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f wscript ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f Kbuild ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f configure.ac ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f configure.in ']'
[2023-02-04 19:51:58] [build-stderr] ++ echo './*.pro'
[2023-02-04 19:51:58] [build-stderr] + '[' './*.pro' '!=' './*.pro' ']'
[2023-02-04 19:51:58] [build-stderr] + exit 0
[2023-02-04 19:51:58] [build-stderr] + export VERBOSE=1
[2023-02-04 19:51:58] [build-stderr] + VERBOSE=1
[2023-02-04 19:51:58] [build-stderr] + '[' -L _lgtm_detected_source_root ']'
[2023-02-04 19:51:58] [build-stderr] ++ readlink _lgtm_detected_source_root
[2023-02-04 19:51:58] [build-stderr] + cd .
[2023-02-04 19:51:58] [build-stderr] + '[' -d _lgtm_build_dir ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f SConstruct ']'
[2023-02-04 19:51:58] [build-stdout] Semmle autobuild: no supported build system detected.
[2023-02-04 19:51:58] [build-stderr] + '[' -f wscript ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f Makefile ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f makefile ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f GNUmakefile ']'
[2023-02-04 19:51:58] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/home/nimashiri/SATS/codeql-linux64/codeql/tools/linux64/preload_tracer, /home/nimashiri/SATS/codeql-linux64/codeql/cpp/tools/autobuild.sh])
[2023-02-04 19:51:58] [build-stderr] + '[' -f build.ninja ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -d ../_lgtm_build_dir ']'
[2023-02-04 19:51:58] [build-stderr] + for f in build build.sh
[2023-02-04 19:51:58] [build-stderr] + '[' -x build ']'
[2023-02-04 19:51:58] [build-stderr] + for f in build build.sh
[2023-02-04 19:51:58] [build-stderr] + '[' -x build.sh ']'
[2023-02-04 19:51:58] [build-stderr] + '[' -f setup.py ']'
[2023-02-04 19:51:58] [build-stderr] + echo 'Semmle autobuild: no supported build system detected.'
[2023-02-04 19:51:58] [build-stderr] + exit 1
A fatal error occurred: Exit status 1 from command: [/home/nimashiri/SATS/codeql-linux64/codeql/cpp/tools/autobuild.sh]
```
I am running on conda env.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
The report names cpp/tools/autobuild.sh and its detect_source_root step; start by reproducing the database creation command against the reported C/C++ source tree. Compare the tree's build entry point with the build-system checks shown in the log. Done means the command can create a database for this project, or the unsupported-build limitation is clearly established.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, cpp, shell
- Ambito
- build-system, devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100