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

Compilation fails in storage/innobase/include/trx0trx.h

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Duplicate
    • 11.7.2, 11.8.1
    • N/A
    • None
    • openSUSE

    Description

      As I noted in:
      https://github.com/MariaDB/server/commit/43233fe469fd85d7c64978f01ed68de3288d43cc#commitcomment-152671962

      It looks like this change (commit 43233fe469fd85d7) breaks the build in openSUSE (it looks like we build with assertions enabled). See below.

      Should the assert() be inside:

      #ifdef UNIV_DEBUG
      #endif
      

      now?

      [   49s] + /usr/bin/cmake /home/abuild/rpmbuild/BUILD/mariadb-11.7.2-build/mariadb-11.7.2/. '-GUnix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=bin -DCMAKE_INSTALL_SBINDIR:PATH=sbin -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec -DCMAKE_INSTALL_SYSCONFDIR:PATH=etc -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=/var/lib -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=var -DCMAKE_INSTALL_RUNSTATEDIR:PATH=run -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_INCLUDEDIR:PATH=include -DCMAKE_INSTALL_DATAROOTDIR:PATH=share -DCMAKE_INSTALL_DOCDIR:PATH=share/doc/packages/mariadb -DCMAKE_INSTALL_MANDIR:PATH=share/man -DCMAKE_INSTALL_INFODIR:PATH=share/info -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_C_FLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g -DOPENSSL_LOAD_CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter -Wno-error' '-DCMAKE_CXX_FLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g -DOPENSSL_LOAD_CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter -Wno-error -felide-constructors' '-DCMAKE_Fortran_FLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g' '-DCMAKE_EXE_LINKER_FLAGS=-flto=auto -ffat-lto-objects -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' '-DCMAKE_MODULE_LINKER_FLAGS=-flto=auto -ffat-lto-objects -Wl,--as-needed' '-DCMAKE_SHARED_LINKER_FLAGS=-flto=auto -ffat-lto-objects -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DCMAKE_COLOR_MAKEFILE:BOOL=OFF -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_MODULES_INSTALL_DIR=/usr/lib64/cmake/mariadb -DWITH_SSL=system -DWITH_LIBWRAP=ON -DENABLED_PROFILING=ON -DENABLE_DEBUG_SYNC=OFF -DWITH_PIC=ON -DWITH_ZLIB=system -DWITH_LIBEVENT=system -DWITH_JEMALLOC=no -DWITH_READLINE=0 -DWITH_LIBEDIT=0 -DWITH_EDITLINE=system -DINSTALL_LAYOUT=RPM -DWITH_LZ4=system -DMYSQL_UNIX_ADDR=/run/mysql/mysql.sock -DINSTALL_UNIX_ADDRDIR=/run/mysql/mysql.sock -DINSTALL_MYSQLSHAREDIR=share/mariadb '-DWITH_COMMENT=MariaDB rpm' -DWITH_EXTRA_CHARSET=all -DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_COLLATION=utf8mb4_unicode_520_ci -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DPYTHON_SHEBANG=/usr/bin/python3 -DWITH_XTRADB_STORAGE_ENGINE=1 -DWITH_CSV_STORAGE_ENGINE=1 -DWITH_HANDLERSOCKET_STORAGE_ENGINE=1 -DWITH_INNODB_MEMCACHED=ON -DWITH_EMBEDDED_SERVER=true -DWITH_WSREP=ON -DWITH_INNODB_DISALLOW_WRITES=1 -DWITH_LIBARCHIVE=ON -DWITH_MARIABACKUP=ON '-DCOMPILATION_COMMENT=MariaDB package' -DDENABLE_DOWNLOADS=false -DINSTALL_PLUGINDIR_RPM=lib64/mysql/plugin -DINSTALL_LIBDIR_RPM=lib64 -DINSTALL_SYSCONF2DIR=/etc/my.cnf.d '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g -DOPENSSL_LOAD_CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter -Wno-error' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g -DOPENSSL_LOAD_CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter -Wno-error -felide-constructors' -DCMAKE_BUILD_TYPE=RelWithDebInfo -DINSTALL_SQLBENCHDIR=share '-DCMAKE_C_FLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g -DOPENSSL_LOAD_CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter -Wno-error' '-DCMAKE_CXX_FLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g -DOPENSSL_LOAD_CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS -Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter -Wno-error -felide-constructors' '-DCMAKE_EXE_LINKER_FLAGS=-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions' '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions' '-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions' -DCMAKE_SKIP_RPATH=OFF -DCMAKE_SKIP_INSTALL_RPATH=ON -Wno-dev ..
      ...
      [  359s] /home/abuild/rpmbuild/BUILD/mariadb-11.7.2-build/mariadb-11.7.2/storage/innobase/include/trx0trx.h: In member function ‘void trx_t::mutex_lock()’:
      [  359s] /home/abuild/rpmbuild/BUILD/mariadb-11.7.2-build/mariadb-11.7.2/storage/innobase/include/trx0trx.h:674:13: error: ‘mutex_owner’ was not declared in this scope
      [  359s]   674 |     assert(!mutex_owner.exchange(pthread_self(),
      [  359s]       |             ^~~~~~~~~~~
      

      This is currently failing at:
      https://build.opensuse.org/package/live_build_log/home:ateixeira:branches:server:database/mariadb/openSUSE_Tumbleweed/x86_64

      Attachments

        Issue Links

          Activity

            People

              cvicentiu Vicențiu Ciorbaru
              jirislaby Jiri Slaby
              Votes:
              0 Vote for this issue
              Watchers:
              7 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.