This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trouble crosscompiling gcc-3.3 for sh-elf (dreamcast)


Dan Kegel 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

See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10331


I ran into this again on my next clean build, so I guess it
wasn't just driver error.

Try this after configuring a cross gcc:
   egrep "STMP_FIXPROTO =|Don't run fix" */*/build-gcc/gcc/Makefile

On architectures I can build, I see e.g.

ppc-405-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/Makefile:STMP_FIXPROTO =
stmp-fixproto
ppc-405-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/Makefile:# Don't run fixproto
ppc-405-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/Makefile:STMP_FIXPROTO =

On sh4, which fails with the current bug, I see e.g.
sh4-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/Makefile:STMP_FIXPROTO = stmp-fixproto

So, where's that "Don't run fixproto" come from?

$ find . -type f | xargs grep "
./gcc/ChangeLog.4:      * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
./gcc/config/t-freebsd:# Don't run fixproto
./gcc/config/t-interix:# Don't run fixproto
./gcc/config/t-linux:# Don't run fixproto
./gcc/config/t-linux-aout:# Don't run fixproto
./gcc/config/t-netbsd:# Don't run fixproto
./gcc/config/t-openbsd:# Don't run fixproto
./gcc/config/cris/t-cris:# Don't run fixproto
./gcc/config/i386/t-beos:# Don't run fixproto
./gcc/config/i386/t-cygwin:# Don't run fixproto
./gcc/config/xtensa/t-xtensa:# Don't run fixproto

That's as far as I've gotten.  I don't really understand
the gcc/config files, but it seems this is where the problem may lie.

Can anyone shed some light on what's going on here?

Thanks,
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]