Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building envoy #6257

Closed
hanyu-liu opened this issue Mar 11, 2019 · 3 comments
Closed

Error building envoy #6257

hanyu-liu opened this issue Mar 11, 2019 · 3 comments
Labels
question Questions that are neither investigations, bugs, nor enhancements stale stalebot believes this issue/PR has not been touched recently

Comments

@hanyu-liu
Copy link

hanyu-liu commented Mar 11, 2019

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

@mattklein123 mattklein123 added the question Questions that are neither investigations, bugs, nor enhancements label Mar 12, 2019
@hanyu-liu hanyu-liu reopened this Mar 12, 2019
@hanyu-liu
Copy link
Author

hanyu-liu commented Mar 12, 2019

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

@stale
Copy link

stale bot commented Apr 11, 2019

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 stale bot added the stale stalebot believes this issue/PR has not been touched recently label Apr 11, 2019
@stale
Copy link

stale bot commented Apr 19, 2019

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 stale bot closed this as completed Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions that are neither investigations, bugs, nor enhancements stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

No branches or pull requests

2 participants