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

error: no viable conversion from 'time_point<[...], duration<[...], ratio<[...], 1000000000>>>' to 'time_point<[...], duration<[...], ratio<[...], 1000000>>>'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Won't Fix
    • 22.08.1
    • N/A
    • build
    • None

    Description

      Hi,
      i have problem with compilation source code on FreeBSD with clang. This is issue:

      /maxbase.dir/stopwatch.cc.o.d -o CMakeFiles/maxbase.dir/stopwatch.cc.o -c work/code/FreeBSD-Ports/maxscale/work/MaxScale-22.08.1/maxutils/maxbase/src/stopwatch.cc
      c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
      work/code/FreeBSD-Ports/maxscale/work/MaxScale-22.08.1/maxutils/maxbase/src/stopwatch.cc:224:33: error: no viable conversion from 'time_point<[...], duration<[...], ratio<[...], 1000000000>>>' to 'time_point<[...], duration<[...], ratio<[...], 1000000>>>'
          return wall_time::to_string(in_wall_time, fmt);
                                      ^~~~~~~~~~~~
      /usr/include/c++/v1/chrono:1357:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long long, std::ratio<1, 1000000000>>>' to 'const std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long long, std::ratio<1, 1000000>>> &' for 1st argument
      class _LIBCPP_TEMPLATE_VIS time_point
                                 ^
      /usr/include/c++/v1/chrono:1357:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long long, std::ratio<1, 1000000000>>>' to 'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long long, std::ratio<1, 1000000>>> &&' for 1st argument
      /usr/include/c++/v1/chrono:1376:5: note: candidate template ignored: requirement 'is_convertible<std::chrono::duration<long long, std::ratio<1, 1000000000>>, std::chrono::duration<long long, std::ratio<1, 1000000>>>::value' was not satisfied [with _Duration2 = std::chrono::duration<long long, std::ratio<1, 1000000000>>]
          time_point(const time_point<clock, _Duration2>& t,
          ^
      /usr/include/c++/v1/chrono:1371:70: note: explicit constructor is not a candidate
          _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 explicit time_point(const duration& __d) : __d_(__d) {}
                                                                           ^
      work/code/FreeBSD-Ports/maxscale/work/MaxScale-22.08.1/maxutils/maxbase/include/maxbase/stopwatch.hh:246:33: note: passing argument to parameter 'tp' here
      std::string to_string(TimePoint tp, const std::string& fmt = "%F %T");
      
      

      Attachments

        1. log.txt
          12 kB
          Martin Filla

        Activity

          People

            Unassigned Unassigned
            maxfx Martin Filla
            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.