Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbreak build against Boost 1.67 #170

Closed
wants to merge 1 commit into from
Closed

Unbreak build against Boost 1.67 #170

wants to merge 1 commit into from

Conversation

jbeich
Copy link
Contributor

@jbeich jbeich commented Apr 15, 2018

Regressed by boostorg/date_time@f9f2aaf5216c. Found downstream (error log).
UHD < 3.11 (e.g., release_003_010_003_000 tag) also need 305d0e7:

const double CLOCK_TIMEOUT = 1000; // 1000mS timeout for external clock locking

+ boost::posix_time::milliseconds( (rx_channel_nums.size() <= 1 and tx_channel_nums.size() <= 1) ? 0 : (INIT_DELAY * 1000))

@jbeich jbeich mentioned this pull request Apr 15, 2018
4 tasks
lib/libuhd.so.3.12: undefined reference to `gps_ctrl_impl::GPSDO_COMMAND_DELAY_MS'
lib/libuhd.so.3.12: undefined reference to `uhd::usrprio_rpc::usrprio_rpc_client::DEFAULT_TIMEOUT_IN_MS'
lib/libuhd.so.3.12: undefined reference to `uhd::niusrprio::niusrprio_session::FPGA_READY_TIMEOUT_IN_MS'

host/lib/usrp/cores/rx_vita_core_3000.cpp:67:35: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::milliseconds' (aka 'subsecond_duration<boost::posix_time::time_duration, 1000>')
        boost::this_thread::sleep(boost::posix_time::milliseconds(1.0));
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
host/lib/usrp/x300/x300_impl.cpp:1533:66: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::milliseconds' (aka 'subsecond_duration<boost::posix_time::time_duration, 1000>')
    boost::system_time timeout_time = boost::get_system_time() + boost::posix_time::milliseconds(timeout * 1000.0);
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
host/examples/rx_samples_to_file.cpp:177:64: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::seconds'
                (boost::get_system_time() > (first_lock_time + boost::posix_time::seconds(setup_time))))
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
host/examples/rx_samples_to_file.cpp:191:53: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::seconds'
            if (boost::get_system_time() > (start + boost::posix_time::seconds(setup_time))){
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
host/examples/tx_samples_from_file.cpp:200:39: error: no matching conversion for functional-style cast from 'double' to 'boost::posix_time::milliseconds' (aka 'subsecond_duration<boost::posix_time::time_duration, 1000>')
            boost::this_thread::sleep(boost::posix_time::milliseconds(delay));
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/time_duration.hpp:270:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>' for 1st argument
  class BOOST_SYMBOL_VISIBLE subsecond_duration : public base_duration
                             ^
/usr/local/include/boost/date_time/time_duration.hpp:270:30: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'double' to 'boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>' for 1st argument
/usr/local/include/boost/date_time/time_duration.hpp:286:59: note: candidate template ignored: disabled by 'enable_if' [with T = double]
                                typename boost::enable_if<boost::is_integral<T>, void>::type* = 0) :
                                                          ^
@mbr0wn
Copy link
Contributor

mbr0wn commented Apr 16, 2018

@jbeich Thanks a lot for submitting this! We're already looking into some of these errors, although our solution is to go straight to C++11 time features. However, we'll probably pull in some of these changes.

@mbr0wn
Copy link
Contributor

mbr0wn commented Apr 17, 2018

I've manually pulled this into our CI system, the changes should go live soon. Note that I had to change the commit as we'd already fixed some changes by moving to std::chrono.

@mbr0wn mbr0wn closed this Apr 17, 2018
@mbr0wn
Copy link
Contributor

mbr0wn commented Apr 17, 2018

Many thanks again for doing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants