envoy icon indicating copy to clipboard operation
envoy copied to clipboard

Error building envoy

Open hanyu-liu opened this issue 7 years ago • 3 comments

Build envoy by ./ci/run_envoy_docker.sh './ci/do_ci.sh bazel.release.server_only'

The error message is not very straight forward. From source/common/common/BUILD

genrule(
    name = "generate_version_number",
    srcs = ["//:VERSION"],
    outs = ["version_number.h"],
    cmd = """echo "#define BUILD_VERSION_NUMBER \\"$$(cat $<)\\"" >$@""",
)

[2019-03-11T23:15:06Z] + ./ci/run_envoy_docker.sh './ci/do_ci.sh bazel.release.server_only'

  | [2019-03-11T23:15:07Z] No remote cache bucket is set, skipping setup remote cache.   | [2019-03-11T23:15:07Z] ENVOY_SRCDIR=/source   | [2019-03-11T23:15:07Z] $TEST_TMPDIR defined: output root default is '/build/tmp' and max_idle_secs default is '15'.   | [2019-03-11T23:15:07Z] WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:   | [2019-03-11T23:15:07Z] /source/tools/bazel.rc   | [2019-03-11T23:15:07Z] Extracting Bazel installation...   | [2019-03-11T23:15:13Z] Starting local Bazel server and connecting to it...   | [2019-03-11T23:15:32Z] Cloning into '/build/envoy-filter-example'...   | [2019-03-11T23:15:33Z] remote: Enumerating objects: 38, done.   | remote: Counting objects: 100% (38/38), done.   | remote: Compressing objects: 100% (29/29), done.   | remote: Total 3722 (delta 36), reused 11 (delta 9), pack-reused 3684   | Receiving objects: 100% (3722/3722), 372.68 KiB | 0 bytes/s, done.   | Resolving deltas: 100% (3601/3601), done. 0% (0/3601)   | [2019-03-11T23:15:33Z] Checking connectivity... done.   | [2019-03-11T23:15:33Z] Note: checking out '6c0625cb4cc9a21df97cef2a1d065463f2ae81ae'.   | [2019-03-11T23:15:33Z]   | [2019-03-11T23:15:33Z] You are in 'detached HEAD' state. You can look around, make experimental   | [2019-03-11T23:15:33Z] changes and commit them, and you can discard any commits you make in this   | [2019-03-11T23:15:33Z] state without impacting any branches by performing another checkout.   | [2019-03-11T23:15:33Z]   | [2019-03-11T23:15:33Z] If you want to create a new branch to retain commits you create, you may   | [2019-03-11T23:15:33Z] do so (now or later) by using -b with the checkout command again. Example:   | [2019-03-11T23:15:33Z]   | [2019-03-11T23:15:33Z] git checkout -b   | [2019-03-11T23:15:33Z]   | [2019-03-11T23:15:33Z] HEAD is now at 6c0625c... integration: make test use 3-arg base class ctor (#69)   | [2019-03-11T23:15:33Z] building using 2 CPUs   | [2019-03-11T23:15:33Z] gcc/g++ toolchain configured   | [2019-03-11T23:15:33Z] bazel release build...   | [2019-03-11T23:15:33Z] Building...   | [2019-03-11T23:15:33Z] $TEST_TMPDIR defined: output root default is '/build/tmp' and max_idle_secs default is '15'.   | [2019-03-11T23:15:33Z] Starting local Bazel server and connecting to it...   | [2019-03-11T23:15:35Z] INFO: Writing tracer profile to '/build/tmp/_bazel_bazel/436badd4919a15958fa3800a4e21074a/command.profile'   | ERROR: /source/source/common/common/BUILD:247:1: no such package '': BUILD file not found on package path and referenced by '//source/common/common:generate_version_number'   | ERROR: Analysis of target '//source/exe:envoy-static' failed; build aborted: Analysis failed   | INFO: Elapsed time: 37.785s   | INFO: 0 processes.   | FAILED: Build did NOT complete successfully (185 packages loaded, 4914 targets
  | [2019-03-11T23:16:11Z] configured)   | [2019-03-11T23:16:11Z] 🚨 Error: The command exited with status 1

hanyu-liu avatar Mar 11 '19 23:03 hanyu-liu

The generated file seems should be #define BUILD_VERSION_NUMBER "1.10.0-dev"

hanyu-liu avatar Mar 12 '19 22:03 hanyu-liu

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 11 '19 23:04 stale[bot]

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

stale[bot] avatar Apr 19 '19 06:04 stale[bot]