deepflowio/deepflow

[BUG] building agent can't find the file [src/flow_generator/protocol_logs/rpc/brpc.proto.rs]

Opened this issue · 1 comments

Search before asking

  • I had searched in the issues and found no similar feature requirement.

DeepFlow Component

Agent

What you expected to happen

使用 docker 编译 agent的时候出现报错无法找到文件

Caused by:
  process didn't exit successfully: `/deepflow/agent/target/debug/build/deepflow-agent-38c8038ea4af6954/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-env=AGENT_NAME=deepflow-agent-ce
  cargo:rustc-env=BRANCH=beagle-dev

  cargo:rustc-env=COMPILE_TIME=2024-06-05 06:32:57
  cargo:rustc-env=COMMIT_ID=f4c8fd627811c43a7fbc9a2d4514db1038131f99

  cargo:rustc-env=REV_COUNT=10447

  cargo:rustc-env=RUSTC_VERSION=rustc 1.77.1 (7cf61ebde 2024-03-27)

  cargo:rerun-if-changed=./src/plugin/WasmPluginApi.proto
  cargo:rerun-if-changed=./src/plugin
  cargo:rerun-if-changed=src/flow_generator/protocol_logs/mq/PulsarApi.proto
  cargo:rerun-if-changed=src/flow_generator/protocol_logs/mq
  cargo:rerun-if-changed=src/flow_generator/protocol_logs/rpc/brpc/baidu_rpc_meta.proto
  cargo:rerun-if-changed=src/flow_generator/protocol_logs/rpc

  --- stderr
  make[1]: *** No rule to make target `clean'.  Stop.
  make: *** [clean] Error 2

  thread 'main' panicked at build.rs:94:9:
  compile libtrace.a error!
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  Error: file `src/flow_generator/protocol_logs/rpc/brpc.proto.rs` does not exist
warning: build failed, waiting for other jobs to finish...

检查发现缺失改路径下文件 src/flow_generator/protocol_logs/rpc/brpc.proto.rs
查看了其他分支与版本发现一样没有该文件
能否提供一下此文件?或者去除 build.rs下的校验?

How to reproduce

使用 docker 编译

最简单的方法是使用我们构建好的编译环境:

git clone --recursive https://github.com/deepflowio/deepflow.git 
cd deepflow 
docker run --privileged --rm -it -v \
    $(pwd):/deepflow -v ~/.cargo:/usr/local/cargo hub.deepflow.yunshan.net/public/rust-build bash -c \
    "cd /deepflow/agent && cargo build"

# binary file directory: ./agent/target/debug/deepflow-agent

DeepFlow version

No response

DeepFlow agent list

No response

Kubernetes CNI

No response

Operation-System/Kernel version

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Hello, could you please refer to the section on compilation in this article: https://mp.weixin.qq.com/s/-jWYq2rTRaTueuN0sAb3lA? If the issue persists, kindly provide a detailed account of the steps you followed.