Closed mramakrishnaprasad closed 2 years ago
cc @lizan
-- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0
This might be too old for 1.19, try use GCC 9.x or Clang 10.x
Thanks @lizan. Will try with the upgraded GCC version.
Its working with the upgraded gcc version. Thanks.
Title: Build error in external/com_google_cel_cpp/eval/public/containers/container_backed_map_impl.cc for v1.19.1 branch.
build command: bazel build -c opt --strip=always //source/exe:envoy
Description: I have cloned the envoy 1.19.1 release using the below command: git clone -b v1.19.1 https://github.com/envoyproxy/envoy
My environment is ubuntu 18.04.1. When I try to the build the code using the mentioned build command, I see the build failure which is as follows: 2021/11/23 04:34:34 Downloading https://releases.bazel.build/4.1.0/release/bazel-4.1.0-linux-x86_64... Extracting Bazel installation... Starting local Bazel server and connecting to it... DEBUG: /home/ubuntu/.cache/bazel/_bazel_ubuntu/201dace3fe891a3f02bfdb4cf508e497/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14: Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file. DEBUG: /home/ubuntu/.cache/bazel/_bazel_ubuntu/201dace3fe891a3f02bfdb4cf508e497/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14: Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file. DEBUG: /home/ubuntu/.cache/bazel/_bazel_ubuntu/201dace3fe891a3f02bfdb4cf508e497/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14: Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file. DEBUG: /home/ubuntu/.cache/bazel/_bazel_ubuntu/201dace3fe891a3f02bfdb4cf508e497/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14: Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file. DEBUG: /home/ubuntu/.cache/bazel/_bazel_ubuntu/201dace3fe891a3f02bfdb4cf508e497/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14: Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file. INFO: SHA256 (https://golang.org/dl/?mode=json&include=all) = 1c53e7c14eab06063ca7335859192fc63ad549b74c74473a218a69ca3f293231 INFO: Analyzed target //source/exe:envoy (766 packages loaded, 42811 targets configured). INFO: Found 1 target... INFO: From Executing genrule @com_lightstep_tracer_cpp//:generate_version_h: CMake Warning at CMakeLists.txt:74 (message): WITH_GRPC is not set; building without dynamic loading support.
-- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /tmp/tmp.5mdOTvfLjM -- Cache values BUILD_SHARED_LIBS:BOOL=ON BUILD_STATIC_LIBS:BOOL=ON CMAKE_BUILD_TYPE:STRING= CMAKE_INSTALL_PREFIX:PATH=/usr/local DEFAULT_SSL_ROOTS_PEM:STRING= HEADERS_ONLY:BOOL=ON WITH_CARES:BOOL=OFF WITH_DYNAMIC_LOAD:BOOL=ON WITH_GRPC:BOOL=OFF WITH_LIBEVENT:BOOL=OFF INFO: From Executing genrule @io_opentracing_cpp//:generate_version_h: -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- clang-tidy not found. -- Configuring done -- Generating done -- Build files have been written to: /tmp/tmp.Y5A9jFm44d -- Cache values BUILD_DYNAMIC_LOADING:BOOL=ON BUILD_MOCKTRACER:BOOL=OFF BUILD_SHARED_LIBS:BOOL=ON BUILD_STATIC_LIBS:BOOL=ON BUILD_TESTING:BOOL=OFF CLANG_TIDY_EXE:FILEPATH=CLANG_TIDY_EXE-NOTFOUND CMAKE_BUILD_TYPE:STRING= CMAKE_INSTALL_PREFIX:PATH=/usr/local ENABLE_LINTING:BOOL=ON INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/zlib/include [for host]:
INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/zlib/include:
INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/zlib/include:
INFO: From CcConfigureMakeRule external/envoy/bazel/foreign_cc/luajit/include/luajit-2.1:
INFO: From CcCmakeMakeRule external/envoy/bazel/foreign_cc/nghttp2/include:
INFO: From Compiling opencensus/trace/internal/local_span_store_impl.cc: external/io_opencensus_cpp/opencensus/trace/internal/local_span_store_impl.cc: In member function 'std::vector opencensus::trace::exporter::LocalSpanStoreImpl::GetLatencySampledSpans(const LatencyFilter&) const':
external/io_opencensus_cpp/opencensus/trace/internal/local_span_store_impl.cc:130:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (out.size() >= filter.max_spans_to_return) break;