prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
16.06k stars 5.38k forks source link

Compile presto-native-execution failed on aarch64 platform. fbthrift static library link error #22454

Closed yixi-gu closed 7 months ago

yixi-gu commented 7 months ago

rence to apache::thrift::RequestRpcMetadata::RequestRpcMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: ThriftRocketServerHandler.cpp:(.text._ZN6apache6thrift6rocket6detail13unpackPayloadINS0_14RequestPayloadELb0EEET_ONS1_7PayloadE[_ZN6apache6thrift6rocket6detail13unpackPayloadINS0_14RequestPayloadELb0EEET_ONS1_7PayloadE]+0x44): undefined reference toapache::thrift::RequestRpcMetadata::~RequestRpcMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(MultiplexAsyncProcessor.cpp.o): in function apache::thrift::EventHandlerBase::~EventHandlerBase()': MultiplexAsyncProcessor.cpp:(.text._ZN6apache6thrift16EventHandlerBaseD2Ev[_ZN6apache6thrift16EventHandlerBaseD5Ev]+0xc): undefined reference tovtable for apache::thrift::EventHandlerBase' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: MultiplexAsyncProcessor.cpp:(.text._ZN6apache6thrift16EventHandlerBaseD2Ev[_ZN6apache6thrift16EventHandlerBaseD5Ev]+0x10): undefined reference to vtable for apache::thrift::EventHandlerBase' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(MultiplexAsyncProcessor.cpp.o): in functionapache::thrift::AsyncProcessor::AsyncProcessor()': MultiplexAsyncProcessor.cpp:(.text._ZN6apache6thrift14AsyncProcessorC2Ev[_ZN6apache6thrift14AsyncProcessorC5Ev]+0x10): undefined reference to apache::thrift::TProcessorBase::TProcessorBase()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(MultiplexAsyncProcessor.cpp.o):(.data.rel.ro+0xb0): undefined reference toapache::thrift::EventHandlerBase::addEventHandler(std::shared_ptr const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(MultiplexAsyncProcessor.cpp.o):(.data.rel.ro._ZTVN6apache6thrift14TProcessorBaseE[_ZTVN6apache6thrift14TProcessorBaseE]+0x10): undefined reference to apache::thrift::EventHandlerBase::addEventHandler(std::shared_ptr<apache::thrift::TProcessorEventHandler> const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(Types.cpp.o): in functionapache::thrift::encodeThriftExtension(apache::thrift::ThriftParametersExt const&)': Types.cpp:(.text+0x26c): undefined reference to unsigned int apache::thrift::NegotiationParameters::write<apache::thrift::CompactProtocolWriter>(apache::thrift::CompactProtocolWriter*) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(Types.cpp.o): in functionunsigned long apache::thrift::NegotiationParameters::read(apache::thrift::CompactProtocolReader)': Types.cpp:(.text._ZN6apache6thrift21NegotiationParameters4readINS021CompactProtocolReaderEEEmPT[_ZN6apache6thrift21NegotiationParameters4readINS021CompactProtocolReaderEEEmPT]+0x24): undefined reference to `void apache::thrift::NegotiationParameters::readNoXfer(apache::thrift::CompactProtocolReader)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(BaseThriftServer.cpp.o): in function apache::thrift::BaseThriftServer::processModulesSpecification(apache::thrift::BaseThriftServer::ModulesSpecification&&)': BaseThriftServer.cpp:(.text+0x20f0): undefined reference toapache::thrift::TProcessorBase::getRWMutex()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: BaseThriftServer.cpp:(.text+0x2100): undefined reference to apache::thrift::TProcessorBase::getHandlers()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionapache::thrift::ThriftRequestCore::sendReply(apache::thrift::ResponsePayload&&, apache::thrift::MessageChannel::SendCallback, folly::Optional)': ThriftRequest.cpp:(.text+0x405c): undefined reference to apache::thrift::ResponseRpcMetadata::~ResponseRpcMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: ThriftRequest.cpp:(.text+0x40ec): undefined reference toapache::thrift::ResponseRpcMetadata::~ResponseRpcMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in function `apache::thrift::ThriftRequestCore::sendException(apache::thrift::ResponsePayload&&, apache::thrift::MessageChannel::SendCallback)': ThriftRequest.cpp:(.text+0x42c0): undefined reference to apache::thrift::ResponseRpcMetadata::~ResponseRpcMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: ThriftRequest.cpp:(.text+0x4338): undefined reference toapache::thrift::ResponseRpcMetadata::~ResponseRpcMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in function apache::thrift::ThriftRequestCore::makeResponseRpcMetadata(folly::F14NodeMap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, folly::HeterogeneousAccessHash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void>, folly::HeterogeneousAccessEqualTo<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&&, std::optional<apache::thrift::ProxiedPayloadMetadata>)': ThriftRequest.cpp:(.text+0x4388): undefined reference toapache::thrift::ResponseRpcMetadata::ResponseRpcMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: ThriftRequest.cpp:(.text+0x4ae8): undefined reference to apache::thrift::ResponseRpcMetadata::~ResponseRpcMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionstd::enable_if<and_v<std::not_<std::is_same<std::optional, std::remove_cv<std::remove_reference::type>::type> >, std::not_<std::and_<std::is_scalar, std::is_same<apache::thrift::LoggingContext, std::decay::type> > >, std::is_constructible<apache::thrift::LoggingContext, apache::thrift::LoggingContext>, std::is_assignable<apache::thrift::LoggingContext&, apache::thrift::LoggingContext> >, std::optional&>::type std::optional::operator=(apache::thrift::LoggingContext&&)': ThriftRequest.cpp:(.text._ZNSt8optionalIN6apache6thrift14LoggingContextEEaSIS2_EENSt9enable_ifIX7and_vISt6__not_ISt7is_sameIS3_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES6_ISt6and_IJSt9is_scalarIS2_ES7_IS2_NSt5decayISA_E4typeEEEEESt16is_constructibleIS2_JSA_EESt13is_assignableIRS2_SA_EEERS3E4typeEOSA[_ZNSt8optionalIN6apache6thrift14LoggingContextEEaSIS2_EENSt9enable_ifIX7and_vISt6__not_ISt7is_sameIS3_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES6_ISt6and_IJSt9is_scalarIS2_ES7_IS2_NSt5decayISA_E4typeEEEEESt16is_constructibleIS2_JSA_EESt13is_assignableIRS2_SA_EEERS3E4typeEOSA]+0x40): undefined reference to apache::thrift::LoggingContext::operator=(apache::thrift::LoggingContext&&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionstd::enable_if<and_v<std::not_<std::is_same<std::optional, std::remove_cv<std::remove_reference<apache::thrift::PayloadExceptionMetadataBase const&>::type>::type> >, std::not_<std::and_<std::is_scalar, std::is_same<apache::thrift::PayloadExceptionMetadataBase, std::decay<apache::thrift::PayloadExceptionMetadataBase const&>::type> > >, std::is_constructible<apache::thrift::PayloadExceptionMetadataBase, apache::thrift::PayloadExceptionMetadataBase const&>, std::is_assignable<apache::thrift::PayloadExceptionMetadataBase&, apache::thrift::PayloadExceptionMetadataBase const&> >, std::optional&>::type std::optional::operator=<apache::thrift::PayloadExceptionMetadataBase const&>(apache::thrift::PayloadExceptionMetadataBase const&)': ThriftRequest.cpp:(.text._ZNSt8optionalIN6apache6thrift28PayloadExceptionMetadataBaseEEaSIRKS2_EENSt9enable_ifIX7and_vISt6__not_ISt7is_sameIS3_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES8_ISt6and_IJSt9is_scalarIS2_ES9_IS2_NSt5decayISC_E4typeEEEEESt16is_constructibleIS2_JSC_EESt13is_assignableIRS2_SC_EEERS3E4typeEOSC[_ZNSt8optionalIN6apache6thrift28PayloadExceptionMetadataBaseEEaSIRKS2_EENSt9enable_ifIX7and_vISt6__not_ISt7is_sameIS3_NSt9remove_cvINSt16remove_referenceIT_E4typeEE4typeEEES8_ISt6and_IJSt9is_scalarIS2_ES9_IS2_NSt5decayISC_E4typeEEEEESt16is_constructibleIS2_JSC_EESt13is_assignableIRS2_SC_EEERS3E4typeEOSC]+0x40): undefined reference to apache::thrift::PayloadExceptionMetadataBase::operator=(apache::thrift::PayloadExceptionMetadataBase const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionfolly::Optional::assign(apache::thrift::CompressionConfig const&)': ThriftRequest.cpp:(.text.ZN5folly8OptionalIN6apache6thrift17CompressionConfigEE6assignERKS3[ZN5folly8OptionalIN6apache6thrift17CompressionConfigEE6assignERKS3]+0x2c): undefined reference to apache::thrift::CompressionConfig::operator=(apache::thrift::CompressionConfig const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionvoid folly::Optional::construct<apache::thrift::CompressionConfig const&>(apache::thrift::CompressionConfig const&)': ThriftRequest.cpp:(.text._ZN5folly8OptionalIN6apache6thrift17CompressionConfigEE9constructIJRKS3EEEvDpOT[_ZN5folly8OptionalIN6apache6thrift17CompressionConfigEE9constructIJRKS3EEEvDpOT]+0x48): undefined reference to apache::thrift::CompressionConfig::CompressionConfig(apache::thrift::CompressionConfig const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionstd::_Optional_payload_base::_M_copy_assign(std::_Optional_payload_base const&)': ThriftRequest.cpp:(.text._ZNSt22_Optional_payload_baseIN6apache6thrift16ResponseRpcErrorEE14_M_copyassignERKS3[_ZNSt22_Optional_payload_baseIN6apache6thrift16ResponseRpcErrorEE14_M_copyassignERKS3]+0x4c): undefined reference to apache::thrift::ResponseRpcError::operator=(apache::thrift::ResponseRpcError const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionstd::_Optional_payload_base::_M_destroy()': ThriftRequest.cpp:(.text._ZNSt22_Optional_payload_baseIN6apache6thrift28PayloadExceptionMetadataBaseEE10_M_destroyEv[_ZNSt22_Optional_payload_baseIN6apache6thrift28PayloadExceptionMetadataBaseEE10_M_destroyEv]+0x18): undefined reference to apache::thrift::PayloadExceptionMetadataBase::~PayloadExceptionMetadataBase()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionstd::_Optional_payload_base::_M_destroy()': ThriftRequest.cpp:(.text._ZNSt22_Optional_payload_baseIN6apache6thrift16ResponseRpcErrorEE10_M_destroyEv[_ZNSt22_Optional_payload_baseIN6apache6thrift16ResponseRpcErrorEE10_M_destroyEv]+0x18): undefined reference to apache::thrift::ResponseRpcError::~ResponseRpcError()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionvoid std::_Construct<apache::thrift::LoggingContext, apache::thrift::LoggingContext>(apache::thrift::LoggingContext, apache::thrift::LoggingContext&&)': ThriftRequest.cpp:(.text._ZSt10_ConstructIN6apache6thrift14LoggingContextEJS2_EEvPTDpOT0[_ZSt10_ConstructIN6apache6thrift14LoggingContextEJS2_EEvPTDpOT0]+0x60): undefined reference to apache::thrift::LoggingContext::LoggingContext(apache::thrift::LoggingContext&&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionvoid std::_Construct<apache::thrift::ResponseRpcError, apache::thrift::ResponseRpcError const&>(apache::thrift::ResponseRpcError, apache::thrift::ResponseRpcError const&)': ThriftRequest.cpp:(.text._ZSt10_ConstructIN6apache6thrift16ResponseRpcErrorEJRKS2_EEvPTDpOT0[_ZSt10_ConstructIN6apache6thrift16ResponseRpcErrorEJRKS2_EEvPTDpOT0]+0x68): undefined reference to apache::thrift::ResponseRpcError::ResponseRpcError(apache::thrift::ResponseRpcError const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functionvoid std::_Construct<apache::thrift::PayloadExceptionMetadataBase, apache::thrift::PayloadExceptionMetadataBase const&>(apache::thrift::PayloadExceptionMetadataBase, apache::thrift::PayloadExceptionMetadataBase const&)': ThriftRequest.cpp:(.text._ZSt10_ConstructIN6apache6thrift28PayloadExceptionMetadataBaseEJRKS2_EEvPTDpOT0[_ZSt10_ConstructIN6apache6thrift28PayloadExceptionMetadataBaseEJRKS2_EEvPTDpOT0]+0x68): undefined reference to apache::thrift::PayloadExceptionMetadataBase::PayloadExceptionMetadataBase(apache::thrift::PayloadExceptionMetadataBase const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functiondecltype (::new ((void)(0)) apache::thrift::LoggingContext((declval)())) std::construct_at<apache::thrift::LoggingContext, apache::thrift::LoggingContext>(apache::thrift::LoggingContext, apache::thrift::LoggingContext&&)': ThriftRequest.cpp:(.text._ZSt12construct_atIN6apache6thrift14LoggingContextEJS2_EEDTgsnwcvPvLi0E_T_pispcl7declvalIT0_EEEEPS4DpOS5[_ZSt12construct_atIN6apache6thrift14LoggingContextEJS2_EEDTgsnwcvPvLi0E_T_pispcl7declvalIT0_EEEEPS4DpOS5]+0x38): undefined reference to apache::thrift::LoggingContext::LoggingContext(apache::thrift::LoggingContext&&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functiondecltype (::new ((void)(0)) apache::thrift::ResponseRpcError((declval<apache::thrift::ResponseRpcError const&>)())) std::construct_at<apache::thrift::ResponseRpcError, apache::thrift::ResponseRpcError const&>(apache::thrift::ResponseRpcError, apache::thrift::ResponseRpcError const&)': ThriftRequest.cpp:(.text._ZSt12construct_atIN6apache6thrift16ResponseRpcErrorEJRKS2_EEDTgsnwcvPvLi0E_T_pispcl7declvalIT0_EEEEPS6DpOS7[_ZSt12construct_atIN6apache6thrift16ResponseRpcErrorEJRKS2_EEDTgsnwcvPvLi0E_T_pispcl7declvalIT0_EEEEPS6DpOS7]+0x40): undefined reference to apache::thrift::ResponseRpcError::ResponseRpcError(apache::thrift::ResponseRpcError const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(ThriftRequest.cpp.o): in functiondecltype (::new ((void)(0)) apache::thrift::PayloadExceptionMetadataBase((declval<apache::thrift::PayloadExceptionMetadataBase const&>)())) std::construct_at<apache::thrift::PayloadExceptionMetadataBase, apache::thrift::PayloadExceptionMetadataBase const&>(apache::thrift::PayloadExceptionMetadataBase, apache::thrift::PayloadExceptionMetadataBase const&)': ThriftRequest.cpp:(.text._ZSt12construct_atIN6apache6thrift28PayloadExceptionMetadataBaseEJRKS2_EEDTgsnwcvPvLi0E_T_pispcl7declvalIT0_EEEEPS6DpOS7[_ZSt12construct_atIN6apache6thrift28PayloadExceptionMetadataBaseEJRKS2_EEDTgsnwcvPvLi0E_T_pispcl7declvalIT0_EEEEPS6DpOS7]+0x40): undefined reference to apache::thrift::PayloadExceptionMetadataBase::PayloadExceptionMetadataBase(apache::thrift::PayloadExceptionMetadataBase const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(PayloadUtils.cpp.o): in functionapache::thrift::rocket::Payload apache::thrift::rocket::detail::makePayload(apache::thrift::RequestRpcMetadata const&, std::unique_ptr<folly::IOBuf, std::default_delete >)': PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_18RequestRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_18RequestRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x30): undefined reference to `unsigned int apache::thrift::RequestRpcMetadata::serializedSizeZC(apache::thrift::CompactProtocolWriter const) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_18RequestRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_18RequestRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x180): undefined reference to unsigned int apache::thrift::RequestRpcMetadata::write<apache::thrift::CompactProtocolWriter>(apache::thrift::CompactProtocolWriter*) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_18RequestRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_18RequestRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x29c): undefined reference tounsigned int apache::thrift::RequestRpcMetadata::write(apache::thrift::CompactProtocolWriter) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(PayloadUtils.cpp.o): in function apache::thrift::rocket::Payload apache::thrift::rocket::detail::makePayload<apache::thrift::ResponseRpcMetadata>(apache::thrift::ResponseRpcMetadata const&, std::unique_ptr<folly::IOBuf, std::default_delete<folly::IOBuf> >)': PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_19ResponseRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_19ResponseRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x30): undefined reference tounsigned int apache::thrift::ResponseRpcMetadata::serializedSizeZC(apache::thrift::CompactProtocolWriter const) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_19ResponseRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_19ResponseRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x180): undefined reference to unsigned int apache::thrift::ResponseRpcMetadata::write<apache::thrift::CompactProtocolWriter>(apache::thrift::CompactProtocolWriter*) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_19ResponseRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_19ResponseRpcMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x29c): undefined reference tounsigned int apache::thrift::ResponseRpcMetadata::write(apache::thrift::CompactProtocolWriter) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(PayloadUtils.cpp.o): in function apache::thrift::rocket::Payload apache::thrift::rocket::detail::makePayload<apache::thrift::StreamPayloadMetadata>(apache::thrift::StreamPayloadMetadata const&, std::unique_ptr<folly::IOBuf, std::default_delete<folly::IOBuf> >)': PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_21StreamPayloadMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_21StreamPayloadMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x30): undefined reference tounsigned int apache::thrift::StreamPayloadMetadata::serializedSizeZC(apache::thrift::CompactProtocolWriter const) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_21StreamPayloadMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_21StreamPayloadMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x180): undefined reference to unsigned int apache::thrift::StreamPayloadMetadata::write<apache::thrift::CompactProtocolWriter>(apache::thrift::CompactProtocolWriter*) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: PayloadUtils.cpp:(.text._ZN6apache6thrift6rocket6detail11makePayloadINS0_21StreamPayloadMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE[_ZN6apache6thrift6rocket6detail11makePayloadINS0_21StreamPayloadMetadataEEENS1_7PayloadERKT_St10unique_ptrIN5folly5IOBufESt14default_deleteISB_EE]+0x29c): undefined reference tounsigned int apache::thrift::StreamPayloadMetadata::write(apache::thrift::CompactProtocolWriter) const' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(RocketThriftRequests.cpp.o): in function `apache::thrift::rocket::(anonymous namespace)::makeResponseRpcError(apache::thrift::ResponseRpcErrorCode, folly::Range<char const>, apache::thrift::ResponseRpcMetadata const&)': RocketThriftRequests.cpp:(.text+0x1014): undefined reference to apache::thrift::ResponseRpcError::ResponseRpcError()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x14c0): undefined reference toapache::thrift::ResponseRpcError::~ResponseRpcError()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(RocketThriftRequests.cpp.o): in function apache::thrift::rocket::(anonymous namespace)::processFirstResponse(apache::thrift::ResponseRpcMetadata&, std::unique_ptr<folly::IOBuf, std::default_delete<folly::IOBuf> >&, apache::thrift::protocol::PROTOCOL_TYPES, int, folly::Optional<apache::thrift::CompressionConfig> const&)': RocketThriftRequests.cpp:(.text+0x1c94): undefined reference toapache::thrift::ResponseRpcError::~ResponseRpcError()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x1cf8): undefined reference to apache::thrift::CompressionConfig::CompressionConfig(apache::thrift::CompressionConfig const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x1dac): undefined reference toapache::thrift::ResponseRpcError::~ResponseRpcError()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(RocketThriftRequests.cpp.o): in function apache::thrift::rocket::ThriftServerRequestStream::ThriftServerRequestStream(apache::thrift::RequestsRegistry::DebugStub&, folly::EventBase&, apache::thrift::server::ServerConfigs&, apache::thrift::RequestRpcMetadata&&, apache::thrift::Cpp2ConnContext&, std::shared_ptr<folly::RequestContext>, apache::thrift::RequestsRegistry&, apache::thrift::rocket::Payload&&, apache::thrift::rocket::RocketServerFrameContext&&, int, apache::thrift::rocket::RocketStreamClientCallback*, std::shared_ptr<apache::thrift::AsyncProcessor>)': RocketThriftRequests.cpp:(.text+0x2a04): undefined reference toapache::thrift::CompressionConfig::CompressionConfig(apache::thrift::CompressionConfig const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(RocketThriftRequests.cpp.o): in function apache::thrift::rocket::ThriftServerRequestSink::ThriftServerRequestSink(apache::thrift::RequestsRegistry::DebugStub&, folly::EventBase&, apache::thrift::server::ServerConfigs&, apache::thrift::RequestRpcMetadata&&, apache::thrift::Cpp2ConnContext&, std::shared_ptr<folly::RequestContext>, apache::thrift::RequestsRegistry&, apache::thrift::rocket::Payload&&, apache::thrift::rocket::RocketServerFrameContext&&, int, apache::thrift::rocket::RocketSinkClientCallback*, std::shared_ptr<apache::thrift::AsyncProcessor>)': RocketThriftRequests.cpp:(.text+0x32f4): undefined reference toapache::thrift::CompressionConfig::CompressionConfig(apache::thrift::CompressionConfig const&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(RocketThriftRequests.cpp.o): in function std::optional<apache::thrift::ResponseRpcError> apache::thrift::rocket::(anonymous namespace)::processFirstResponseHelper<apache::thrift::Serializer<apache::thrift::BinaryProtocolReader, apache::thrift::BinaryProtocolWriter> >(apache::thrift::ResponseRpcMetadata&, std::unique_ptr<folly::IOBuf, std::default_delete<folly::IOBuf> >&, int)': RocketThriftRequests.cpp:(.text+0x44f8): undefined reference toapache::thrift::PayloadExceptionMetadataBase::PayloadExceptionMetadataBase()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x4e5c): undefined reference to apache::thrift::PayloadExceptionMetadataBase::operator=(apache::thrift::PayloadExceptionMetadataBase&&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x4eb4): undefined reference toapache::thrift::PayloadExceptionMetadataBase::PayloadExceptionMetadataBase(apache::thrift::PayloadExceptionMetadataBase&&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x4eec): undefined reference to apache::thrift::PayloadExceptionMetadata::~PayloadExceptionMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x4ef4): undefined reference toapache::thrift::PayloadExceptionMetadataBase::~PayloadExceptionMetadataBase()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x4fc0): undefined reference to apache::thrift::PayloadMetadata::~PayloadMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x4fe0): undefined reference toapache::thrift::PayloadExceptionMetadataBase::PayloadExceptionMetadataBase()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x56a8): undefined reference to apache::thrift::PayloadExceptionMetadata::~PayloadExceptionMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x5820): undefined reference toapache::thrift::PayloadExceptionMetadata::~PayloadExceptionMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x5964): undefined reference to apache::thrift::type::SemiAnyStruct::SemiAnyStruct()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x5c3c): undefined reference toapache::thrift::type::SemiAnyStruct::~SemiAnyStruct()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x5e78): undefined reference to apache::thrift::ResponseRpcError::~ResponseRpcError()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x609c): undefined reference toapache::thrift::PayloadExceptionMetadata::~PayloadExceptionMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x64fc): undefined reference to apache::thrift::PayloadExceptionMetadataBase::operator=(apache::thrift::PayloadExceptionMetadataBase&&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x6554): undefined reference toapache::thrift::PayloadExceptionMetadataBase::PayloadExceptionMetadataBase(apache::thrift::PayloadExceptionMetadataBase&&)' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x6650): undefined reference to apache::thrift::PayloadMetadata::~PayloadMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x665c): undefined reference toapache::thrift::PayloadExceptionMetadataBase::~PayloadExceptionMetadataBase()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x66d0): undefined reference to apache::thrift::ResponseRpcError::~ResponseRpcError()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x6708): undefined reference toapache::thrift::PayloadExceptionMetadata::~PayloadExceptionMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x6718): undefined reference to apache::thrift::PayloadExceptionMetadataBase::~PayloadExceptionMetadataBase()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x6728): undefined reference toapache::thrift::PayloadMetadata::~PayloadMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x6750): undefined reference to apache::thrift::PayloadExceptionMetadata::~PayloadExceptionMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x67a0): undefined reference toapache::thrift::type::SemiAnyStruct::~SemiAnyStruct()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x67b0): undefined reference to apache::thrift::PayloadMetadata::~PayloadMetadata()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x67c0): undefined reference toapache::thrift::PayloadExceptionMetadataBase::~PayloadExceptionMetadataBase()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: RocketThriftRequests.cpp:(.text+0x68b0): undefined reference to apache::thrift::ResponseRpcError::~ResponseRpcError()' /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/aarch64-redhat-linux/12/ld: /usr/local/lib/libthriftcpp2.a(RocketThriftRequests.cpp.o): in functionstd::optional apache::thrift::rocket::(anonymous namespace)::processFirstResponseHelper<apache::thrift::Serializer<apache::thrift::CompactProtocolReader, apache::thrift::CompactProtocolWriter> >(apache::thrift::ResponseRpcMetadata&, std::unique_ptr<folly::IOBuf, st

yixi-gu commented 7 months ago

the fbthrift libraries are installed in /usr/local/lib

-rw-r--r-- 1 root root 6971626 Apr 8 16:22 libthriftannotation.a -rw-r--r-- 1 root root 929244 Apr 8 16:22 libthriftanyrep.a -rw-r--r-- 1 root root 122630 Apr 8 16:22 libthrift-core.a -rw-r--r-- 1 root root 177465098 Apr 8 16:24 libthriftcpp2.a -rw-r--r-- 1 root root 3206352 Apr 8 16:22 libthriftfrozen2.a -rw-r--r-- 1 root root 8507256 Apr 8 16:22 libthriftmetadata.a -rw-r--r-- 1 root root 8213994 Apr 8 16:22 libthriftprotocol.a -rw-r--r-- 1 root root 2578318 Apr 8 16:22 libthrifttype.a -rw-r--r-- 1 root root 1963548 Apr 8 16:22 libthrifttyperep.a

majetideepak commented 7 months ago

@yixi-gu Did you try the latest master? You are likely running into https://github.com/facebookincubator/velox/issues/9339 The Velox version with this fix was pulled into Prestissimo here https://github.com/prestodb/presto/commit/352fe6b6001cbd0315a1f1d1a1954de9eee0f13c You might also need https://github.com/prestodb/presto/pull/22434

yixi-gu commented 7 months ago

@majetideepak thanks, I changed the fb_version to v2024.04.01.00 that fixed the link error