github / github/codeql-cli-binaries

No supported build system detected.

未關閉
#158 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
CLI
主要語言
沒有語言資料
星號
1k
分支
184
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

開啟貢獻指南

研究方向

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.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
c, cpp, shell
領域
build-system, devtools
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。