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] |
I want to crosscompile gcc for the sh-elf target (dreamcast sh4), i am using the gcc-20030331 snapshot. ...
when typing 'make all install' , compiling fails after a while with the following error:
/gcc/build-gcc/gcc/xgcc -B/gcc/build-gcc/gcc/ -B/usr/local/dc/sh-elf/sh-elf/bin/ -B/usr/local/dc/sh-elf/sh-elf/lib/ -isystem /usr/local/dc/sh-elf/sh-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I../../../gcc-20030331/libiberty/../include -W -Wall -Wtraditional -pedantic ../../../gcc-20030331/libiberty/hashtab.c -o hashtab.o
../../../gcc-20030331/libiberty/hashtab.c: In function `higher_prime_number':
../../../gcc-20030331/libiberty/hashtab.c:133: Warnung: implicit declaration of function `abort'
../../../gcc-20030331/libiberty/hashtab.c: In function `htab_create':
../../../gcc-20030331/libiberty/hashtab.c:204: error: `free' undeclared (first use in this function) ...
Compiling an old gcc (3.0.4) works perfectly, but according to Marcus Comstedt, gcc Versions before 3.3 have bugs in their SH4 codegen, and that's the reason i need to use a snapshot of the 3.3 branch. Any ideas ?
It looks like hashtab.c is properly including stdlib.h, but the stdlib.h it includes, build-gcc/gcc/include/stdlib.h, surrounds its declarations in #if defined(__USE_FIXED_PROTOTYPES__) || defined(__cplusplus) || defined (__STRICT_ANSI__) This seems to be because it's generating stdlib.h itself during configure instead of using the one I installed when I built glibc. Looking at my make log for gcc, I see:
if [ -f include/fixed ] ; then true; \ else \ : This line works around a 'make' bug in BSDI 1.1.; \ FIXPROTO_DEFINES=""; export FIXPROTO_DEFINES; \ mkinstalldirs="/bin/sh /home3/dank/crosstool/build/sh4-linux/gcc-3.3-glibc-2.2.5/gcc-3.3/gcc/mkinstalldirs"; \ export mkinstalldirs; \ if [ -d /home3/dank/crosstool/result/sh4-linux/gcc-3.3-glibc-2.2.5/sh4-linux/sys-include ] ; then \ /bin/sh /home3/dank/crosstool/build/sh4-linux/gcc-3.3-glibc-2.2.5/gcc-3.3/gcc/fixproto include include /home3/dank/crosstool/result/sh4-linux/gcc-3.3-glibc-2.2.5/sh4-linux/sys-include; \ if [ $? -eq 0 ] ; then true ; else exit 1 ; fi ; \ else true; fi; \ echo timestamp > include/fixed; \ fi fixproto: populating `include' (No *.h files in /home3/dank/crosstool/build/sh4-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/include/gcc) (No *.h files in /home3/dank/crosstool/build/sh4-linux/gcc-3.3-glibc-2.2.5/build-gcc/gcc/include/gcc/fixinc) Adding missing unistd.h Adding missing stdlib.h fix-header: fixing stdlib.h
Guess I'll try building an older gcc and see what happens at that point.
-- 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] |