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 #1409

Closed
wants to merge 1 commit into from
Closed

Unbreak build against Boost 1.67 #1409

wants to merge 1 commit into from

Conversation

jbeich
Copy link
Contributor

@jbeich jbeich commented Apr 17, 2018

Regressed by boostorg/thread@1e84b978b2bb. Found downstream (error log).

$ cat foo.cc
#include <boost/thread.hpp>

void foo() {}

int main()
{
  boost::thread thr(foo);
  return 0;
}

$ clang++ -fuse-ld=lld foo.cc -I/usr/local/include -L/usr/local/lib/ -lboost_thread -lboost_system
/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_init
>>> referenced by foo.cc
>>>               /tmp/foo-060c75.o:(boost::pthread::cond_init(pthread_cond*&))

/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_setclock
>>> referenced by foo.cc
>>>               /tmp/foo-060c75.o:(boost::pthread::cond_init(pthread_cond*&))

/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_destroy
>>> referenced by foo.cc
>>>               /tmp/foo-060c75.o:(boost::pthread::cond_init(pthread_cond*&))

/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_init
>>> referenced by src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp
>>>               src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/SMESH_Mesh.cpp.o:(boost::condition_variable::condition_variable())

/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_setclock
>>> referenced by src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp
>>>               src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/SMESH_Mesh.cpp.o:(boost::condition_variable::condition_variable())

/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_destroy
>>> referenced by src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp
>>>               src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/SMESH_Mesh.cpp.o:(boost::condition_variable::condition_variable())
@wwmayer
Copy link
Contributor

wwmayer commented Apr 19, 2018

Merged.

@wwmayer wwmayer closed this Apr 19, 2018
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