[LLVMdev] External function 'pthread_once' could not be resolved

Chris Lattner sabre at nondot.org
Thu Jul 7 09:26:48 PDT 2005


On Thu, 7 Jul 2005, Henrik Bach wrote:
> The 'pthread_once' is located in the native library binary file: 
> /usr/lib/libpthread.a. I've also included the path to the library in 
> LLVM_LIB_SEARCH_PATH environment variable.

If libpthread.a is a static library, lli won't be successful loading it. 
Try relinking lli, but add this to its tools/lli/Makefile:

TOOLLINKOPTS := -lpthread

-Chris

-- 
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/




More information about the llvm-dev mailing list