bazel icon indicating copy to clipboard operation
bazel copied to clipboard

[bazel.build] Problem with /tutorials/cpp-use-cases

Open 241119 opened this issue 2 years ago • 1 comments

Page link:

https://bazel.build/tutorials/cpp-use-cases

Problem description (include actual vs expected text, if applicable):

While running coverity tool for build we get below error

BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 ---stderr--- Starting local Bazel server and connecting to it... ... still trying to connect to local Bazel server (3658049) after 23 seconds ... ... still trying to connect to local Bazel server (3658049) after 43 seconds ... ... still trying to connect to local Bazel server (3658049) after 63 seconds ... ... still trying to connect to local Bazel server (3658049) after 83 seconds ... ... still trying to connect to local Bazel server (3658049) after 103 seconds ... FATAL: couldn't connect to server (3658049) after 120 seconds. fatal errors encountered 08:04:06 soong bootstrap failed with: exit status 1

failed to build some targets (03:31 (mm:ss))

Where do you see this issue? (include link to specific section of the page, if applicable)

While running coverity tool for individual module on android

Any other information you'd like to share?

Detailed error log on console

[100% 28/28] analyzing Android.bp files and generating ninja file at out/soong/build.db845c.ninja FAILED: out/soong/build.db845c.ninja cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out /soong" --out "out" --soong_variables out/soong/soong.db845c.variables -o out/soong/build.db845c.ninja --bazel-mode --globListDir build --globFile out/soong/globs-build.ninja -t - l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.db845c.build Android.bp internal error: bazel command failed: exit status 37 ---command--- ./build/bazel/bin/bazel --output_base=/opt/samba/nxp79939/Android14/android/out/bazel/output cquery deps(@soong_injection//mixed_builds:buildroot, 2) --profile=/opt/samba/nxp79939/Android 14/android/out/bazel_metrics/cquery-buildroot_bazel_profile.gz --host_platform=@soong_injection//product_config_platforms:mixed_builds_product-userdebug_linux_x86_64 --ui_event_filters=-I NFO --noshow_progress --norun_validations --output=starlark --starlark:file=/opt/samba/nxp79939/Android14/android/out/soong/soong_injection/buildroot.cquery ---env--- HOME=/opt/samba/nxp79939/Android14/android/out/bazel/bazelhome PWD=/proc/self/cwd BUILD_DIR=/opt/samba/nxp79939/Android14/android/out/soong OUT_DIR=/opt/samba/nxp79939/Android14/android/out BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 ---stderr--- Starting local Bazel server and connecting to it... ... still trying to connect to local Bazel server (3658049) after 23 seconds ... ... still trying to connect to local Bazel server (3658049) after 43 seconds ... ... still trying to connect to local Bazel server (3658049) after 63 seconds ... ... still trying to connect to local Bazel server (3658049) after 83 seconds ... ... still trying to connect to local Bazel server (3658049) after 103 seconds ... FATAL: couldn't connect to server (3658049) after 120 seconds. fatal errors encountered 08:04:06 soong bootstrap failed with: exit status 1

failed to build some targets (03:31 (mm:ss))

241119 avatar Jul 31 '23 07:07 241119

Hi @241119, Could you please help us to reproduce the issue with minimal steps? Also, please let us know which OS and Bazel version you are using ?

Pavank1992 avatar Jul 31 '23 09:07 Pavank1992