From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31129 invoked by alias); 6 Sep 2006 10:57:27 -0000 Received: (qmail 31121 invoked by uid 22791); 6 Sep 2006 10:57:26 -0000 X-Spam-Check-By: sourceware.org Received: from web26013.mail.ukl.yahoo.com (HELO web26013.mail.ukl.yahoo.com) (217.146.177.35) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 06 Sep 2006 10:57:23 +0000 Received: (qmail 83155 invoked by uid 60001); 6 Sep 2006 10:57:21 -0000 Message-ID: <20060906105721.83153.qmail@web26013.mail.ukl.yahoo.com> Received: from [84.154.122.168] by web26013.mail.ukl.yahoo.com via HTTP; Wed, 06 Sep 2006 12:57:21 CEST Date: Wed, 06 Sep 2006 10:57:00 -0000 From: Iwan Koenig Subject: pthread.h: No such file or directory To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg00050.txt.bz2 I'm trying to compile the gcc-4.1.1 for the target powerpc-linux. Thus it run i so: ./configure --target=powerpc-linux --prefix=/usr --without-headers --with-newlib --enable-languages=c --disable-threads And it gives me 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 Can anyone help me? thanks! ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de