github / github/codeql-cli-binaries

No supported build system detected.

Abierto
#158 1 comentario 0 reacciones 0 asignados Ver en GitHub
CLI
Lenguaje dominante
Sin datos de lenguaje
Estrellas
1k
Forks
184
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
c, cpp, shell
Área
build-system, devtools
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.