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

Compilation errors in debug build

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.1.30
    • N/A
    • Compiling
    • None
    • Fedora 26

    Description

      Hello,
      I was trying to make a debug build of 10.1.30 on Fedora 26, but I was unsuccesfull.

      Errors slightly differ by arch:

      x86_64

      [ 38%] Building CXX object storage/xtradb/CMakeFiles/xtradb.dir/eval/eval0eval.cc.o
      cd /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb && /usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_64=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_BYTE=1 -DHAVE_IB_GCC_ATOMIC_TEST_AND_SET=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_POSIX_MEMALIGN -DHAVE_SYSTEMD -DLINUX_NATIVE_AIO=1 -DSIZEOF_PTHREAD_T=8 -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/mariadb-10.1.30/include -I/builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include -I/builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/handler -I/builddir/build/BUILD/mariadb-10.1.30/sql  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -fPIC -fno-exceptions -fno-rtti   -DUNIV_LINUX -D_GNU_SOURCE=1  -fvisibility=hidden -o CMakeFiles/xtradb.dir/eval/eval0eval.cc.o -c /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/eval/eval0eval.cc
      In file included from /builddir/build/BUILD/mariadb-10.1.30/include/my_global.h:1051:0,
                       from /builddir/build/BUILD/mariadb-10.1.30/sql/sql_plugin.h:28,
                       from /builddir/build/BUILD/mariadb-10.1.30/sql/item_func.cc:28:
      /builddir/build/BUILD/mariadb-10.1.30/sql/item_func.cc: In member function 'virtual longlong Item_func_sleep::val_int()':
      /builddir/build/BUILD/mariadb-10.1.30/sql/item_func.cc:4609:7: error: 'debug_sync_set_action' was not declared in this scope
             debug_sync_set_action
             ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:88:50: note: in definition of macro 'DBUG_EXECUTE_IF'
               do {if (_db_keyword_(0, (keyword), 1)) { a1 }} while(0)
                                                        ^~
      /builddir/build/BUILD/mariadb-10.1.30/sql/item_func.cc:4609:7: note: suggested alternative: 'debug_sync_service'
             debug_sync_set_action
             ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:88:50: note: in definition of macro 'DBUG_EXECUTE_IF'
               do {if (_db_keyword_(0, (keyword), 1)) { a1 }} while(0)
                                                        ^~
      

      armv7hl

       25%] Building C object storage/myisam/CMakeFiles/myisam.dir/mi_write.c.o
      cd /builddir/build/BUILD/mariadb-10.1.30/storage/myisam && /usr/bin/cc -DHAVE_CONFIG_H -DHAVE_SYSTEMD -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/mariadb-10.1.30/include -I/builddir/build/BUILD/mariadb-10.1.30/sql  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -fPIC    -fvisibility=hidden -o CMakeFiles/myisam.dir/mi_write.c.o   -c /builddir/build/BUILD/mariadb-10.1.30/storage/myisam/mi_write.c
      In file included from /builddir/build/BUILD/mariadb-10.1.30/include/my_global.h:1051:0,
                       from /builddir/build/BUILD/mariadb-10.1.30/sql/sql_plugin.h:28,
                       from /builddir/build/BUILD/mariadb-10.1.30/sql/item_func.cc:28:
      /builddir/build/BUILD/mariadb-10.1.30/sql/item_func.cc: In member function 'virtual longlong Item_func_sleep::val_int()':
      /builddir/build/BUILD/mariadb-10.1.30/sql/item_func.cc:4609:7: error: 'debug_sync_set_action' was not declared in this scope
             debug_sync_set_action
             ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:88:50: note: in definition of macro 'DBUG_EXECUTE_IF'
               do {if (_db_keyword_(0, (keyword), 1)) { a1 }} while(0)
                                                        ^~
      /builddir/build/BUILD/mariadb-10.1.30/sql/item_func.cc:4609:7: note: suggested alternative: 'debug_sync_service'
             debug_sync_set_action
             ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:88:50: note: in definition of macro 'DBUG_EXECUTE_IF'
               do {if (_db_keyword_(0, (keyword), 1)) { a1 }} while(0)
                                                        ^~
      

      ppc64le

      [ 31%] Building CXX object storage/xtradb/CMakeFiles/xtradb.dir/fts/fts0que.cc.o
      cd /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb && /usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_64=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_BYTE=1 -DHAVE_IB_GCC_ATOMIC_TEST_AND_SET=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_POSIX_MEMALIGN -DHAVE_SYSTEMD -DLINUX_NATIVE_AIO=1 -DSIZEOF_PTHREAD_T=8 -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/mariadb-10.1.30/include -I/builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include -I/builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/handler -I/builddir/build/BUILD/mariadb-10.1.30/sql  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mcpu=power8 -mtune=power8 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -fPIC -fno-exceptions -fno-rtti   -DUNIV_LINUX -D_GNU_SOURCE=1  -fvisibility=hidden -o CMakeFiles/xtradb.dir/fts/fts0que.cc.o -c /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc
      In file included from /builddir/build/BUILD/mariadb-10.1.30/include/my_global.h:1051:0,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include/univ.i:104,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include/dict0dict.h:31,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:28:
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc: In function 'dberr_t fts_query_visitor(fts_ast_oper_t, fts_ast_node_t*, void*)':
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:2862:37: error: 'fts_ast_node_type_get' was not declared in this scope
        DBUG_PRINT("fts", ("nodetype: %s", fts_ast_node_type_get(node->type)));
                                           ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:94:55: note: in definition of macro 'DBUG_PRINT'
               do {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;} while(0)
                                                             ^~~~~~~
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:2862:37: note: suggested alternative: 'fts_ast_node_print'
        DBUG_PRINT("fts", ("nodetype: %s", fts_ast_node_type_get(node->type)));
                                           ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:94:55: note: in definition of macro 'DBUG_PRINT'
               do {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;} while(0)
                                                             ^~~~~~~
      

      ppc64

      [ 29%] Building CXX object storage/xtradb/CMakeFiles/xtradb.dir/fts/fts0que.cc.o
      cd /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb && /usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_64=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_BYTE=1 -DHAVE_IB_GCC_ATOMIC_TEST_AND_SET=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_POSIX_MEMALIGN -DHAVE_SYSTEMD -DLINUX_NATIVE_AIO=1 -DSIZEOF_PTHREAD_T=8 -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/mariadb-10.1.30/include -I/builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include -I/builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/handler -I/builddir/build/BUILD/mariadb-10.1.30/sql  -O3 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -fPIC -fno-exceptions -fno-rtti   -DUNIV_LINUX -D_GNU_SOURCE=1  -fvisibility=hidden -o CMakeFiles/xtradb.dir/fts/fts0que.cc.o -c /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc
      In file included from /builddir/build/BUILD/mariadb-10.1.30/include/my_global.h:1051:0,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include/univ.i:104,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include/dict0dict.h:31,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:28:
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc: In function 'dberr_t fts_query_visitor(fts_ast_oper_t, fts_ast_node_t*, void*)':
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:2862:37: error: 'fts_ast_node_type_get' was not declared in this scope
        DBUG_PRINT("fts", ("nodetype: %s", fts_ast_node_type_get(node->type)));
                                           ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:94:55: note: in definition of macro 'DBUG_PRINT'
               do {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;} while(0)
                                                             ^~~~~~~
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:2862:37: note: suggested alternative: 'fts_ast_node_print'
        DBUG_PRINT("fts", ("nodetype: %s", fts_ast_node_type_get(node->type)));
                                           ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:94:55: note: in definition of macro 'DBUG_PRINT'
               do {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;} while(0)
                                                             ^~~~~~~
      /builddir/build/BUILD/mariadb-10.1.30/plugin/feedback/url_http.cc: In member function 'virtual int feedback::Url_http::send(const char*, size_t)':
      /builddir/build/BUILD/mariadb-10.1.30/plugin/feedback/url_http.cc:333:12: warning: 'ssl_fd' may be used uninitialized in this function [-Wmaybe-uninitialized]
           my_free(ssl_fd);
           ~~~~~~~^~~~~~~~
      

      aarch64

      [ 46%] Building C object storage/maria/CMakeFiles/aria_embedded.dir/ma_sp_key.c.o
      cd /builddir/build/BUILD/mariadb-10.1.30/storage/maria && /usr/bin/cc -DEMBEDDED_LIBRARY -DHAVE_CONFIG_H -DHAVE_SYSTEMD -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/mariadb-10.1.30/include -I/builddir/build/BUILD/mariadb-10.1.30/sql  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -fPIC    -fvisibility=hidden -o CMakeFiles/aria_embedded.dir/ma_sp_key.c.o   -c /builddir/build/BUILD/mariadb-10.1.30/storage/maria/ma_sp_key.c
      In file included from /builddir/build/BUILD/mariadb-10.1.30/include/my_global.h:1051:0,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include/univ.i:104,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/include/dict0dict.h:31,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:28:
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc: In function 'dberr_t fts_query_visitor(fts_ast_oper_t, fts_ast_node_t*, void*)':
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:2862:37: error: 'fts_ast_node_type_get' was not declared in this scope
        DBUG_PRINT("fts", ("nodetype: %s", fts_ast_node_type_get(node->type)));
                                           ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:94:55: note: in definition of macro 'DBUG_PRINT'
               do {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;} while(0)
                                                             ^~~~~~~
      /builddir/build/BUILD/mariadb-10.1.30/storage/xtradb/fts/fts0que.cc:2862:37: note: suggested alternative: 'fts_ast_node_print'
        DBUG_PRINT("fts", ("nodetype: %s", fts_ast_node_type_get(node->type)));
                                           ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:94:55: note: in definition of macro 'DBUG_PRINT'
               do {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;} while(0)
                                                             ^~~~~~~
      

      i686

      [ 42%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/fts/fts0que.cc.o
      cd /builddir/build/BUILD/mariadb-10.1.30/storage/innobase && /usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_64=1 -DHAVE_IB_GCC_ATOMIC_BUILTINS_BYTE=1 -DHAVE_IB_GCC_ATOMIC_TEST_AND_SET=1 -DHAVE_IB_GCC_ATOMIC_THREAD_FENCE=1 -DHAVE_IB_GCC_SYNC_SYNCHRONISE=1 -DHAVE_POSIX_MEMALIGN -DHAVE_SYSTEMD -DLINUX_NATIVE_AIO=1 -DMYSQL_DYNAMIC_PLUGIN -DSIZEOF_PTHREAD_T=4 -D_FILE_OFFSET_BITS=64 -Dinnobase_EXPORTS -I/builddir/build/BUILD/mariadb-10.1.30/include -I/builddir/build/BUILD/mariadb-10.1.30/storage/innobase/include -I/builddir/build/BUILD/mariadb-10.1.30/storage/innobase/handler -I/builddir/build/BUILD/mariadb-10.1.30/sql  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -fPIC -fno-exceptions -fno-rtti -fPIC   -DUNIV_LINUX -D_GNU_SOURCE=1 -o CMakeFiles/innobase.dir/fts/fts0que.cc.o -c /builddir/build/BUILD/mariadb-10.1.30/storage/innobase/fts/fts0que.cc
      In file included from /builddir/build/BUILD/mariadb-10.1.30/include/my_global.h:1051:0,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/innobase/include/univ.i:96,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/innobase/include/dict0dict.h:31,
                       from /builddir/build/BUILD/mariadb-10.1.30/storage/innobase/fts/fts0que.cc:28:
      /builddir/build/BUILD/mariadb-10.1.30/storage/innobase/fts/fts0que.cc: In function 'dberr_t fts_query_visitor(fts_ast_oper_t, fts_ast_node_t*, void*)':
      /builddir/build/BUILD/mariadb-10.1.30/storage/innobase/fts/fts0que.cc:2842:37: error: 'fts_ast_node_type_get' was not declared in this scope
        DBUG_PRINT("fts", ("nodetype: %s", fts_ast_node_type_get(node->type)));
                                           ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:94:55: note: in definition of macro 'DBUG_PRINT'
               do {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;} while(0)
                                                             ^~~~~~~
      /builddir/build/BUILD/mariadb-10.1.30/storage/innobase/fts/fts0que.cc:2842:37: note: suggested alternative: 'fts_ast_node_print'
        DBUG_PRINT("fts", ("nodetype: %s", fts_ast_node_type_get(node->type)));
                                           ^
      /builddir/build/BUILD/mariadb-10.1.30/include/my_dbug.h:94:55: note: in definition of macro 'DBUG_PRINT'
               do {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;} while(0)
                                                             ^~~~~~~
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            mschorm Michal Schorm
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.