[odb-users] Failed to Build odb with Clang and libc++
Boris Kolpackov
boris at codesynthesis.com
Mon Apr 18 10:14:53 EDT 2016
Hi Tony,
Tony Lin <tony.lin at ringcentral.com> writes:
> ./configure CC=clang CXX=clang++ CXXFLAGS="-Os -pthread ...
>
> checking for the pthreads library -lpthreads... no
> checking for the pthreads library -lpthread... no
> checking whether pthreads work without any flags... no
> checking whether pthreads work with -Kthread... no
> checking whether pthreads work with -kthread... no
> checking for the pthreads library -llthread... no
> checking whether pthreads work with -pthread... no
> checking whether pthreads work with -pthreads... no
> checking whether pthreads work with -mthreads... no
> checking whether pthreads work with --thread-safe... no
> checking whether pthreads work with -mt... no
> checking for pthread-config... no
> configure: error: thread support not available; use --disable-threads to force single-threaded mode
First try to remove -pthread from CXXFLAGS. ODB will try to figure
out which option to use automatically. If that doesn't help, look into
config.log for details on why the thread test fails.
Boris
More information about the odb-users
mailing list