Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-3098

static assertion failed: duration must be a specialization of std::chrono::duration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.5.0, 2.5.1
    • Fix Version/s: 2.5.3
    • Component/s: cache
    • Labels:
    • Environment:
      arch linux x86_64,
      gcc version 10.1.0

      Description

      In file included from /usr/include/c++/10.1.0/thread:43,
                       from /builder/maxscale/src/maxscale-2.5.1/maxutils/maxbase/include/maxbase/worker.hh:22,
                       from /builder/maxscale/src/maxscale-2.5.1/include/maxscale/dcb.hh:25,
                       from /builder/maxscale/src/maxscale-2.5.1/include/maxscale/session.hh:21,
                       from /builder/maxscale/src/maxscale-2.5.1/server/modules/filter/cache/test/../cache.hh:21,
                       from /builder/maxscale/src/maxscale-2.5.1/server/modules/filter/cache/test/tester.cc:18:
      /usr/include/c++/10.1.0/chrono: In instantiation of 'struct std::chrono::time_point<std::chrono::_V2::steady_clock, maxbase::Duration>':
      /builder/maxscale/src/maxscale-2.5.1/maxutils/maxbase/include/maxbase/stopwatch.hh:123:15:   required from here
      /usr/include/c++/10.1.0/chrono:764:37: error: static assertion failed: duration must be a specialization of std::chrono::duration
        764 |  static_assert(__is_duration<_Dur>::value,
            |                                     ^~~~~
      make[2]: *** [server/modules/filter/cache/test/CMakeFiles/cachetester.dir/build.make:82: server/modules/filter/cache/test/CMakeFiles/cachetester.dir/tester.cc.o] Error 1
      make[1]: *** [CMakeFiles/Makefile2:5136: server/modules/filter/cache/test/CMakeFiles/cachetester.dir/all] Error 2
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            eleftg Georgios Eleftheriou
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.