icecc / icecream

Distributed compiler with a central scheduler to share build load
GNU General Public License v2.0
1.58k stars 250 forks source link

Resolve conflict between std::bind and bind(2) #438

Closed lwhsu closed 5 years ago

lwhsu commented 5 years ago

Thanks, I was trying to build icecream on FreeBSD 12.0, and the system default clang 6 gives:

main.cpp:585:38: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int')
                     sizeof(myaddr)) < 0) {
                     ~~~~~~~~~~~~~~~ ^ ~
/usr/include/c++/v1/system_error:492:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *, unsigned long>' to 'const std::__1::error_condition' for 1st argument
operator<(const error_condition& __x, const error_condition& __y) _NOEXCEPT
^
...
HenryMiller1 commented 5 years ago

Cool. There are apparently free ci systems that support freebsd now, it would be nice if you could add support for one so that we can keep freebsd building. (better yet make the tests work)

Henry Miller hank@millerfarm.com

On Wed, Dec 12, 2018, at 7:53 PM, Li-Wen Hsu wrote:

Thanks, I was trying to build icecream on FreeBSD 12.0, and the system default clang 6 gives:

main.cpp:585:38: error: invalid operands to binary expression ('bind<int &, sockaddr , unsigned long>' and 'int') sizeof(myaddr)) < 0) { ~~~ ^ ~ /usr/include/c++/v1/system_error:492:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr , unsigned long>' to 'const std::1::error_condition' for 1st argument operator<(const error_condition& x, const error_condition& y) _NOEXCEPT ^ ...

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub[1], or mute the thread[2]. Links:

  1. https://github.com/icecc/icecream/pull/438#issuecomment-446813163
  2. https://github.com/notifications/unsubscribe-auth/AI8oEt3l9B60-AsS-4fB9EPI7pS_iYmTks5u4bMsgaJpZM4ZPIVc