Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-501

Cassandra SE fails to compile on Ubuntu

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None
    • Ubuntu Oneiric Ocelot.

    Description

      Cassandra SE fails to compile on Ubuntu:

      Linking CXX executable mysqld
      cd /home/buildbot/5.5-cassandra/sql && /usr/bin/cmake -E cmake_link_script CMakeFiles/mysqld.dir/link.txt --verbose=1
      /usr/bin/g++   -Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -Wno-unused-parameter -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mtune=native -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DSAFE_MUTEX -DSAFEMALLOC -O0 -g3 -gdwarf-2 -DFORCE_INIT_OF_VARS -Wuninitialized    -fPIC -Wall -Wno-unused-parameter -fno-implicit-templates -fno-exceptions -fno-rtti -g -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -DSAFEMALLOC  -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Wno-missing-field-initializers -Wno-unused-parameter -Woverloaded-virtual   -L/home/buildbot/lib -Wl,--export-dynamic CMakeFiles/mysqld.dir/main.cc.o  -o mysqld  -lpthread libsql.a ../storage/blackhole/libblackhole.a ../storage/sphinx/libsphinx.a ../storage/myisammrg/libmyisammrg.a ../storage/xtradb/libxtradb.a -laio ../storage/perfschema/libperfschema.a ../storage/archive/libarchive.a ../storage/csv/libcsv.a ../storage/cassandra/libcassandra.a -lthrift ../storage/heap/libheap.a ../storage/federatedx/libfederatedx.a ../storage/maria/libaria.a ../storage/myisam/libmyisam.a ../plugin/feedback/libfeedback.a libpartition.a ../mysys/libmysys.a ../dbug/libdbug.a ../mysys/libmysys.a ../dbug/libdbug.a -lz -lm -lrt ../strings/libstrings.a ../vio/libvio.a ../regex/libregex.a -lcrypt -ldl ../extra/yassl/libyassl.a ../extra/yassl/taocrypt/libtaocrypt.a -lpthread 
      ../storage/cassandra/libcassandra.a(cassandra_se.cc.o): In function `apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>::writeMessageBegin(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, apache::thrift::protocol::TMessageType, int)':
      /home/buildbot/include/thrift/protocol/TBinaryProtocol.tcc:35: undefined reference to `apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>::VERSION_1'
      ../storage/cassandra/libcassandra.a(cassandra_se.cc.o): In function `apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>::readMessageBegin(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, apache::thrift::protocol::TMessageType&, int&)':
      /home/buildbot/include/thrift/protocol/TBinaryProtocol.tcc:207: undefined reference to `apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>::VERSION_MASK'
      /home/buildbot/include/thrift/protocol/TBinaryProtocol.tcc:208: undefined reference to `apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>::VERSION_1'
      collect2: ld returned 1 exit status
      make[2]: *** [sql/mysqld] Error 1
       

      Attachments

        Issue Links

          Activity

            Note that it fails in a different way on older Ubuntu versions. On 9.04, I got this error:

            /home/psergey/dev2/5.5-cassandra-r02/storage/cassandra/ha_cassandra.cc: In member function ‘bool ha_cassandra::mrr_start_read()’:
            /home/psergey/dev2/5.5-cassandra-r02/storage/cassandra/ha_cassandra.cc:1135: warning: comparison between signed and unsigned integer expressions
            [100%] Building CXX object storage/cassandra/CMakeFiles/cassandra.dir/cassandra_se.cc.o
            In file included from /usr/include/boost/detail/shared_count.hpp:31,
            from /usr/include/boost/shared_ptr.hpp:29,
            from /home/psergey/cassandra/thrift/include/thrift/transport/TTransport.h:25,
            from /home/psergey/cassandra/thrift/include/thrift/transport/TSocket.h:33,
            from /home/psergey/dev2/5.5-cassandra-r02/storage/cassandra/cassandra_se.cc:11:
            /usr/include/boost/detail/sp_counted_impl.hpp: In member function ‘virtual void* boost::detail::sp_counted_impl_pd<P, D>::get_deleter(const boost::detail::sp_typeinfo&)’:
            /usr/include/boost/detail/sp_counted_impl.hpp:149: error: cannot use typeid with -fno-rtti
            /usr/include/boost/detail/sp_counted_impl.hpp: In member function ‘virtual void* boost::detail::sp_counted_impl_pda<P, D, A>::get_deleter(const boost::detail::sp_typeinfo&)’:
            /usr/include/boost/detail/sp_counted_impl.hpp:219: error: cannot use typeid with -fno-rtti
            In file included from /home/psergey/cassandra/thrift/include/thrift/transport/TTransport.h:25,
            from /home/psergey/cassandra/thrift/include/thrift/transport/TSocket.h:33,
            from /home/psergey/dev2/5.5-cassandra-r02/storage/cassandra/cassandra_se.cc:11:
            /usr/include/boost/shared_ptr.hpp: In function ‘D* boost::get_deleter(const boost::shared_ptr<U>&)’:
            /usr/include/boost/shared_ptr.hpp:606: error: cannot use typeid with -fno-rtti
            make[2]: *** [storage/cassandra/CMakeFiles/cassandra.dir/cassandra_se.cc.o] Error 1
            make[1]: *** [storage/cassandra/CMakeFiles/cassandra.dir/all] Error 2
            make: *** [all] Error 2

            Judging from the comments in storage/oqgraph/CMakeLists.txt, this is due to old gcc being used.

            psergei Sergei Petrunia added a comment - Note that it fails in a different way on older Ubuntu versions. On 9.04, I got this error: /home/psergey/dev2/5.5-cassandra-r02/storage/cassandra/ha_cassandra.cc: In member function ‘bool ha_cassandra::mrr_start_read()’: /home/psergey/dev2/5.5-cassandra-r02/storage/cassandra/ha_cassandra.cc:1135: warning: comparison between signed and unsigned integer expressions [100%] Building CXX object storage/cassandra/CMakeFiles/cassandra.dir/cassandra_se.cc.o In file included from /usr/include/boost/detail/shared_count.hpp:31, from /usr/include/boost/shared_ptr.hpp:29, from /home/psergey/cassandra/thrift/include/thrift/transport/TTransport.h:25, from /home/psergey/cassandra/thrift/include/thrift/transport/TSocket.h:33, from /home/psergey/dev2/5.5-cassandra-r02/storage/cassandra/cassandra_se.cc:11: /usr/include/boost/detail/sp_counted_impl.hpp: In member function ‘virtual void* boost::detail::sp_counted_impl_pd<P, D>::get_deleter(const boost::detail::sp_typeinfo&)’: /usr/include/boost/detail/sp_counted_impl.hpp:149: error: cannot use typeid with -fno-rtti /usr/include/boost/detail/sp_counted_impl.hpp: In member function ‘virtual void* boost::detail::sp_counted_impl_pda<P, D, A>::get_deleter(const boost::detail::sp_typeinfo&)’: /usr/include/boost/detail/sp_counted_impl.hpp:219: error: cannot use typeid with -fno-rtti In file included from /home/psergey/cassandra/thrift/include/thrift/transport/TTransport.h:25, from /home/psergey/cassandra/thrift/include/thrift/transport/TSocket.h:33, from /home/psergey/dev2/5.5-cassandra-r02/storage/cassandra/cassandra_se.cc:11: /usr/include/boost/shared_ptr.hpp: In function ‘D* boost::get_deleter(const boost::shared_ptr<U>&)’: /usr/include/boost/shared_ptr.hpp:606: error: cannot use typeid with -fno-rtti make [2] : *** [storage/cassandra/CMakeFiles/cassandra.dir/cassandra_se.cc.o] Error 1 make [1] : *** [storage/cassandra/CMakeFiles/cassandra.dir/all] Error 2 make: *** [all] Error 2 Judging from the comments in storage/oqgraph/CMakeLists.txt, this is due to old gcc being used.

            It does compile on the latest Ubuntu Precise Panglin. There seems to be no interest in getting it to work on Oneiric Ocelot.

            psergei Sergei Petrunia added a comment - It does compile on the latest Ubuntu Precise Panglin. There seems to be no interest in getting it to work on Oneiric Ocelot.

            People

              psergei Sergei Petrunia
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.