From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 02 Jan 2005 16:55:20 +0000 (GMT) Received: from a34-mta01.direcpc.com ([IPv6:::ffff:66.82.4.90]:32667 "EHLO a34-mta01.direcway.com") by linux-mips.org with ESMTP id ; Sun, 2 Jan 2005 16:55:14 +0000 Received: from direcway.com (dpc6682072249.direcpc.com [66.82.72.249]) by a34-mta01.direcway.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0I9P004WC8BEIF@a34-mta01.direcway.com> for linux-mips@linux-mips.org; Sun, 02 Jan 2005 11:54:57 -0500 (EST) Date: Sun, 02 Jan 2005 11:54:39 -0500 From: Scott Parker Subject: Re: cross compiling gcc for mips In-reply-to: <1B701004057AF74FAFF851560087B161064698@1aurora.enabtech> To: Mudeem Iqbal Cc: "'linux-mips@linux-mips.org'" Message-id: <41D8274F.7070203@direcway.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040602 References: <1B701004057AF74FAFF851560087B161064698@1aurora.enabtech> Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 6796 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: whtghst1@direcway.com Precedence: bulk X-list: linux-mips How did you configure GCC? Mudeem Iqbal wrote: > Hi, > > I am building a toolchain for mips platform. I am using > > binutils-2.15 > gcc-3.4.3 > glibc-2.3.3 > linux-2.6.9 (from linux-mips.org) > > First I built binutils and now I was setting up the bootstrap compiler. > However when I do "make all-gcc" I get the following errors. > > > In file included from ./gthr-default.h:1, > from ../../gcc-3.4.3/gcc/gthr.h:96, > from ../../gcc-3.4.3/gcc/unwind-dw2.c:42: > ../../gcc-3.4.3/gcc/gthr-posix.h:43:21: pthread.h: No such file or directory > ../../gcc-3.4.3/gcc/gthr-posix.h:44:20: unistd.h: No such file or directory > In file included from ./gthr-default.h:1, > from ../../gcc-3.4.3/gcc/gthr.h:96, > from ../../gcc-3.4.3/gcc/unwind-dw2.c:42: > ../../gcc-3.4.3/gcc/gthr-posix.h:46: error: parse error before > "__gthread_key_t" > ../../gcc-3.4.3/gcc/gthr-posix.h:46: warning: type defaults to `int' in > declaration of `__gthread_key_t' > ../../gcc-3.4.3/gcc/gthr-posix.h:46: warning: data definition has no type or > storage class > ../../gcc-3.4.3/gcc/gthr-posix.h:47: error: parse error before > "__gthread_once_t" > ../../gcc-3.4.3/gcc/gthr-posix.h:47: warning: type defaults to `int' in > declaration of `__gthread_once_t' > ../../gcc-3.4.3/gcc/gthr-posix.h:47: warning: data definition has no type or > storage class > ../../gcc-3.4.3/gcc/gthr-posix.h:48: error: parse error before > "__gthread_mutex_t" > ../../gcc-3.4.3/gcc/gthr-posix.h:48: warning: type defaults to `int' in > declaration of `__gthread_mutex_t' > ../../gcc-3.4.3/gcc/gthr-posix.h:48: warning: data definition has no type or > storage class > ../../gcc-3.4.3/gcc/gthr-posix.h: In function `__gthread_active_p': > ../../gcc-3.4.3/gcc/gthr-posix.h:96: error: `pthread_create' undeclared > (first use in this function) > ../../gcc-3.4.3/gcc/gthr-posix.h:96: error: (Each undeclared identifier is > reported only once > ../../gcc-3.4.3/gcc/gthr-posix.h:96: error: for each function it appears > in.) > ../../gcc-3.4.3/gcc/gthr-posix.h: At top level: > ../../gcc-3.4.3/gcc/gthr-posix.h:456: error: parse error before '*' token > ../../gcc-3.4.3/gcc/gthr-posix.h:456: error: parse error before ')' token > ../../gcc-3.4.3/gcc/gthr-posix.h:465: error: parse error before '*' token > ../../gcc-3.4.3/gcc/gthr-posix.h:465: error: parse error before ')' token > ../../gcc-3.4.3/gcc/gthr-posix.h:471: error: parse error before "key" > ../../gcc-3.4.3/gcc/gthr-posix.h:472: warning: function declaration isn't a > prototype > ../../gcc-3.4.3/gcc/gthr-posix.h: In function `__gthread_key_delete': > ../../gcc-3.4.3/gcc/gthr-posix.h:472: warning: old-style parameter > declaration > ../../gcc-3.4.3/gcc/gthr-posix.h:473: warning: implicit declaration of > function `pthread_key_delete' > ../../gcc-3.4.3/gcc/gthr-posix.h:473: error: `key' undeclared (first use in > this function) > ../../gcc-3.4.3/gcc/gthr-posix.h: At top level: > ../../gcc-3.4.3/gcc/gthr-posix.h:477: error: parse error before "key" > ../../gcc-3.4.3/gcc/gthr-posix.h:478: warning: function declaration isn't a > prototype > ../../gcc-3.4.3/gcc/gthr-posix.h: In function `__gthread_getspecific': > ../../gcc-3.4.3/gcc/gthr-posix.h:478: warning: old-style parameter > declaration > ../../gcc-3.4.3/gcc/gthr-posix.h:479: warning: implicit declaration of > function `pthread_getspecific' > ../../gcc-3.4.3/gcc/gthr-posix.h:479: error: `key' undeclared (first use in > this function) > ../../gcc-3.4.3/gcc/gthr-posix.h:479: warning: return makes pointer from > integer without a cast > ../../gcc-3.4.3/gcc/gthr-posix.h: At top level: > ../../gcc-3.4.3/gcc/gthr-posix.h:483: error: parse error before "key" > ../../gcc-3.4.3/gcc/gthr-posix.h:484: warning: function declaration isn't a > prototype > ../../gcc-3.4.3/gcc/gthr-posix.h: In function `__gthread_setspecific': > ../../gcc-3.4.3/gcc/gthr-posix.h:484: warning: old-style parameter > declaration > ../../gcc-3.4.3/gcc/gthr-posix.h:485: warning: implicit declaration of > function `pthread_setspecific' > ../../gcc-3.4.3/gcc/gthr-posix.h:485: error: `key' undeclared (first use in > this function) > ../../gcc-3.4.3/gcc/gthr-posix.h:485: error: `ptr' undeclared (first use in > this function) > ../../gcc-3.4.3/gcc/gthr-posix.h: At top level: > ../../gcc-3.4.3/gcc/gthr-posix.h:489: error: parse error before '*' token > ../../gcc-3.4.3/gcc/gthr-posix.h:490: warning: function declaration isn't a > prototype > ../../gcc-3.4.3/gcc/gthr-posix.h: In function `__gthread_mutex_lock': > ../../gcc-3.4.3/gcc/gthr-posix.h:490: warning: old-style parameter > declaration > ../../gcc-3.4.3/gcc/gthr-posix.h:492: warning: implicit declaration of > function `pthread_mutex_lock' > ../../gcc-3.4.3/gcc/gthr-posix.h:492: error: `mutex' undeclared (first use > in this function) > ../../gcc-3.4.3/gcc/gthr-posix.h: At top level: > ../../gcc-3.4.3/gcc/gthr-posix.h:498: error: parse error before '*' token > ../../gcc-3.4.3/gcc/gthr-posix.h:499: warning: function declaration isn't a > prototype > ../../gcc-3.4.3/gcc/gthr-posix.h: In function `__gthread_mutex_trylock': > ../../gcc-3.4.3/gcc/gthr-posix.h:499: warning: old-style parameter > declaration > ../../gcc-3.4.3/gcc/gthr-posix.h:501: warning: implicit declaration of > function `pthread_mutex_trylock' > ../../gcc-3.4.3/gcc/gthr-posix.h:501: error: `mutex' undeclared (first use > in this function) > ../../gcc-3.4.3/gcc/gthr-posix.h: At top level: > ../../gcc-3.4.3/gcc/gthr-posix.h:507: error: parse error before '*' token > ../../gcc-3.4.3/gcc/gthr-posix.h:508: warning: function declaration isn't a > prototype > ../../gcc-3.4.3/gcc/gthr-posix.h: In function `__gthread_mutex_unlock': > ../../gcc-3.4.3/gcc/gthr-posix.h:508: warning: old-style parameter > declaration > ../../gcc-3.4.3/gcc/gthr-posix.h:510: warning: implicit declaration of > function `pthread_mutex_unlock' > ../../gcc-3.4.3/gcc/gthr-posix.h:510: error: `mutex' undeclared (first use > in this function) > ../../gcc-3.4.3/gcc/unwind-dw2.c: In function `uw_frame_state_for': > ../../gcc-3.4.3/gcc/unwind-dw2.c:1013: warning: implicit declaration of > function `memset' > ../../gcc-3.4.3/gcc/unwind-dw2.c: In function `uw_init_context_1': > ../../gcc-3.4.3/gcc/unwind-dw2.c:1291: error: syntax error before > "once_regsizes" > ../../gcc-3.4.3/gcc/unwind-dw2.c:1292: warning: implicit declaration of > function `__gthread_once' > ../../gcc-3.4.3/gcc/unwind-dw2.c:1292: error: `once_regsizes' undeclared > (first use in this function) > ../../gcc-3.4.3/gcc/unwind-dw2.c: In function `uw_install_context_1': > ../../gcc-3.4.3/gcc/unwind-dw2.c:1341: warning: implicit declaration of > function `memcpy' > make[2]: *** [libgcc/./unwind-dw2.o] Error 1 > make[2]: Leaving directory > `/home/mudeem/ashwaria_rai/build-tools/build-boot-gcc/gcc' > make[1]: *** [libgcc.a] Error 2 > make[1]: Leaving directory > `/home/mudeem/ashwaria_rai/build-tools/build-boot-gcc/gcc' > make: *** [all-gcc] Error 2 > > > Thanx in advance. > > Regards > > Mudeem > > >