Using gcc 4.0.2
Posted: Sat Nov 05, 2005 5:15 pm
Has the toolchain been checked that it compiles with 4.0.2? I get huge number of warnings and lots of errors trying to build the toolchain.
Here's the last bit:
In file included from ../../bfd/merge.c:25:
../../bfd/sysdep.h:48: warning: function declaration isn’t a prototype
../../bfd/sysdep.h:49: warning: function declaration isn’t a prototype
../../bfd/merge.c: In function ‘sec_merge_hash_lookup’:
../../bfd/merge.c:228: warning: implicit declaration of function ‘memcmp’
../../bfd/merge.c: In function ‘sec_merge_init’:
../../bfd/merge.c:277: warning: implicit declaration of function ‘free’
../../bfd/merge.c: In function ‘_bfd_merge_section’:
../../bfd/merge.c:410: warning: implicit declaration of function ‘strcmp’
../../bfd/merge.c: In function ‘record_section’:
../../bfd/merge.c:564: warning: pointer targets in passing argument 2 of ‘sec_merge_add’ differ in signedness
../../bfd/merge.c:596: warning: pointer targets in passing argument 2 of ‘sec_merge_add’ differ in signedness
../../bfd/merge.c:609: warning: pointer targets in passing argument 2 of ‘sec_merge_add’ differ in signedness
../../bfd/merge.c: In function ‘merge_strings’:
../../bfd/merge.c:647: warning: implicit declaration of function ‘qsort’
../../bfd/merge.c:651: error: ‘calloc’ undeclared (first use in this function)
../../bfd/merge.c:651: error: (Each undeclared identifier is reported only once
../../bfd/merge.c:651: error: for each function it appears in.)
../../bfd/merge.c:651: error: ‘free’ undeclared (first use in this function)
../../bfd/merge.c: In function ‘_bfd_merged_section_offset’:
../../bfd/merge.c:935: warning: pointer targets in passing argument 2 of ‘sec_merge_hash_lookup’ differ in signedness
gmake[3]: *** [merge.lo] Error 1
gmake[3]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/bfd'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/bfd'
gmake[1]: *** [all-recursive-am] Error 2
gmake[1]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/bfd'
gmake: *** [all-bfd] Error 2
ERROR BUILDING BINUTILS (binutils-2.14 ee)
Here's the last bit:
In file included from ../../bfd/merge.c:25:
../../bfd/sysdep.h:48: warning: function declaration isn’t a prototype
../../bfd/sysdep.h:49: warning: function declaration isn’t a prototype
../../bfd/merge.c: In function ‘sec_merge_hash_lookup’:
../../bfd/merge.c:228: warning: implicit declaration of function ‘memcmp’
../../bfd/merge.c: In function ‘sec_merge_init’:
../../bfd/merge.c:277: warning: implicit declaration of function ‘free’
../../bfd/merge.c: In function ‘_bfd_merge_section’:
../../bfd/merge.c:410: warning: implicit declaration of function ‘strcmp’
../../bfd/merge.c: In function ‘record_section’:
../../bfd/merge.c:564: warning: pointer targets in passing argument 2 of ‘sec_merge_add’ differ in signedness
../../bfd/merge.c:596: warning: pointer targets in passing argument 2 of ‘sec_merge_add’ differ in signedness
../../bfd/merge.c:609: warning: pointer targets in passing argument 2 of ‘sec_merge_add’ differ in signedness
../../bfd/merge.c: In function ‘merge_strings’:
../../bfd/merge.c:647: warning: implicit declaration of function ‘qsort’
../../bfd/merge.c:651: error: ‘calloc’ undeclared (first use in this function)
../../bfd/merge.c:651: error: (Each undeclared identifier is reported only once
../../bfd/merge.c:651: error: for each function it appears in.)
../../bfd/merge.c:651: error: ‘free’ undeclared (first use in this function)
../../bfd/merge.c: In function ‘_bfd_merged_section_offset’:
../../bfd/merge.c:935: warning: pointer targets in passing argument 2 of ‘sec_merge_hash_lookup’ differ in signedness
gmake[3]: *** [merge.lo] Error 1
gmake[3]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/bfd'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/bfd'
gmake[1]: *** [all-recursive-am] Error 2
gmake[1]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/bfd'
gmake: *** [all-bfd] Error 2
ERROR BUILDING BINUTILS (binutils-2.14 ee)