[
https://issues.apache.org/jira/browse/PARQUET-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442042#comment-16442042
]
ASF GitHub Bot commented on PARQUET-1179:
-----------------------------------------
thamht4190 commented on issue #433: PARQUET-1179: Upgrade to Thrift 0.11, use
std::shared_ptr instead of boost::shared_ptr
URL: https://github.com/apache/parquet-cpp/pull/433#issuecomment-382291072
I tried check `bison --version`, oh, it show bison 2.3. Then I found [this
article on
stackoverflow](https://stackoverflow.com/questions/10778905/why-not-gnu-bison-upgrade-to-2-5-on-macosx-10-7-3/30844621#30844621).
It generates another errors but it passed bison issue ;)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [C++] Support Apache Thrift 0.11
> --------------------------------
>
> Key: PARQUET-1179
> URL: https://issues.apache.org/jira/browse/PARQUET-1179
> Project: Parquet
> Issue Type: Bug
> Components: parquet-cpp
> Environment: OSX 10.13.2
> Apple Clang
> {code:java}
> Apple LLVM version 9.0.0 (clang-900.0.39.2)
> Target: x86_64-apple-darwin17.3.0
> Thread model: posix
> InstalledDir:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> {code}
> Reporter: Stephen Carman
> Assignee: Wes McKinney
> Priority: Major
> Fix For: cpp-1.4.0
>
>
> I am not sure if this is an OSX specific issue or something with a new
> version of Boost, but parquet does not seem to build with the current setup.
> {code:java}
> In file included from
> /Users/steve_carman/software/parquet-cpp/src/parquet/schema.cc:28:
> /Users/steve_carman/software/parquet-cpp/src/parquet/thrift.h:105:34: error:
> no viable conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'stdcxx::shared_ptr<TTransport>'
> tproto_factory.getProtocol(tmem_transport);
> ^~~~~~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3900:23:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'nullptr_t'
> for 1st argument
> _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3914:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'const
> std::__1::shared_ptr<apache::thrift::transport::TTransport> &' for 1st
> argument
> shared_ptr(const shared_ptr& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3922:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'std::__1::shared_ptr<apache::thrift::transport::TTransport> &&' for 1st
> argument
> shared_ptr(shared_ptr&& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3917:9:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> shared_ptr(const shared_ptr<_Yp>& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3923:52:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> template<class _Yp> _LIBCPP_INLINE_VISIBILITY
> shared_ptr(shared_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3931:9:
> note: candidate template ignored: could not match 'auto_ptr' against
> 'shared_ptr'
> shared_ptr(auto_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3940:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3949:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /usr/local/include/thrift/protocol/TCompactProtocol.h:242:76: note: passing
> argument to parameter 'trans' here
> stdcxx::shared_ptr<TProtocol> getProtocol(stdcxx::shared_ptr<TTransport>
> trans) {
> ^
> In file included from
> /Users/steve_carman/software/parquet-cpp/src/parquet/schema.cc:28:
> /Users/steve_carman/software/parquet-cpp/src/parquet/thrift.h:128:34: error:
> no viable conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'stdcxx::shared_ptr<TTransport>'
> tproto_factory.getProtocol(mem_buffer);
> ^~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3900:23:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'nullptr_t'
> for 1st argument
> _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3914:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'const
> std::__1::shared_ptr<apache::thrift::transport::TTransport> &' for 1st
> argument
> shared_ptr(const shared_ptr& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3922:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'std::__1::shared_ptr<apache::thrift::transport::TTransport> &&' for 1st
> argument
> shared_ptr(shared_ptr&& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3917:9:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> shared_ptr(const shared_ptr<_Yp>& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3923:52:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> template<class _Yp> _LIBCPP_INLINE_VISIBILITY
> shared_ptr(shared_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3931:9:
> note: candidate template ignored: could not match 'auto_ptr' against
> 'shared_ptr'
> shared_ptr(auto_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3940:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3949:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /usr/local/include/thrift/protocol/TCompactProtocol.h:242:76: note: passing
> argument to parameter 'trans' here
> stdcxx::shared_ptr<TProtocol> getProtocol(stdcxx::shared_ptr<TTransport>
> trans) {
> ^
> 2 errors generated.
> make[2]: *** [CMakeFiles/parquet_objlib.dir/src/parquet/schema.cc.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> In file included from
> /Users/steve_carman/software/parquet-cpp/src/parquet/file/writer-internal.cc:28:
> /Users/steve_carman/software/parquet-cpp/src/parquet/thrift.h:105:34: error:
> no viable conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'stdcxx::shared_ptr<TTransport>'
> tproto_factory.getProtocol(tmem_transport);
> ^~~~~~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3900:23:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'nullptr_t'
> for 1st argument
> _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3914:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'const
> std::__1::shared_ptr<apache::thrift::transport::TTransport> &' for 1st
> argument
> shared_ptr(const shared_ptr& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3922:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'std::__1::shared_ptr<apache::thrift::transport::TTransport> &&' for 1st
> argument
> shared_ptr(shared_ptr&& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3917:9:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> shared_ptr(const shared_ptr<_Yp>& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3923:52:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> template<class _Yp> _LIBCPP_INLINE_VISIBILITY
> shared_ptr(shared_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3931:9:
> note: candidate template ignored: could not match 'auto_ptr' against
> 'shared_ptr'
> shared_ptr(auto_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3940:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3949:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /usr/local/include/thrift/protocol/TCompactProtocol.h:242:76: note: passing
> argument to parameter 'trans' here
> stdcxx::shared_ptr<TProtocol> getProtocol(stdcxx::shared_ptr<TTransport>
> trans) {
> ^
> In file included from
> /Users/steve_carman/software/parquet-cpp/src/parquet/file/writer-internal.cc:28:
> /Users/steve_carman/software/parquet-cpp/src/parquet/thrift.h:128:34: error:
> no viable conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'stdcxx::shared_ptr<TTransport>'
> tproto_factory.getProtocol(mem_buffer);
> ^~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3900:23:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'nullptr_t'
> for 1st argument
> _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3914:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'const
> std::__1::shared_ptr<apache::thrift::transport::TTransport> &' for 1st
> argument
> shared_ptr(const shared_ptr& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3922:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'std::__1::shared_ptr<apache::thrift::transport::TTransport> &&' for 1st
> argument
> shared_ptr(shared_ptr&& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3917:9:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> shared_ptr(const shared_ptr<_Yp>& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3923:52:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> template<class _Yp> _LIBCPP_INLINE_VISIBILITY
> shared_ptr(shared_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3931:9:
> note: candidate template ignored: could not match 'auto_ptr' against
> 'shared_ptr'
> shared_ptr(auto_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3940:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3949:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /usr/local/include/thrift/protocol/TCompactProtocol.h:242:76: note: passing
> argument to parameter 'trans' here
> stdcxx::shared_ptr<TProtocol> getProtocol(stdcxx::shared_ptr<TTransport>
> trans) {
> ^
> 2 errors generated.
> make[2]: ***
> [CMakeFiles/parquet_objlib.dir/src/parquet/file/writer-internal.cc.o] Error 1
> In file included from
> /Users/steve_carman/software/parquet-cpp/src/parquet/file/reader-internal.cc:32:
> /Users/steve_carman/software/parquet-cpp/src/parquet/thrift.h:105:34: error:
> no viable conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'stdcxx::shared_ptr<TTransport>'
> tproto_factory.getProtocol(tmem_transport);
> ^~~~~~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3900:23:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'nullptr_t'
> for 1st argument
> _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3914:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'const
> std::__1::shared_ptr<apache::thrift::transport::TTransport> &' for 1st
> argument
> shared_ptr(const shared_ptr& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3922:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'std::__1::shared_ptr<apache::thrift::transport::TTransport> &&' for 1st
> argument
> shared_ptr(shared_ptr&& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3917:9:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> shared_ptr(const shared_ptr<_Yp>& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3923:52:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> template<class _Yp> _LIBCPP_INLINE_VISIBILITY
> shared_ptr(shared_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3931:9:
> note: candidate template ignored: could not match 'auto_ptr' against
> 'shared_ptr'
> shared_ptr(auto_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3940:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3949:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /usr/local/include/thrift/protocol/TCompactProtocol.h:242:76: note: passing
> argument to parameter 'trans' here
> stdcxx::shared_ptr<TProtocol> getProtocol(stdcxx::shared_ptr<TTransport>
> trans) {
> ^
> In file included from
> /Users/steve_carman/software/parquet-cpp/src/parquet/file/reader-internal.cc:32:
> /Users/steve_carman/software/parquet-cpp/src/parquet/thrift.h:128:34: error:
> no viable conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'stdcxx::shared_ptr<TTransport>'
> tproto_factory.getProtocol(mem_buffer);
> ^~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3900:23:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'nullptr_t'
> for 1st argument
> _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3914:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'const
> std::__1::shared_ptr<apache::thrift::transport::TTransport> &' for 1st
> argument
> shared_ptr(const shared_ptr& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3922:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'std::__1::shared_ptr<apache::thrift::transport::TTransport> &&' for 1st
> argument
> shared_ptr(shared_ptr&& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3917:9:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> shared_ptr(const shared_ptr<_Yp>& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3923:52:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> template<class _Yp> _LIBCPP_INLINE_VISIBILITY
> shared_ptr(shared_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3931:9:
> note: candidate template ignored: could not match 'auto_ptr' against
> 'shared_ptr'
> shared_ptr(auto_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3940:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3949:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /usr/local/include/thrift/protocol/TCompactProtocol.h:242:76: note: passing
> argument to parameter 'trans' here
> stdcxx::shared_ptr<TProtocol> getProtocol(stdcxx::shared_ptr<TTransport>
> trans) {
> ^
> 2 errors generated.
> make[2]: ***
> [CMakeFiles/parquet_objlib.dir/src/parquet/file/reader-internal.cc.o] Error 1
> In file included from
> /Users/steve_carman/software/parquet-cpp/src/parquet/file/metadata.cc:26:
> /Users/steve_carman/software/parquet-cpp/src/parquet/thrift.h:105:34: error:
> no viable conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'stdcxx::shared_ptr<TTransport>'
> tproto_factory.getProtocol(tmem_transport);
> ^~~~~~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3900:23:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'nullptr_t'
> for 1st argument
> _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3914:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'const
> std::__1::shared_ptr<apache::thrift::transport::TTransport> &' for 1st
> argument
> shared_ptr(const shared_ptr& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3922:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'std::__1::shared_ptr<apache::thrift::transport::TTransport> &&' for 1st
> argument
> shared_ptr(shared_ptr&& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3917:9:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> shared_ptr(const shared_ptr<_Yp>& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3923:52:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> template<class _Yp> _LIBCPP_INLINE_VISIBILITY
> shared_ptr(shared_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3931:9:
> note: candidate template ignored: could not match 'auto_ptr' against
> 'shared_ptr'
> shared_ptr(auto_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3940:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3949:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /usr/local/include/thrift/protocol/TCompactProtocol.h:242:76: note: passing
> argument to parameter 'trans' here
> stdcxx::shared_ptr<TProtocol> getProtocol(stdcxx::shared_ptr<TTransport>
> trans) {
> ^
> In file included from
> /Users/steve_carman/software/parquet-cpp/src/parquet/file/metadata.cc:26:
> /Users/steve_carman/software/parquet-cpp/src/parquet/thrift.h:128:34: error:
> no viable conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'stdcxx::shared_ptr<TTransport>'
> tproto_factory.getProtocol(mem_buffer);
> ^~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3900:23:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'nullptr_t'
> for 1st argument
> _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3914:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to 'const
> std::__1::shared_ptr<apache::thrift::transport::TTransport> &' for 1st
> argument
> shared_ptr(const shared_ptr& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3922:5:
> note: candidate constructor not viable: no known conversion from
> 'boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>' to
> 'std::__1::shared_ptr<apache::thrift::transport::TTransport> &&' for 1st
> argument
> shared_ptr(shared_ptr&& __r) _NOEXCEPT;
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3917:9:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> shared_ptr(const shared_ptr<_Yp>& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3923:52:
> note: candidate template ignored: could not match 'std::__1::shared_ptr'
> against 'boost::shared_ptr'
> template<class _Yp> _LIBCPP_INLINE_VISIBILITY
> shared_ptr(shared_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3931:9:
> note: candidate template ignored: could not match 'auto_ptr' against
> 'shared_ptr'
> shared_ptr(auto_ptr<_Yp>&& __r,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3940:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3949:9:
> note: candidate template ignored: could not match 'unique_ptr' against
> 'shared_ptr'
> shared_ptr(unique_ptr<_Yp, _Dp>&&,
> ^
> /usr/local/include/thrift/protocol/TCompactProtocol.h:242:76: note: passing
> argument to parameter 'trans' here
> stdcxx::shared_ptr<TProtocol> getProtocol(stdcxx::shared_ptr<TTransport>
> trans) {
> ^
> 2 errors generated.
> make[2]: *** [CMakeFiles/parquet_objlib.dir/src/parquet/file/metadata.cc.o]
> Error 1
> make[1]: *** [CMakeFiles/parquet_objlib.dir/all] Error 2
> make: *** [all] Error 2
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)