------- Additional Comments From ngmlinux at gmail dot com  2005-09-04 00:14 
-------
After patching the gcc-4.0.1 source in boehm-gc/include/private/gcconfig.h, I
get the following errors when I go to "make".  I did not get this errors before
editing gcconfig.h, however they appear to be unrelated:

===code============================================
In file included from ./gthr-default.h:1,
                from ../../gcc/gthr.h:114,
                from ../../gcc/unwind-dw2.c:42:
../../gcc/gthr-posix.h:43:21: error: pthread.h: No such file or directory
../../gcc/gthr-posix.h:44:20: error: unistd.h: No such file or directory
In file included from ./gthr-default.h:1,
                from ../../gcc/gthr.h:114,
                from ../../gcc/unwind-dw2.c:42:
../../gcc/gthr-posix.h:46: error: syntax error before '__gthread_key_t'
../../gcc/gthr-posix.h:46: warning: type defaults to 'int' in
declaration of '__gthread_key_t'
../../gcc/gthr-posix.h:46: warning: data definition has no type or
storage class../../gcc/gthr-posix.h:47: error: syntax error before
'__gthread_once_t'
../../gcc/gthr-posix.h:47: warning: type defaults to 'int' in
declaration of '__gthread_once_t'
../../gcc/gthr-posix.h:47: warning: data definition has no type or
storage class../../gcc/gthr-posix.h:48: error: syntax error before
'__gthread_mutex_t'
../../gcc/gthr-posix.h:48: warning: type defaults to 'int' in
declaration of '__gthread_mutex_t'
../../gcc/gthr-posix.h:48: warning: data definition has no type or
storage class../../gcc/gthr-posix.h:49: error: syntax error before
'__gthread_recursive_mutex_t'
../../gcc/gthr-posix.h:49: warning: type defaults to 'int' in
declaration of '__gthread_recursive_mutex_t'
../../gcc/gthr-posix.h:49: warning: data definition has no type or
storage class../../gcc/gthr-posix.h: In function '__gthread_active_p':
../../gcc/gthr-posix.h:110: error: 'pthread_cancel' undeclared (first
use in this function)
../../gcc/gthr-posix.h:110: error: (Each undeclared identifier is
reported only once
../../gcc/gthr-posix.h:110: error: for each function it appears in.)
../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:474: error: syntax error before '*' token
../../gcc/gthr-posix.h:474: error: syntax error before ')' token
../../gcc/gthr-posix.h:483: error: syntax error before '*' token
../../gcc/gthr-posix.h:483: error: syntax error before ')' token
../../gcc/gthr-posix.h:489: error: syntax error before 'key'
../../gcc/gthr-posix.h:490: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_key_delete':
../../gcc/gthr-posix.h:490: warning: old-style function definition
../../gcc/gthr-posix.h:491: warning: implicit declaration of function
'pthread_key_delete'
../../gcc/gthr-posix.h:491: error: 'key' undeclared (first use in this
function)../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:495: error: syntax error before 'key'
../../gcc/gthr-posix.h:496: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_getspecific':
../../gcc/gthr-posix.h:496: warning: old-style function definition
../../gcc/gthr-posix.h:497: warning: implicit declaration of function
'pthread_getspecific'
../../gcc/gthr-posix.h:497: error: 'key' undeclared (first use in this
function)../../gcc/gthr-posix.h:497: warning: return makes pointer
from integer without a cast
../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:501: error: syntax error before 'key'
../../gcc/gthr-posix.h:502: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_setspecific':
../../gcc/gthr-posix.h:502: warning: old-style function definition
../../gcc/gthr-posix.h:503: warning: implicit declaration of function
'pthread_setspecific'
../../gcc/gthr-posix.h:503: error: 'key' undeclared (first use in this
function)../../gcc/gthr-posix.h:503: error: 'ptr' undeclared (first
use in this function)../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:507: error: syntax error before '*' token
../../gcc/gthr-posix.h:508: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_mutex_lock':
../../gcc/gthr-posix.h:508: warning: old-style function definition
../../gcc/gthr-posix.h:510: warning: implicit declaration of function
'pthread_mutex_lock'
../../gcc/gthr-posix.h:510: error: 'mutex' undeclared (first use in
this function)
../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:516: error: syntax error before '*' token
../../gcc/gthr-posix.h:517: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_mutex_trylock':
../../gcc/gthr-posix.h:517: warning: old-style function definition
../../gcc/gthr-posix.h:519: warning: implicit declaration of function
'pthread_mutex_trylock'
../../gcc/gthr-posix.h:519: error: 'mutex' undeclared (first use in
this function)
../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:525: error: syntax error before '*' token
../../gcc/gthr-posix.h:526: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_mutex_unlock':
../../gcc/gthr-posix.h:526: warning: old-style function definition
../../gcc/gthr-posix.h:528: warning: implicit declaration of function
'pthread_mutex_unlock'
../../gcc/gthr-posix.h:528: error: 'mutex' undeclared (first use in
this function)
../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:535: error: syntax error before '*' token
../../gcc/gthr-posix.h:536: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_recursive_mutex_init_function':
../../gcc/gthr-posix.h:536: warning: old-style function definition
../../gcc/gthr-posix.h:539: error: 'pthread_mutexattr_t' undeclared
(first use in this function)
../../gcc/gthr-posix.h:539: error: syntax error before 'attr'
../../gcc/gthr-posix.h:542: warning: implicit declaration of function
'pthread_mutexattr_init'
../../gcc/gthr-posix.h:542: error: 'attr' undeclared (first use in
this function)
../../gcc/gthr-posix.h:544: warning: implicit declaration of function
'pthread_mutexattr_settype'
../../gcc/gthr-posix.h:544: error: 'PTHREAD_MUTEX_RECURSIVE'
undeclared (first use in this function)
../../gcc/gthr-posix.h:546: warning: implicit declaration of function
'pthread_mutex_init'
../../gcc/gthr-posix.h:546: error: 'mutex' undeclared (first use in
this function)
../../gcc/gthr-posix.h:548: warning: implicit declaration of function
'pthread_mutexattr_destroy'
../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:556: error: syntax error before '*' token
../../gcc/gthr-posix.h:557: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_recursive_mutex_lock':
../../gcc/gthr-posix.h:557: warning: old-style function definition
../../gcc/gthr-posix.h:558: error: 'mutex' undeclared (first use in
this function)
../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:562: error: syntax error before '*' token
../../gcc/gthr-posix.h:563: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_recursive_mutex_trylock':
../../gcc/gthr-posix.h:563: warning: old-style function definition
../../gcc/gthr-posix.h:564: error: 'mutex' undeclared (first use in
this function)
../../gcc/gthr-posix.h: At top level:
../../gcc/gthr-posix.h:568: error: syntax error before '*' token
../../gcc/gthr-posix.h:569: warning: function declaration isn't a prototype
../../gcc/gthr-posix.h: In function '__gthread_recursive_mutex_unlock':
../../gcc/gthr-posix.h:569: warning: old-style function definition
../../gcc/gthr-posix.h:570: error: 'mutex' undeclared (first use in
this function)
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory
`/home/username/arm-linux-gcc-4.0.1/gcc-4.0.1/arm-linux/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/home/username/arm-linux-gcc-4.0.1/gcc-4.0.1/arm-linux/gcc'
make: *** [all-gcc] Error 2
===================================================

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23662

Reply via email to