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

Cannot compile InnoDB with -DPLUGIN_INNOBASE=DYNAMIC

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.11, 12.3
    • None
    • None
    • /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DPLUGIN_INNOBASE:STRING=DYNAMIC -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -S /path/to/src -B /path/to/out
      /usr/bin/cmake --config Debug --target innobase
    • Related to install and upgrade

    Description

      Error excerpt:

      [build] In file included from /path/to/src/storage/innobase/lock/lock0lock.cc:57:
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc: In function 'void wsrep_assert_valid_bf_bf_wait(const ib_lock_t*, const trx_t*, unsigned int)':
      [build] /path/to/src/include/mysql/service_wsrep.h:146:55: error: 'struct wsrep_service_st' has no member named 'wsrep_report_bf_lock_wait'; did you mean 'wsrep_report_bf_lock_wait_func'?
      [build]   146 | #define wsrep_report_bf_lock_wait(T,I) wsrep_service->wsrep_report_bf_lock_wait(T,I)
      [build]       |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:578:9: note: in expansion of macro 'wsrep_report_bf_lock_wait'
      [build]   578 |         wsrep_report_bf_lock_wait(trx->mysql_thd,
      [build]       |         ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/include/mysql/service_wsrep.h:146:55: error: 'struct wsrep_service_st' has no member named 'wsrep_report_bf_lock_wait'; did you mean 'wsrep_report_bf_lock_wait_func'?
      [build]   146 | #define wsrep_report_bf_lock_wait(T,I) wsrep_service->wsrep_report_bf_lock_wait(T,I)
      [build]       |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:580:9: note: in expansion of macro 'wsrep_report_bf_lock_wait'
      [build]   580 |         wsrep_report_bf_lock_wait(lock_trx->mysql_thd,
      [build]       |         ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc: In function 'bool wsrep_BF_has_to_wait(const ib_lock_t*, const trx_t*, bool, unsigned int)':
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:621:7: error: 'wsrep_thd_is_SR' was not declared in this scope; did you mean 'wsrep_thd_is_BF'?
      [build]   621 |   if (wsrep_thd_is_SR(request_thd))
      [build]       |       ^~~~~~~~~~~~~~~
      [build]       |       wsrep_thd_is_BF
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:625:7: error: 'wsrep_thd_is_SR' was not declared in this scope; did you mean 'wsrep_thd_is_BF'?
      [build]   625 |   if (wsrep_thd_is_SR(granted_thd))
      [build]       |       ^~~~~~~~~~~~~~~
      [build]       |       wsrep_thd_is_BF
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc: In function 'void lock_rec_add_to_queue(unsigned int, const hash_cell_t&, page_id_t, const ib_page_t*, ulint, dict_index_t*, trx_t*, bool, bool)':
      [build] /path/to/src/include/mysql/service_wsrep.h:146:55: error: 'struct wsrep_service_st' has no member named 'wsrep_report_bf_lock_wait'; did you mean 'wsrep_report_bf_lock_wait_func'?
      [build]   146 | #define wsrep_report_bf_lock_wait(T,I) wsrep_service->wsrep_report_bf_lock_wait(T,I)
      [build]       |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:1613:33: note: in expansion of macro 'wsrep_report_bf_lock_wait'
      [build]  1613 |                                 wsrep_report_bf_lock_wait(trx->mysql_thd, trx->id);
      [build]       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/include/mysql/service_wsrep.h:146:55: error: 'struct wsrep_service_st' has no member named 'wsrep_report_bf_lock_wait'; did you mean 'wsrep_report_bf_lock_wait_func'?
      [build]   146 | #define wsrep_report_bf_lock_wait(T,I) wsrep_service->wsrep_report_bf_lock_wait(T,I)
      [build]       |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:1614:33: note: in expansion of macro 'wsrep_report_bf_lock_wait'
      [build]  1614 |                                 wsrep_report_bf_lock_wait(other_lock->trx->mysql_thd, other_lock->trx->id);
      [build]       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc: In function 'bool lock_rec_queue_validate(bool, page_id_t, const rec_t*, const dict_index_t*, const rec_offs*)':
      [build] /path/to/src/include/mysql/service_wsrep.h:146:55: error: 'struct wsrep_service_st' has no member named 'wsrep_report_bf_lock_wait'; did you mean 'wsrep_report_bf_lock_wait_func'?
      [build]   146 | #define wsrep_report_bf_lock_wait(T,I) wsrep_service->wsrep_report_bf_lock_wait(T,I)
      [build]       |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:5465:33: note: in expansion of macro 'wsrep_report_bf_lock_wait'
      [build]  5465 |                                 wsrep_report_bf_lock_wait(impl_trx->mysql_thd, impl_trx->id);
      [build]       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/include/mysql/service_wsrep.h:146:55: error: 'struct wsrep_service_st' has no member named 'wsrep_report_bf_lock_wait'; did you mean 'wsrep_report_bf_lock_wait_func'?
      [build]   146 | #define wsrep_report_bf_lock_wait(T,I) wsrep_service->wsrep_report_bf_lock_wait(T,I)
      [build]       |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:5466:33: note: in expansion of macro 'wsrep_report_bf_lock_wait'
      [build]  5466 |                                 wsrep_report_bf_lock_wait(other_lock->trx->mysql_thd, other_lock->trx->id);
      [build]       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/include/mysql/service_wsrep.h:146:55: error: 'struct wsrep_service_st' has no member named 'wsrep_report_bf_lock_wait'; did you mean 'wsrep_report_bf_lock_wait_func'?
      [build]   146 | #define wsrep_report_bf_lock_wait(T,I) wsrep_service->wsrep_report_bf_lock_wait(T,I)
      [build]       |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:5516:41: note: in expansion of macro 'wsrep_report_bf_lock_wait'
      [build]  5516 |                                         wsrep_report_bf_lock_wait(lock->trx->mysql_thd, lock->trx->id);
      [build]       |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/include/mysql/service_wsrep.h:146:55: error: 'struct wsrep_service_st' has no member named 'wsrep_report_bf_lock_wait'; did you mean 'wsrep_report_bf_lock_wait_func'?
      [build]   146 | #define wsrep_report_bf_lock_wait(T,I) wsrep_service->wsrep_report_bf_lock_wait(T,I)
      [build]       |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/lock/lock0lock.cc:5517:41: note: in expansion of macro 'wsrep_report_bf_lock_wait'
      [build]  5517 |                                         wsrep_report_bf_lock_wait(other_lock->trx->mysql_thd, other_lock->trx->id);
      [build]       |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc: In function 'size_t wsrep_normalize_string(int, uint, const unsigned char*, unsigned char*, size_t, size_t)':
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:6275:21: error: 'wsrep_protocol_version' was not declared in this scope; did you mean 'protocol_version'?
      [build]  6275 |                 if (wsrep_protocol_version < 3) {
      [build]       |                     ^~~~~~~~~~~~~~~~~~~~~~
      [build]       |                     protocol_version
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc: In function 'uint16_t wsrep_store_key_val_for_row(THD*, TABLE*, uint, char*, uint, const uchar*, bool*)':
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:6749:29: error: 'wsrep_protocol_version' was not declared in this scope; did you mean 'protocol_version'?
      [build]  6749 |                         if (wsrep_protocol_version > 1) {
      [build]       |                             ^~~~~~~~~~~~~~~~~~~~~~
      [build]       |                             protocol_version
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:6840:29: error: 'wsrep_protocol_version' was not declared in this scope; did you mean 'protocol_version'?
      [build]  6840 |                         if (wsrep_protocol_version > 1) {
      [build]       |                             ^~~~~~~~~~~~~~~~~~~~~~
      [build]       |                             protocol_version
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc: In member function 'virtual int ha_innobase::write_row(const uchar*)':
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:7751:28: error: 'wsrep_drupal_282555_workaround' was not declared in this scope
      [build]  7751 |                         && wsrep_drupal_282555_workaround
      [build]       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc: In member function 'virtual int ha_innobase::update_row(const uchar*, const uchar*)':
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:8656:46: error: 'wsrep_protocol_version' was not declared in this scope; did you mean 'protocol_version'?
      [build]  8656 |                                              wsrep_protocol_version >= 4
      [build]       |                                              ^~~~~~~~~~~~~~~~~~~~~~
      [build]       |                                              protocol_version
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc: In function 'dberr_t wsrep_append_foreign_key(trx_t*, dict_foreign_t*, const rec_t*, dict_index_t*, bool, upd_node_t*, bool, Wsrep_service_key_type)':
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:9907:25: error: 'wsrep_protocol_version' was not declared in this scope; did you mean 'protocol_version'?
      [build]  9907 |         if (upd_node && wsrep_protocol_version < 4) {
      [build]       |                         ^~~~~~~~~~~~~~~~~~~~~~
      [build]       |                         protocol_version
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:10001:17: error: 'wsrep_protocol_version' was not declared in this scope; did you mean 'protocol_version'?
      [build] 10001 |                 wsrep_protocol_version > 1);
      [build]       |                 ^~~~~~~~~~~~~~~~~~~~~~
      [build]       |                 protocol_version
      [build] In file included from /path/to/src/storage/innobase/handler/ha_innodb.cc:151:
      [build] /path/to/src/include/mysql/service_wsrep.h:147:51: error: 'struct wsrep_service_st' has no member named 'wsrep_thd_set_PA_unsafe_func'; did you mean 'wsrep_thd_set_wsrep_PA_unsafe_func'?
      [build]   147 | #define wsrep_thd_set_PA_unsafe(T) wsrep_service->wsrep_thd_set_PA_unsafe_func(T)
      [build]       |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:10082:17: note: in expansion of macro 'wsrep_thd_set_PA_unsafe'
      [build] 10082 |                 wsrep_thd_set_PA_unsafe(trx->mysql_thd);
      [build]       |                 ^~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc: In member function 'int ha_innobase::wsrep_append_keys(THD*, Wsrep_service_key_type, const uchar*, const uchar*)':
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:10205:13: error: 'wsrep_protocol_version' was not declared in this scope; did you mean 'protocol_version'?
      [build] 10205 |         if (wsrep_protocol_version == 0) {
      [build]       |             ^~~~~~~~~~~~~~~~~~~~~~
      [build]       |             protocol_version
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:10327:30: error: 'wsrep_certify_nonPK' was not declared in this scope; did you mean 'wsrep_certify_fn_v1'?
      [build] 10327 |         if (!key_appended && wsrep_certify_nonPK) {
      [build]       |                              ^~~~~~~~~~~~~~~~~~~
      [build]       |                              wsrep_certify_fn_v1
      [build] gmake[3]: *** [storage/innobase/CMakeFiles/innobase.dir/build.make:849: storage/innobase/CMakeFiles/innobase.dir/lock/lock0lock.cc.o] Error 1
      [build] gmake[3]: *** Waiting for unfinished jobs....
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc: In member function 'virtual int ha_innobase::check(THD*, HA_CHECK_OPT*)':
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:15269:17: error: 'print_check_msg' was not declared in this scope
      [build] 15269 |                 print_check_msg(thd, table->s->db.str, table->s->table_name.str,
      [build]       |                 ^~~~~~~~~~~~~~~
      [build] In file included from /path/to/src/sql/sql_class.h:72,
      [build]                  from /path/to/src/sql/sql_acl.h:21,
      [build]                  from /path/to/src/storage/innobase/handler/ha_innodb.cc:42:
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc: In function 'void lock_wait_wsrep_kill(trx_t*, my_thread_id, trx_id_t)':
      [build] /path/to/src/include/wsrep.h:50:22: error: 'wsrep_log_conflicts' was not declared in this scope; did you mean 'wsrep_log_level_t'?
      [build]    50 |   if (wsrep_debug || wsrep_log_conflicts)                               \
      [build]       |                      ^~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/handler/ha_innodb.cc:18818:11: note: in expansion of macro 'WSREP_LOG_CONFLICT'
      [build] 18818 |           WSREP_LOG_CONFLICT(bf_thd, vthd, TRUE);
      [build]       |           ^~~~~~~~~~~~~~~~~~
      [build] gmake[3]: *** [storage/innobase/CMakeFiles/innobase.dir/build.make:765: storage/innobase/CMakeFiles/innobase.dir/handler/ha_innodb.cc.o] Error 1
      [build] In file included from /path/to/src/storage/innobase/row/row0ins.cc:53:
      [build] /path/to/src/storage/innobase/row/row0ins.cc: In function 'dberr_t row_ins_clust_index_entry_low(ulint, btr_latch_mode, dict_index_t*, ulint, dtuple_t*, ulint, que_thr_t*)':
      [build] /path/to/src/include/mysql/service_wsrep.h:130:58: error: 'struct wsrep_service_st' has no member named 'wsrep_thd_is_local_transaction_func'; did you mean 'wsrep_thd_is_local_transaction'?
      [build]   130 | #define wsrep_thd_is_local_transaction(T) wsrep_service->wsrep_thd_is_local_transaction_func(T)
      [build]       |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [build] /path/to/src/storage/innobase/row/row0ins.cc:2767:33: note: in expansion of macro 'wsrep_thd_is_local_transaction'
      [build]  2767 |         if (trx->is_wsrep() && !wsrep_thd_is_local_transaction(trx->mysql_thd))
      [build]       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [build] gmake[3]: *** [storage/innobase/CMakeFiles/innobase.dir/build.make:1171: storage/innobase/CMakeFiles/innobase.dir/row/row0ins.cc.o] Error 1
      [build] gmake[2]: *** [CMakeFiles/Makefile2:6918: storage/innobase/CMakeFiles/innobase.dir/all] Error 2
      

      Attachments

        Activity

          People

            marko Marko Mäkelä
            ParadoxV5 Jimmy Hú
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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