[uClibc] uClibc targeted Toolchain for MIPS.

Sadiq Shaikh sadiq.shaikh at analog.com
Sat Aug 14 02:42:35 UTC 2004


Hi,

I'm building uClibc targeted toolchain for MIPS board.
I have downloaded binutils-2.14 ,gcc-3.2. and uClibc current CVS.
I could build binutils successfully. But getting following errors
while building gcc.Looks like some headers are required.
Can you point where/how to get this headers ?
Or problem is something else ?

------8<-------8<----------8<--------------
../../gcc-3.2/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
In file included from ../../gcc-3.2/gcc/unwind-dw2.c:26:
../../gcc-3.2/gcc/unwind-pe.h: In function `size_of_encoded_value':
../../gcc-3.2/gcc/unwind-pe.h:76: warning: implicit declaration of function
`abort'
In file included from gthr-default.h:1,
                 from ../../gcc-3.2/gcc/gthr.h:98,
                 from ../../gcc-3.2/gcc/unwind-dw2.c:28:
../../gcc-3.2/gcc/gthr-posix.h:37:21: pthread.h: No such file or directory
In file included from gthr-default.h:1,
                 from ../../gcc-3.2/gcc/gthr.h:98,
                 from ../../gcc-3.2/gcc/unwind-dw2.c:28:
../../gcc-3.2/gcc/gthr-posix.h: At top level:
../../gcc-3.2/gcc/gthr-posix.h:39: parse error before "__gthread_key_t"
../../gcc-3.2/gcc/gthr-posix.h:39: warning: type defaults to `int' in
declaration of `__gthread_key_t'
../../gcc-3.2/gcc/gthr-posix.h:39: warning: data definition has no type or
storage class
../../gcc-3.2/gcc/gthr-posix.h:40: parse error before "__gthread_once_t"
../../gcc-3.2/gcc/gthr-posix.h:40: warning: type defaults to `int' in
declaration of `__gthread_once_t'
../../gcc-3.2/gcc/gthr-posix.h:40: warning: data definition has no type or
storage class
../../gcc-3.2/gcc/gthr-posix.h:41: parse error before "__gthread_mutex_t"
../../gcc-3.2/gcc/gthr-posix.h:41: warning: type defaults to `int' in
declaration of `__gthread_mutex_t'
../../gcc-3.2/gcc/gthr-posix.h:41: warning: data definition has no type or
storage class
../../gcc-3.2/gcc/gthr-posix.h: In function `__gthread_active_p':
../../gcc-3.2/gcc/gthr-posix.h:83: `pthread_create' undeclared (first use in
this function)
../../gcc-3.2/gcc/gthr-posix.h:83: (Each undeclared identifier is reported
only once
../../gcc-3.2/gcc/gthr-posix.h:83: for each function it appears in.)
../../gcc-3.2/gcc/gthr-posix.h: At top level:
../../gcc-3.2/gcc/gthr-posix.h:438: parse error before '*' token
../../gcc-3.2/gcc/gthr-posix.h:438: parse error before ')' token
../../gcc-3.2/gcc/gthr-posix.h:447: parse error before '*' token
../../gcc-3.2/gcc/gthr-posix.h:447: parse error before ')' token
../../gcc-3.2/gcc/gthr-posix.h:453: parse error before "key"
../../gcc-3.2/gcc/gthr-posix.h:454: warning: function declaration isn't a
prototype
../../gcc-3.2/gcc/gthr-posix.h: In function `__gthread_key_dtor':
../../gcc-3.2/gcc/gthr-posix.h:456: `ptr' undeclared (first use in this
function)
../../gcc-3.2/gcc/gthr-posix.h:457: warning: implicit declaration of
function `pthread_setspecific'
../../gcc-3.2/gcc/gthr-posix.h:457: `key' undeclared (first use in this
function)
../../gcc-3.2/gcc/gthr-posix.h: At top level:
../../gcc-3.2/gcc/gthr-posix.h:463: parse error before "key"
../../gcc-3.2/gcc/gthr-posix.h:464: warning: function declaration isn't a
prototype
../../gcc-3.2/gcc/gthr-posix.h: In function `__gthread_key_delete':
../../gcc-3.2/gcc/gthr-posix.h:465: warning: implicit declaration of
function `pthread_key_delete'
../../gcc-3.2/gcc/gthr-posix.h:465: `key' undeclared (first use in this
function)
../../gcc-3.2/gcc/gthr-posix.h: At top level:
../../gcc-3.2/gcc/gthr-posix.h:469: parse error before "key"
../../gcc-3.2/gcc/gthr-posix.h:470: warning: function declaration isn't a
prototype
../../gcc-3.2/gcc/gthr-posix.h: In function `__gthread_getspecific':
../../gcc-3.2/gcc/gthr-posix.h:471: warning: implicit declaration of
function `pthread_getspecific'
../../gcc-3.2/gcc/gthr-posix.h:471: `key' undeclared (first use in this
function)
../../gcc-3.2/gcc/gthr-posix.h:471: warning: return makes pointer from
integer without a cast
../../gcc-3.2/gcc/gthr-posix.h: At top level:
../../gcc-3.2/gcc/gthr-posix.h:475: parse error before "key"
../../gcc-3.2/gcc/gthr-posix.h:476: warning: function declaration isn't a
prototype
../../gcc-3.2/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../gcc-3.2/gcc/gthr-posix.h:477: `key' undeclared (first use in this
function)
../../gcc-3.2/gcc/gthr-posix.h:477: `ptr' undeclared (first use in this
function)
../../gcc-3.2/gcc/gthr-posix.h: At top level:
../../gcc-3.2/gcc/gthr-posix.h:481: parse error before '*' token
../../gcc-3.2/gcc/gthr-posix.h:482: warning: function declaration isn't a
prototype
../../gcc-3.2/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../gcc-3.2/gcc/gthr-posix.h:484: warning: implicit declaration of
function `pthread_mutex_lock'
../../gcc-3.2/gcc/gthr-posix.h:484: `mutex' undeclared (first use in this
function)
../../gcc-3.2/gcc/gthr-posix.h: At top level:
../../gcc-3.2/gcc/gthr-posix.h:490: parse error before '*' token
../../gcc-3.2/gcc/gthr-posix.h:491: warning: function declaration isn't a
prototype
../../gcc-3.2/gcc/gthr-posix.h: In function `__gthread_mutex_trylock':
../../gcc-3.2/gcc/gthr-posix.h:493: warning: implicit declaration of
function `pthread_mutex_trylock'
../../gcc-3.2/gcc/gthr-posix.h:493: `mutex' undeclared (first use in this
function)
../../gcc-3.2/gcc/gthr-posix.h: At top level:
../../gcc-3.2/gcc/gthr-posix.h:499: parse error before '*' token
../../gcc-3.2/gcc/gthr-posix.h:500: warning: function declaration isn't a
prototype
../../gcc-3.2/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../gcc-3.2/gcc/gthr-posix.h:502: warning: implicit declaration of
function `pthread_mutex_unlock'
../../gcc-3.2/gcc/gthr-posix.h:502: `mutex' undeclared (first use in this
function)
../../gcc-3.2/gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc-3.2/gcc/unwind-dw2.c:226: warning: implicit declaration of
function `strlen'
../../gcc-3.2/gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc-3.2/gcc/unwind-dw2.c:899: warning: implicit declaration of
function `memset'
../../gcc-3.2/gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc-3.2/gcc/unwind-dw2.c:1166: syntax error before "once_regsizes"
../../gcc-3.2/gcc/unwind-dw2.c:1167: warning: implicit declaration of
function `__gthread_once'
../../gcc-3.2/gcc/unwind-dw2.c:1167: `once_regsizes' undeclared (first use
in this function)
../../gcc-3.2/gcc/unwind-dw2.c:1181: warning: implicit declaration of
function `memcpy'
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
------8<-------8<----------8<--------------

Regards & Thanks,
-Sadiq




More information about the uClibc mailing list