github / github/codeql-cli-binaries

Some files missing after database creation

Đang mở
#14 12 bình luận 0 reaction 0 người được giao Xem trên GitHub
CLI
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1k
Fork
184
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

While trying to create a database for the [fuchsia operating system](https://fuchsia.dev), it seems to leave out some of the files that were built.

Note that the steps to build fuchsia and a codeql database require ~200GB of disk space. I just want to get a better understanding of why it might be skipping some of the files.

----------

Steps to reproduce:

1. Follow steps on the fuchsia site to [download an build fuchsia](https://fuchsia.dev/fuchsia-src/getting_started)
1. Inside the fuchsia directory, run: `fx set workstation.x64 --with-base //bundles:kitchen_sink --no-goma `
1. Build the database: `codeql database create fuchsia-ql --language=cpp --source-root=${FUCHSIA_DIR} --command="./scripts/fx clean-build"`
1. List the files with a script similar to [this one](https://github.com/github/codeql-cli-binaries/issues/13#issue-554520733)
1. List all the fuchsia cc, ignoring the third_party files: `find ${FUCHSIA_DIR} -iname "*.cc" | grep -v "third_party"`
1. Compare the files in the database with the cc files. Some of the files are missing.

[This is the list](https://www.irccloud.com/pastebin/raw/6mk596gp) that I have in my system. In particular, files like `/zircon/tools/zbi/zbi.cc` should always be built.

To get a list of all the compiled files in fuchsia, run: `fx compdb` and then look at `out/default/compile_commands.json` and `out/default.zircon/compile_commands.json`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện cơ sở dữ liệu bằng các bước build Fuchsia và lệnh `codeql database create` trong issue. So sánh nội dung cơ sở dữ liệu với `out/default/compile_commands.json`, `out/default.zircon/compile_commands.json` và kết quả của `find`, đồng thời kiểm tra trường hợp `/zircon/tools/zbi/zbi.cc` được báo cáo. Được xem là hoàn tất khi xác định được lý do các tệp đã biên dịch bị bỏ qua và ghi lại hoặc sửa hành vi trích xuất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.