google / private-join-and-compute

Apache License 2.0
792 stars 138 forks source link

Failed to build #40

Closed lidh15 closed 1 year ago

lidh15 commented 1 year ago

Bazel Build label: 4.2.1 error:

INFO: From Compiling src/core/ext/xds/xds_transport_grpc.cc:
In file included from external/com_github_grpc_grpc/src/core/lib/transport/transport.h:56,
                 from external/com_github_grpc_grpc/src/core/ext/filters/client_channel/subchannel.h:63,
                 from external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel_factory.h:24,
                 from external/com_github_grpc_grpc/src/core/ext/filters/client_channel/client_channel.h:40,
                 from external/com_github_grpc_grpc/src/core/ext/xds/xds_transport_grpc.cc:37:
external/com_github_grpc_grpc/src/core/lib/promise/pipe.h: In instantiation of 'class grpc_core::pipe_detail::Center<std::unique_ptr<grpc_core::Message, grpc_core::Arena::PooledDeleter> >':
external/com_github_grpc_grpc/src/core/lib/promise/pipe.h:489:74:   required from 'grpc_core::Pipe<T>::Pipe(grpc_core::Arena*) [with T = std::unique_ptr<grpc_core::Message, grpc_core::Arena::PooledDeleter>]'
external/com_github_grpc_grpc/src/core/lib/channel/promise_based_filter.h:280:43:   required from here
external/com_github_grpc_grpc/src/core/lib/promise/pipe.h:271:14: warning: 'grpc_core::pipe_detail::Center<std::unique_ptr<grpc_core::Message, grpc_core::Arena::PooledDeleter> >::value_state_' is too small to hold all values of 'enum class grpc_core::pipe_detail::Center<std::unique_ptr<grpc_core::Message, grpc_core::Arena::PooledDeleter> >::ValueState'
  271 |   ValueState value_state_ : 2;
      |              ^~~~~~~~~~~~
ERROR: /root/.cache/bazel/_bazel_root/262c3d74d051dbcac0d1fa538765b135/external/com_github_grpc_grpc/src/core/BUILD:3386:16: Compiling src/core/ext/xds/xds_listener.cc failed: (Exit 1): gcc failed: error executing command /opt/rh/devtoolset-9/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG ... (remaining 97 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/bits/move.h:55,
                 from /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/bits/stl_pair.h:59,
                 from /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/utility:70,
                 from /opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/algorithm:60,
                 from external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.h:25,
                 from external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.cc:19:
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/type_traits: In instantiation of 'struct std::is_constructible<grpc_core::XdsListenerResource::FilterChainData>':
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/type_traits:2883:25:   required from 'constexpr const bool std::is_constructible_v<grpc_core::XdsListenerResource::FilterChainData>'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/optional:479:66:   required by substitution of 'template<class ... _Args, typename std::enable_if<is_constructible_v<grpc_core::XdsListenerResource::FilterChainData, _Args&& ...>, bool>::type <anonymous> > constexpr std::_Optional_base<grpc_core::XdsListenerResource::FilterChainData, false, false>::_Optional_base(std::in_place_t, _Args&& ...) [with _Args = {}; typename std::enable_if<is_constructible_v<grpc_core::XdsListenerResource::FilterChainData, _Args&& ...>, bool>::type <anonymous> = <missing>]'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/type_traits:883:12:   required from 'struct std::is_constructible<grpc_core::XdsListenerResource::TcpListener, const grpc_core::XdsListenerResource::TcpListener&>'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/type_traits:901:12:   required from 'struct std::__is_copy_constructible_impl<grpc_core::XdsListenerResource::TcpListener, true>'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/type_traits:907:12:   required from 'struct std::is_copy_constructible<grpc_core::XdsListenerResource::TcpListener>'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/type_traits:2889:25:   required from 'constexpr const bool std::is_copy_constructible_v<grpc_core::XdsListenerResource::TcpListener>'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/variant:275:5:   required from 'constexpr const bool std::__detail::__variant::_Traits<grpc_core::XdsListenerResource::HttpConnectionManager, grpc_core::XdsListenerResource::TcpListener>::_S_copy_ctor'
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/variant:1219:11:   required from 'class std::variant<grpc_core::XdsListenerResource::HttpConnectionManager, grpc_core::XdsListenerResource::TcpListener>'
external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.h:189:53:   required from here
/opt/rh/devtoolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/type_traits:883:12: error: default member initializer for 'grpc_core::XdsListenerResource::DownstreamTlsContext::require_client_certificate' required before the end of its enclosing class
  883 |     struct is_constructible
      |            ^~~~~~~~~~~~~~~~
In file included from external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.cc:19:
external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.h:83:37: note: defined here
   83 |     bool require_client_certificate = false;
      |                                     ^~~~~~~~
external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.cc: In function 'grpc_core::XdsListenerResource::DownstreamTlsContext grpc_core::{anonymous}::DownstreamTlsContextParse(const grpc_core::XdsResourceType::DecodeContext&, const envoy_config_core_v3_TransportSocket*, grpc_core::ValidationErrors*)':
external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.cc:530:39: error: could not convert '<brace-enclosed initializer list>()' from '<brace-enclosed initializer list>' to 'grpc_core::XdsListenerResource::DownstreamTlsContext'
  530 |   if (!extension.has_value()) return {};
      |                                       ^
      |                                       |
      |                                       <brace-enclosed initializer list>
external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.cc:535:13: error: could not convert '<brace-enclosed initializer list>()' from '<brace-enclosed initializer list>' to 'grpc_core::XdsListenerResource::DownstreamTlsContext'
  535 |     return {};
      |             ^
      |             |
      |             <brace-enclosed initializer list>
external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.cc:541:13: error: could not convert '<brace-enclosed initializer list>()' from '<brace-enclosed initializer list>' to 'grpc_core::XdsListenerResource::DownstreamTlsContext'
  541 |     return {};
      |             ^
      |             |
      |             <brace-enclosed initializer list>
external/com_github_grpc_grpc/src/core/ext/xds/xds_listener.cc:549:13: error: could not convert '<brace-enclosed initializer list>()' from '<brace-enclosed initializer list>' to 'grpc_core::XdsListenerResource::DownstreamTlsContext'
  549 |     return {};
      |             ^
      |             |
      |             <brace-enclosed initializer list>
INFO: Elapsed time: 238.280s, Critical Path: 22.61s
INFO: 1553 processes: 46 internal, 1507 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
karnseth commented 1 year ago

Hi @lidh15 , could you try building with the latest version of bazel (6.3.0 at the time of this comment)? The dependencies will fail to build with older versions.

lidh15 commented 1 year ago

thank you!