pthread.h: No such file or directory
Iwan Koenig
iwankoenig@yahoo.de
Wed Sep 6 10:13:00 GMT 2006
I have a following Error:
In file included from ./gthr-default.h:1,
from ../../gcc-4.1.1/gcc/gthr.h:114,
from
../../gcc-4.1.1/gcc/unwind-dw2.c:42:
../../gcc-4.1.1/gcc/gthr-posix.h:43:21: error:
pthread.h: No such file or directory
../../gcc-4.1.1/gcc/gthr-posix.h:44:20: error:
unistd.h: No such file or directory
In file included from ./gthr-default.h:1,
from ../../gcc-4.1.1/gcc/gthr.h:114,
from
../../gcc-4.1.1/gcc/unwind-dw2.c:42:
../../gcc-4.1.1/gcc/gthr-posix.h:46: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Â__gthread_key_tÂ
../../gcc-4.1.1/gcc/gthr-posix.h:47: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Â__gthread_once_tÂ
../../gcc-4.1.1/gcc/gthr-posix.h:48: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Â__gthread_mutex_tÂ
../../gcc-4.1.1/gcc/gthr-posix.h:49: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Â__gthread_recursive_mutex_tÂ
../../gcc-4.1.1/gcc/gthr-posix.h:88: error:
Âpthread_once undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:88: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_onceÂ
../../gcc-4.1.1/gcc/gthr-posix.h:89: error:
Âpthread_getspecific undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:89: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_getspecificÂ
../../gcc-4.1.1/gcc/gthr-posix.h:90: error:
Âpthread_setspecific undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:90: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_setspecificÂ
../../gcc-4.1.1/gcc/gthr-posix.h:91: error:
Âpthread_create undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:91: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_createÂ
../../gcc-4.1.1/gcc/gthr-posix.h:92: error:
Âpthread_cancel undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:92: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_cancelÂ
../../gcc-4.1.1/gcc/gthr-posix.h:93: error:
Âpthread_mutex_lock undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:93: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutex_lockÂ
../../gcc-4.1.1/gcc/gthr-posix.h:94: error:
Âpthread_mutex_trylock undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:94: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutex_trylockÂ
../../gcc-4.1.1/gcc/gthr-posix.h:95: error:
Âpthread_mutex_unlock undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:95: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutex_unlockÂ
../../gcc-4.1.1/gcc/gthr-posix.h:96: error:
Âpthread_mutex_init undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:96: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutex_initÂ
../../gcc-4.1.1/gcc/gthr-posix.h:99: error:
Âpthread_key_create undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:99: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_key_createÂ
../../gcc-4.1.1/gcc/gthr-posix.h:100: error:
Âpthread_key_delete undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:100: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_key_deleteÂ
../../gcc-4.1.1/gcc/gthr-posix.h:101: error:
Âpthread_mutexattr_init undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:101: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutexattr_initÂ
../../gcc-4.1.1/gcc/gthr-posix.h:102: error:
Âpthread_mutexattr_settype undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:102: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutexattr_settypeÂ
../../gcc-4.1.1/gcc/gthr-posix.h:103: error:
Âpthread_mutexattr_destroy undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:103: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutexattr_destroyÂ
../../gcc-4.1.1/gcc/gthr-posix.h:513: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:522: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:528: error: expected
Â)Â before ÂkeyÂ
../../gcc-4.1.1/gcc/gthr-posix.h:534: error: expected
Â)Â before ÂkeyÂ
../../gcc-4.1.1/gcc/gthr-posix.h:540: error: expected
Â)Â before ÂkeyÂ
../../gcc-4.1.1/gcc/gthr-posix.h:546: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:555: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:564: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:574: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:595: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:601: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:607: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/unwind-dw2.c: In function
Âuw_init_context_1Â:
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Âonce_regsizesÂ
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error:
Âonce_regsizes undeclared (first use in this
function)
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error: (Each
undeclared identifier is reported only once
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error: for each
function it appears in.)
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error:
ÂPTHREAD_ONCE_INITÂ undeclared (first use in this
function)
../../gcc-4.1.1/gcc/unwind-dw2.c:1260: warning:
implicit declaration of function Â__gthread_onceÂ
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory
`/root/cross/builds/powerpc-linux-gcc/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory
`/root/cross/builds/powerpc-linux-gcc/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory
`/root/cross/builds/powerpc-linux-gcc'
make: *** [install] Error 2
Pleas help me!
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list