Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701700 - net-wireless/gr-baz-9999 - .../work/gr-baz-9999/lib/baz_burster.cc:225:62: error: no matching function for call to ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000>::subsecond_duration(double)’
Summary: net-wireless/gr-baz-9999 - .../work/gr-baz-9999/lib/baz_burster.cc:225:62: er...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-01 23:09 UTC by Aaron D Borden
Modified: 2020-10-21 06:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,6.27 KB, text/plain)
2019-12-01 23:09 UTC, Aaron D Borden
Details
build.log (build.log,29.29 KB, text/plain)
2019-12-01 23:10 UTC, Aaron D Borden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron D Borden 2019-12-01 23:09:46 UTC
Created attachment 598184 [details]
emerge --info

dev-libs/gr-baz-9999 is currently failing against =dev-libs/boost-1.71.

```
/var/tmp/portage/net-wireless/gr-baz-9999/work/gr-baz-9999/lib/baz_burster.cc: In member function ‘virtual int baz_burster::general_work(int, gr_vector_int&, gr_vector_const_void_star&, gr_vector_void_star&)’:
/var/tmp/portage/net-wireless/gr-baz-9999/work/gr-baz-9999/lib/baz_burster.cc:225:62: error: no matching function for call to ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000>::subsecond_duration(double)’
       if (diff >= boost::posix_time::microseconds(limit * 1e6))
                                                              ^
In file included from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:16,
                 from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13,
                 from /usr/include/boost/date_time/posix_time/ptime.hpp:12,
                 from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12,
                 from /usr/include/boost/thread/thread_time.hpp:11,
                 from /usr/include/boost/thread/lock_types.hpp:18,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread_only.hpp:17,
                 from /usr/include/boost/thread/thread.hpp:12,
                 from /var/tmp/portage/net-wireless/gr-baz-9999/work/gr-baz-9999/lib/baz_burster.h:32,
                 from /var/tmp/portage/net-wireless/gr-baz-9999/work/gr-baz-9999/lib/baz_burster.cc:34:
/usr/include/boost/date_time/time_duration.hpp:285:14: note: candidate: ‘template<class T> boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(const T&, typename boost::enable_if<boost::is_integral<T>, void>::type*)’
     explicit subsecond_duration(T const& ss,
```

I was able to to downgrade to =dev-libs/boost-1.65 and gr-baz compiles successfully.
Comment 1 Aaron D Borden 2019-12-01 23:10:35 UTC
Created attachment 598186 [details]
build.log
Comment 2 Aaron D Borden 2019-12-01 23:12:58 UTC
Looks like there is a fix upstream, to cast the double to long.

https://github.com/balint256/gr-baz/pull/56
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-10-21 06:33:30 UTC
Package removed.