[LLVMdev] Re: pthread?
yue
qiangyue at ict.ac.cn
Wed Dec 24 00:20:01 PST 2003
I try to run lli with "--load=/lib/libpthread.so", but it shows:
---------------------------------------------------
[yue at RH9 test]$ ./pthread.ll
Error opening '/lib/libpthread.so.0': /lib/libpthread.so.0: symbol
_errno, version GLIBC_2.0 not defined in file libc.so.6 with link time
reference
-load request ignored.
Creating thread 0
WARNING: Cannot resolve fn 'pthread_create' using a dummy noop function
instead!
ERROR; return code from pthread_create() is -1073747260
----------------------------------------------------
then try to run with "--load=/usr/lib/libpthread.so", it shows:
--------------------------------------------------
[yue at RH9 test]$ ./pthread.ll
Error opening '/usr/lib/libpthread.so': /usr/lib/libpthread.so: invalid
ELF header
-load request ignored.
Creating thread 0
WARNING: Cannot resolve fn 'pthread_create' using a dummy noop function
instead!
ERROR; return code from pthread_create() is -1073745212
--------------------------------------------------------
yue wrote:
> hi,
>
> I compile a pthread program using llvmgcc, but when i run pthread.ll,
> it show:
> ------------------
> [yue at RH9 test]$ llvmgcc pthread.c -o pthread.ll
> [yue at RH9 test]$ ls
> pthread pthread.c pthread.ll pthread.ll.bc
> [yue at RH9 test]$ ./pthread.ll
> Creating thread 0
> WARNING: Cannot resolve fn 'pthread_create' using a dummy noop
> function instead!
> ERROR; return code from pthread_create() is -1073745164
> [yue at RH9 test]$
> --------------------
> how to solve the problem?
>
> yueqiang
> 2003/12/24
>
More information about the llvm-dev
mailing list