Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 10.1.6
    • Fix Version/s: 10.1
    • Component/s: Compiling
    • Labels:
      None
    • Environment:
      OSX 10.10.4
      gcc (GCC) 4.9.0 20140309

      Description

      I have attempted to install MariaDB 10.1.6, using this command (which worked for previous releases):

      cmake . -DBUILD_CONFIG=mysql_release

      But after a while I get this error

      [ 67%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/command.c.o
      [ 67%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/ctx.c.o
      [ 67%] Building C object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/ctx_impl_mrb.c.o
      [ 67%] Building CXX object storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/dat.cpp.o
      /Users/dummy/install/build/mariadb-10.1.6/storage/mroonga/vendor/groonga/lib/dat.cpp:191:3: error: cannot use 'try' with exceptions disabled
        try {
        ^
      /Users/dummy/install/build/mariadb-10.1.6/storage/mroonga/vendor/groonga/lib/dat.cpp:222:3: error: cannot use 'try' with exceptions disabled
        try {
        ^
      /Users/dummy/install/build/mariadb-10.1.6/storage/mroonga/vendor/groonga/lib/dat.cpp:423:3: error: cannot use 'try' with exceptions disabled
        try {
        ^
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            Kentoku, Sergey Vojtovich,
            Is Mroonga supposed to be supported on OSX?

            Show
            elenst Elena Stepanova added a comment - Kentoku , Sergey Vojtovich , Is Mroonga supposed to be supported on OSX?
            Hide
            serg Sergei Golubchik added a comment -

            This must be something specific to gcc-4.9 on OSX.

            We build 10.1 with gcc 4.9 (for example, on Debian sid) and we build 10.1 on OSX with gcc (but with 4.2.1). Everything builds fine in both cases.

            Show
            serg Sergei Golubchik added a comment - This must be something specific to gcc-4.9 on OSX. We build 10.1 with gcc 4.9 (for example, on Debian sid) and we build 10.1 on OSX with gcc (but with 4.2.1). Everything builds fine in both cases.
            Hide
            datacharmer Giuseppe Maxia added a comment -

            The same commands used for 10.1.6 can compile without errors for 10.1.5

            I am using these source tarballs:
            MD5 (mariadb-10.1.5.tar.gz) = c6315c39d068aa4e88cb502cdaa51dc8
            MD5 (mariadb-10.1.6.tar.gz) = 431031e34223d1ec5e21aed67a0e7990

            cmake . -DBUILD_CONFIG=mysql_release && make && ./scripts/make_binary_distribution

            Show
            datacharmer Giuseppe Maxia added a comment - The same commands used for 10.1.6 can compile without errors for 10.1.5 I am using these source tarballs: MD5 (mariadb-10.1.5.tar.gz) = c6315c39d068aa4e88cb502cdaa51dc8 MD5 (mariadb-10.1.6.tar.gz) = 431031e34223d1ec5e21aed67a0e7990 cmake . -DBUILD_CONFIG=mysql_release && make && ./scripts/make_binary_distribution
            Hide
            serg Sergei Golubchik added a comment -

            Yes, because Mroonga was disabled in 10.1.5 and below. 10.1.6 is the first version where Mroonga is enabled (see MDEV-7246). You can disable it in your builds as a workaround.

            Show
            serg Sergei Golubchik added a comment - Yes, because Mroonga was disabled in 10.1.5 and below. 10.1.6 is the first version where Mroonga is enabled (see MDEV-7246 ). You can disable it in your builds as a workaround.
            Hide
            Dan Dan added a comment -

            Not sure, if this fully applies to this, problem. But it seems related. Here is a fix (patch at the end of the pull request) for building mroonga with clang(++).

            https://github.com/Homebrew/homebrew/pull/42233

            Show
            Dan Dan added a comment - Not sure, if this fully applies to this, problem. But it seems related. Here is a fix (patch at the end of the pull request) for building mroonga with clang(++). https://github.com/Homebrew/homebrew/pull/42233
            Hide
            datacharmer Giuseppe Maxia added a comment -

            @Dan,
            your patch solved my problem.
            Thanks

            Show
            datacharmer Giuseppe Maxia added a comment - @Dan, your patch solved my problem. Thanks
            Hide
            danblack Daniel Black added a comment -

            Dan thanks - did PR for mariadb https://github.com/MariaDB/server/pull/89

            Show
            danblack Daniel Black added a comment - Dan thanks - did PR for mariadb https://github.com/MariaDB/server/pull/89

              People

              • Assignee:
                Kentoku Kentoku
                Reporter:
                datacharmer Giuseppe Maxia
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: