Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build unsuccessful fro centOS 7 and ubuntu both #26

Open
NitishSalwan opened this issue Jan 19, 2021 · 4 comments
Open

Build unsuccessful fro centOS 7 and ubuntu both #26

NitishSalwan opened this issue Jan 19, 2021 · 4 comments

Comments

@NitishSalwan
Copy link

NitishSalwan commented Jan 19, 2021

I am not able to build at any platform. with or without docker.

I don't have scylladb on my machine.

I have tried following instruction for both platforms.

steps used to reproduce on centos 7:

git clone https://github.com/scylladb/charybdefs

No error.

then

sudo yum install gcc-c++ cmake fuse fuse-devel thrift python-thrift thrift-devel

No error.

then i execute this:

thrift -r --gen cpp --gen py server.thrift

and it gives me following warning for every line number from 16 to 35

[WARNING:/home/nsalwan/charybdefs/server.thrift:16] No field key specified for method, resulting protocol may have conflicts or not be backwards compatible!

After that I execute

cmake CMakeLists.txt

and then I execute :

make

which again gives me this warning:
[WARNING:/home/nsalwan/charybdefs/server.thrift:16] No field key specified for method, resulting protocol may have conflicts or not be backwards compatible!

and also this:

[ 12%] Building CXX object CMakeFiles/charybde_lib.dir/charybde_ops.cc.o
[ 25%] Building CXX object CMakeFiles/charybde_lib.dir/server.cc.o
/home/nsalwan/charybdefs/server.cc: In function ‘void server_thread()’:
/home/nsalwan/charybdefs/server.cc:260:69: error: no matching function for call to ‘serverProcessor::serverProcessor(std::shared_ptr<server_handler>&)’
260 | shared_ptr processor(new serverProcessor(handler));
| ^
In file included from /home/nsalwan/charybdefs/server.cc:35:
/home/nsalwan/charybdefs/gen-cpp/server.h:674:3: note: candidate: ‘serverProcessor::serverProcessor(boost::shared_ptr)’
674 | serverProcessor(boost::shared_ptr iface) :
| ^~~~~~~~~~~~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:674:47: note: no known conversion for argument 1 from ‘std::shared_ptr<server_handler>’ to ‘boost::shared_ptr’
674 | serverProcessor(boost::shared_ptr iface) :
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:660:7: note: candidate: ‘serverProcessor::serverProcessor(const serverProcessor&)’
660 | class serverProcessor : public ::apache::thrift::TDispatchProcessor {
| ^~~~~~~~~~~~~~~
/home/nsalwan/charybdefs/gen-cpp/server.h:660:7: note: no known conversion for argument 1 from ‘std::shared_ptr<server_handler>’ to ‘const serverProcessor&’
/home/nsalwan/charybdefs/server.cc:265:91: error: no matching function for call to ‘apache::thrift::server::TSimpleServer::TSimpleServer(std::shared_ptrapache::thrift::TProcessor&, std::shared_ptrapache::thrift::transport::TServerTransport&, std::shared_ptrapache::thrift::transport::TTransportFactory&, std::shared_ptrapache::thrift::protocol::TProtocolFactory&)’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:73:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<Processor*, apache::thrift::TProcessor*>::type, void*>::type)’
73 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:73:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:59:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<ProcessorFactory*, apache::thrift::TProcessorFactory*>::type, void*>::type)’
59 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:59:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan//charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:49:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<Processor*, apache::thrift::TProcessor*>::type, void*>::type)’
49 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:49:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:38:3: note: candidate: ‘template apache::thrift::server::TSimpleServer::TSimpleServer(const boost::shared_ptr&, const boost::shared_ptrapache::thrift::transport::TServerTransport&, const boost::shared_ptrapache::thrift::transport::TTransportFactory&, const boost::shared_ptrapache::thrift::protocol::TProtocolFactory&, typename boost::enable_if<typename boost::is_convertible<ProcessorFactory*, apache::thrift::TProcessorFactory*>::type, void*>::type)’
38 | TSimpleServer(
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:38:3: note: template argument deduction/substitution failed:
/home/nsalwan/charybdefs/server.cc:265:91: note: ‘std::shared_ptrapache::thrift::TProcessor’ is not derived from ‘const boost::shared_ptr’
265 | TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory);
| ^
In file included from /home/nsalwan/charybdefs/server.cc:31:
/usr/include/thrift/server/TSimpleServer.h:35:7: note: candidate: ‘apache::thrift::server::TSimpleServer::TSimpleServer(const apache::thrift::server::TSimpleServer&)’
35 | class TSimpleServer : public TServer {
| ^~~~~~~~~~~~~
/usr/include/thrift/server/TSimpleServer.h:35:7: note: candidate expects 1 argument, 4 provided
make[2]: *** [CMakeFiles/charybde_lib.dir/server.cc.o] Error 1
make[1]: *** [CMakeFiles/charybde_lib.dir/all] Error 2

@NitishSalwan
Copy link
Author

@bentsi @lmr please help

@hellowangsai
Copy link

@NitishSalwan , revert the head commit.
git reset --hard HEAD~1

@rikewang
Copy link

rikewang commented May 6, 2021

got same problems

@rikewang
Copy link

rikewang commented May 7, 2021

got same problems

git revert 1a04698
git revert is ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants