Skip to content

Add CI setup that builds and tests Nighthawk using gcc #382

@qqustc

Description

@qqustc

error msg:

/external/envoy/test/mocks/config/BUILD:11:1: C++ compilation of rule '@envoy//test/mocks/config:config_mocks' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ...

Use --sandbox_debug to see verbose messages from the sandbox
In file included from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/upstream/_virtual_includes/cluster_manager_interface/envoy/upstream/cluster_manager.h:15,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/server/_virtual_includes/factory_context_interface/envoy/server/factory_context.h:26,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/server/_virtual_includes/filter_config_interface/envoy/server/filter_config.h:10,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/config/_virtual_includes/config_provider_manager_interface/envoy/config/config_provider_manager.h:6,
                 from external/envoy/test/mocks/config/mocks.h:3,
                 from external/envoy/test/mocks/config/mocks.cc:1:
bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/config/_virtual_includes/grpc_mux_interface/envoy/config/grpc_mux.h:75:16: error: 'virtual void Envoy::Config::GrpcMux::pause(std::vector<std::__cxx11::basic_string<char> >)' was hidden [-Werror=overloaded-virtual]
   75 |   virtual void pause(const std::vector<std::string> type_urls) PURE;
      |                ^~~~~
In file included from external/com_google_googletest/googlemock/include/gmock/gmock.h:61,
                 from external/envoy/test/test_common/utility.h:35,
                 from external/envoy/test/mocks/config/mocks.h:15,
                 from external/envoy/test/mocks/config/mocks.cc:1:
external/envoy/test/mocks/config/mocks.h:74:21: error:   by 'virtual testing::internal::Function<void(const std::__cxx11::basic_string<char>&)>::Result Envoy::Config::MockGrpcMux::pause(testing::internal::ElemFromListImpl<const std::__cxx11::basic_string<char>&, 0, 0>::type)' [-Werror=overloaded-virtual]
   74 |   MOCK_METHOD(void, pause, (const std::string& type_url));
      |                     ^~~~~
In file included from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/upstream/_virtual_includes/cluster_manager_interface/envoy/upstream/cluster_manager.h:15,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/server/_virtual_includes/factory_context_interface/envoy/server/factory_context.h:26,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/server/_virtual_includes/filter_config_interface/envoy/server/filter_config.h:10,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/config/_virtual_includes/config_provider_manager_interface/envoy/config/config_provider_manager.h:6,
                 from external/envoy/test/mocks/config/mocks.h:3,
                 from external/envoy/test/mocks/config/mocks.cc:1:
bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/config/_virtual_includes/grpc_mux_interface/envoy/config/grpc_mux.h:106:16: error: 'virtual bool Envoy::Config::GrpcMux::paused(std::vector<std::__cxx11::basic_string<char> >) const' was hidden [-Werror=overloaded-virtual]
  106 |   virtual bool paused(const std::vector<std::string> type_urls) const PURE;
      |                ^~~~~~
In file included from external/com_google_googletest/googlemock/include/gmock/gmock.h:61,
                 from external/envoy/test/test_common/utility.h:35,
                 from external/envoy/test/mocks/config/mocks.h:15,
                 from external/envoy/test/mocks/config/mocks.cc:1:
external/envoy/test/mocks/config/mocks.h:76:21: error:   by 'virtual testing::internal::Function<bool(const std::__cxx11::basic_string<char>&)>::Result Envoy::Config::MockGrpcMux::paused(testing::internal::ElemFromListImpl<const std::__cxx11::basic_string<char>&, 0, 0>::type) const' [-Werror=overloaded-virtual]
   76 |   MOCK_METHOD(bool, paused, (const std::string& type_url), (const));
      |                     ^~~~~~
In file included from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/upstream/_virtual_includes/cluster_manager_interface/envoy/upstream/cluster_manager.h:15,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/server/_virtual_includes/factory_context_interface/envoy/server/factory_context.h:26,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/server/_virtual_includes/filter_config_interface/envoy/server/filter_config.h:10,
                 from bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/config/_virtual_includes/config_provider_manager_interface/envoy/config/config_provider_manager.h:6,
                 from external/envoy/test/mocks/config/mocks.h:3,
                 from external/envoy/test/mocks/config/mocks.cc:1:
bazel-out/k8-fastbuild/bin/external/envoy/include/envoy/config/_virtual_includes/grpc_mux_interface/envoy/config/grpc_mux.h:90:16: error: 'virtual void Envoy::Config::GrpcMux::resume(std::vector<std::__cxx11::basic_string<char> >)' was hidden [-Werror=overloaded-virtual]
   90 |   virtual void resume(const std::vector<std::string> type_urls) PURE;
      |                ^~~~~~
In file included from external/com_google_googletest/googlemock/include/gmock/gmock.h:61,
                 from external/envoy/test/test_common/utility.h:35,
                 from external/envoy/test/mocks/config/mocks.h:15,
                 from external/envoy/test/mocks/config/mocks.cc:1:
external/envoy/test/mocks/config/mocks.h:75:21: error:   by 'virtual testing::internal::Function<void(const std::__cxx11::basic_string<char>&)>::Result Envoy::Config::MockGrpcMux::resume(testing::internal::ElemFromListImpl<const std::__cxx11::basic_string<char>&, 0, 0>::type)' [-Werror=overloaded-virtual]
   75 |   MOCK_METHOD(void, resume, (const std::string& type_url));
      |                     ^~~~~~


Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions