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

dynamic_cast' not permitted with '-fno-rtti'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 10.4.11
    • Fix Version/s: N/A
    • Labels:
      None
    • Environment:
      Arch Linux, gcc 9.2.0

      Description

      RocksDB storage engine does not compile with gcc 9.2.0:


      In file included from /usr/include/c++/9.2.0/cassert:44,
      from /vagrant/abs/mariadb-with-mroonga/src/mariadb-10.4.11/storage/rocksdb/rocksdb/include/rocksdb/compaction_filter.h:11,
      from /vagrant/abs/mariadb-with-mroonga/src/mariadb-10.4.11/storage/rocksdb/rocksdb/db/merge_helper.h:16,
      from /vagrant/abs/mariadb-with-mroonga/src/mariadb-10.4.11/storage/rocksdb/rocksdb/db/compaction/compaction_iterator.h:15,
      from /vagrant/abs/mariadb-with-mroonga/src/mariadb-10.4.11/storage/rocksdb/rocksdb/db/compaction/compaction_job.h:21,
      from /vagrant/abs/mariadb-with-mroonga/src/mariadb-10.4.11/storage/rocksdb/rocksdb/db/db_impl/db_impl.h:23,
      from /vagrant/abs/mariadb-with-mroonga/src/mariadb-10.4.11/storage/rocksdb/rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc:13:
      /vagrant/abs/mariadb-with-mroonga/src/mariadb-10.4.11/storage/rocksdb/rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc: In member function 'void rocksdb::OptimisticTransactionDBImpl::ReinitializeTransaction(rocksdb::Transaction*, const rocksdb::WriteOptions&, const rocksdb::OptimisticTransactionOptions&)':
      /vagrant/abs/mariadb-with-mroonga/src/mariadb-10.4.11/storage/rocksdb/rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc:84:50: error: 'dynamic_cast' not permitted with '-fno-rtti'
      84 | assert(dynamic_cast<OptimisticTransaction*>(txn) != nullptr);

      ^
      [ 28%] Building CXX object storage/rocksdb/CMakeFiles/rocksdblib.dir/rocksdb/utilities/transactions/pessimistic_transaction.cc.o
      make[2]: *** [storage/rocksdb/CMakeFiles/rocksdblib.dir/build.make:2520: storage/rocksdb/CMakeFiles/rocksdblib.dir/rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc.o] Error 1
      make[2]: *** Waiting for unfinished jobs....

        Attachments

          Activity

            People

            Assignee:
            psergey Sergei Petrunia
            Reporter:
            cosmo0920 hiroshi HATAKE
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: