envoy-filter-example icon indicating copy to clipboard operation
envoy-filter-example copied to clipboard

build fails for filter example - no such package

Open kjyoti opened this issue 6 years ago • 4 comments

I have tried the build according to the steps mentioned in the README. The build fails with the error below

/envoy-filter-example$ bazel build //:envoy Starting local Bazel server and connecting to it... ERROR: /home/jyoti/.cache/bazel/_bazel_jyoti/d7dbc3ad28d2496ca23a589bf2a3c01f/external/envoy/bazel/foreign_cc/BUILD:8:1: no such package '@com_github_gperftools_gperftools//': Traceback (most recent call last): File "/home/jyoti/.cache/bazel/_bazel_jyoti/d7dbc3ad28d2496ca23a589bf2a3c01f/external/bazel_tools/tools/build_defs/repo/http.bzl", line 55 patch(ctx) File "/home/jyoti/.cache/bazel/_bazel_jyoti/d7dbc3ad28d2496ca23a589bf2a3c01f/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 89, in patch fail(("Error applying patch command %...))) Error applying patch command ./autogen.sh: ./autogen.sh: 3: ./autogen.sh: autoreconf: not found and referenced by '@envoy//bazel/foreign_cc:gperftools_build' ERROR: Analysis of target '//:envoy' failed; build aborted: no such package '@com_github_gperftools_gperftools//': Traceback (most recent call last): File "/home/jyoti/.cache/bazel/_bazel_jyoti/d7dbc3ad28d2496ca23a589bf2a3c01f/external/bazel_tools/tools/build_defs/repo/http.bzl", line 55 patch(ctx) File "/home/jyoti/.cache/bazel/_bazel_jyoti/d7dbc3ad28d2496ca23a589bf2a3c01f/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 89, in patch fail(("Error applying patch command %...))) Error applying patch command ./autogen.sh: ./autogen.sh: 3: ./autogen.sh: autoreconf: not found INFO: Elapsed time: 25.181s INFO: 0 processes. FAILED: Build did NOT complete successfully (17 packages loaded, 149 targets configured)

Please help me resolve this error

kjyoti avatar Apr 21 '19 11:04 kjyoti

Also running into this error.

kuroneko25 avatar Apr 30 '19 19:04 kuroneko25

@kjyoti @kuroneko25 seems like you don't have autoreconf on your machine. Could you let us know the platform you use to build this project? Thanks!

dio avatar Jun 24 '19 07:06 dio

@kjyoti @kuroneko25 Make sure to install the required dependencies and check to see if the issue persists:

Ubuntu

sudo apt-get install libtool cmake automake autoconf make ninja-build curl unzip virtualenv

Mac OS

brew install coreutils wget cmake libtool go bazel automake ninja clang-format autoconf aspell

catalin-me avatar Mar 01 '20 11:03 catalin-me

@dio @catalin-me Is there any way to fix it on windows?

MOURYA00 avatar Apr 03 '20 04:04 MOURYA00