Trouble crosscompiling gcc-3.3 for sh-elf (dreamcast)
Dan Kegel
dank@kegel.com
Thu May 29 01:07:00 GMT 2003
Peter Barada wrote:
>>>../../../gcc-20030331/libiberty/hashtab.c:204: error: `free' undeclared ...
>
> Look at the hashtab.c part of the patch in:
>
> http://gcc.gnu.org/ml/gcc-patches/2003-04/msg00726.html
>
> I ran into this for m68k-elf, and this patch worked for me.
Thanks for the workaround! I don't think it's the *right* fix, but any port in a storm.
Digging around a bit more, the problem seems to be that gcc-3.3
generates 'fixed' includes in build-gcc/gcc/include, but gcc-3.2.3 doesn't.
These include files interfere with the build (at least the way Bill's scripts
are configured -- perhaps something needs to change there).
In fact, if you remove build-gcc/gcc/include/stdlib.h,
then rerun 'make all install' in build-gcc,
xgcc finds the correct stdlib.h, and the build succeeds (or at least
runs well past that problem - it's still running here).
Anyone have any idea why gcc-3.3 is fixing includes more
vigorously?
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list