[MXS-3098] static assertion failed: duration must be a specialization of std::chrono::duration Created: 2020-08-02  Updated: 2020-08-20  Resolved: 2020-08-20

Status: Closed
Project: MariaDB MaxScale
Component/s: cache
Affects Version/s: 2.5.0, 2.5.1
Fix Version/s: 2.5.3

Type: Bug Priority: Blocker
Reporter: Georgios Eleftheriou Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: compilation
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



 Comments   
Comment by markus makela [ 2020-08-18 ]

I think we've seen this, can you try the latest 2.5 branch?

Comment by markus makela [ 2020-08-20 ]

Already fixed.

Generated at Thu Feb 08 04:18:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.