[odb-users] Failed to Build odb with Clang and libc++
Tony Lin
tony.lin at ringcentral.com
Sat Apr 16 03:03:28 EDT 2016
Hi Sir/Madam,
I tried to build odb with clang and the STL libc++ as below steps and failed for checking pthread. Can you please help look to this?
1. Build Android toolchain
./make-standalone-toolchain.sh --verbose --platform=android-23 --toolchain=arm-linux-androideabi-4.9 --use-llvm --stl=libc++ --install-dir=/Users/tony.lin/Library/Android/android-ndk-r11c/mytoolchains --ndk-dir=/Users/tony.lin/Library/Android/android-ndk-r11c
2. Configure and Make
./configure CC=clang CXX=clang++ CXXFLAGS="-Os -pthread --std=c++11 --stdlib=libc++" --disable-shared --host=arm-linux-androideabi --prefix=`pwd`/../install; make;
…
checking whether the clang++ linker (/Users/tony.lin/Library/Android/android-ndk-r11c/mytoolchains/arm-linux-androideabi/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.lt
config.lt: creating libtool
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
Br,
Tony Lin
More information about the odb-users
mailing list