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

Build error in sql/mdl.cc on OS X 10.10

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.4
    • Fix Version/s: 10.1.5
    • Component/s: Compiling
    • Labels:
      None
    • Environment:
      Mac OS X 10.10.

      Description

      cmake ../server/ -DBUILD_CONFIG=mysql_release -DWITH_WSREP=OFF -DPLUGIN_TOKUDB=NO -DPLUGIN_MROONGA=NO
      
      [ 43%] Building CXX object sql/CMakeFiles/sql.dir/mdl.cc.o
      /Users/kolbe/Devel/git/maria/server/sql/mdl.cc:562:43: error: default initialization of an object of const type 'const MDL_lock::MDL_scoped_lock' requires a user-provided default constructor
      const MDL_lock::MDL_scoped_lock MDL_lock::m_scoped_lock_strategy;
                                                ^
      /Users/kolbe/Devel/git/maria/server/sql/mdl.cc:563:43: error: default initialization of an object of const type 'const MDL_lock::MDL_object_lock' requires a user-provided default constructor
      const MDL_lock::MDL_object_lock MDL_lock::m_object_lock_strategy;
                                                ^
      /Users/kolbe/Devel/git/maria/server/sql/mdl.cc:669:39: warning: offset of on non-POD type 'MDL_key' [-Winvalid-offsetof]
        MDL_key *mdl_key= (MDL_key*) (key - offsetof(MDL_key, m_ptr));
                                            ^                 ~~~~~
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include/stddef.h:87:24: note: expanded from macro 'offsetof'
      #define offsetof(t, d) __builtin_offsetof(t, d)
                             ^
      1 warning and 2 errors generated.
      make[2]: *** [sql/CMakeFiles/sql.dir/mdl.cc.o] Error 1
      make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
      make: *** [all] Error 2
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              danblack Daniel Black added a comment - - edited

              Also fails with clang-3.4 on ubuntu x86_64 https://travis-ci.org/openquery/mariadb-server/jobs/60551855

              This is the only error in the build. Plenty of warnings (that should be addressed) however.

              edit: removed 10.0 tag - think i merged 10.1 into my build accidentally.

              Show
              danblack Daniel Black added a comment - - edited Also fails with clang-3.4 on ubuntu x86_64 https://travis-ci.org/openquery/mariadb-server/jobs/60551855 This is the only error in the build. Plenty of warnings (that should be addressed) however. edit: removed 10.0 tag - think i merged 10.1 into my build accidentally.
              Hide
              danblack Daniel Black added a comment -

              thanks for the quick fix. confirmed as building as expected. https://travis-ci.org/openquery/mariadb-server/jobs/60670668

              Nice background research in the bug.

              I raised a llvm/clang bug report: https://llvm.org/bugs/show_bug.cgi?id=23381

              Show
              danblack Daniel Black added a comment - thanks for the quick fix. confirmed as building as expected. https://travis-ci.org/openquery/mariadb-server/jobs/60670668 Nice background research in the bug. I raised a llvm/clang bug report: https://llvm.org/bugs/show_bug.cgi?id=23381

                People

                • Assignee:
                  svoj Sergey Vojtovich
                  Reporter:
                  kolbe Kolbe Kegel
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: