From: <ps...@wi...> - 2002-08-16 06:39:49
|
this is probably a frequent source of trouble, but i really need some help on this and you all seem to be the experts. i've been trying to build a dreamcast/sh4 toolchain and so far i'm stuck on compiling glibc. i've been using several guides as references and found bill gatliff's "An introduction to embedded linux" the best so far. First i downloaded the latest nightly cvs of binutils (binutils-020814.tar.bz2) and cross-compiled it for the SH4 architecture (no patches applied). then i downloaded the latest stable gcc release 3.2 (pretty recent) and finally got it to cross-compile. now i started trying to cross-compile glibc 2.2.5 (without patches, and maybe once with them), but it seemed to be giving me too much of a hard time, and because of my deadline i downloaded glibc 2.2.4 and the patch for it. patch installed, i played around with the configure options, and had errors each time i tried to make it. finally, i thought it would be finished, but it seems to have had a strange error. here's the final snippet of the compilation: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sh-linux-gnu-gcc -ml -m4 ../sysdeps/generic/s_significand.c -c -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings -m4 -ml -fPIC -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -DNO_LONG_DOUBLE -D_Mlong_double_=double -I../include -I. -I/home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu/math -I.. -I../libio -I/home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu -I../sysdeps/sh/elf -I../sysdeps/unix/sysv/linux/sh -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/sh -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sh -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -isystem /home/dreamcast/gentoo/BUILD/base/include/ -include ../include/libc-symbols.h -DPIC -DSHARED -o /home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu/math/s_significand.os sh-linux-gnu-gcc -ml -m4 ../sysdeps/ieee754/dbl-64/s_sin.c -c -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings -m4 -ml -fPIC -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -DNO_LONG_DOUBLE -D_Mlong_double_=double -I../include -I. -I/home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu/math -I.. -I../libio -I/home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu -I../sysdeps/sh/elf -I../sysdeps/unix/sysv/linux/sh -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/sh -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sh -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -isystem /home/dreamcast/gentoo/BUILD/base/include/ -include ../include/libc-symbols.h -DPIC -DSHARED -o /home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu/math/s_sin.os ../sysdeps/ieee754/dbl-64/s_sin.c:1125: warning: conflicting types for built-in function `sinl' ../sysdeps/ieee754/dbl-64/s_sin.c:1127: warning: conflicting types for built-in function `cosl' sh-linux-gnu-gcc -ml -m4 ../sysdeps/ieee754/dbl-64/s_tan.c -c -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings -m4 -ml -fPIC -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -DNO_LONG_DOUBLE -D_Mlong_double_=double -I../include -I. -I/home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu/math -I.. -I../libio -I/home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu -I../sysdeps/sh/elf -I../sysdeps/unix/sysv/linux/sh -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/sh -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sh -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -isystem /home/dreamcast/gentoo/BUILD/base/include/ -include ../include/libc-symbols.h -DPIC -DSHARED -o /home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu/math/s_tan.os ../sysdeps/ieee754/dbl-64/s_tan.c: In function `tan': ../sysdeps/ieee754/dbl-64/s_tan.c:466: Internal compiler error in output_branch, at config/sh/sh.c:1050 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [/home/dreamcast/gentoo/BUILD/base/glibc-sh-linux-gnu/math/s_tan.os] Error 1 make[2]: Leaving directory `/home/dreamcast/gentoo/BUILD/base/glibc-build/glibc-2.2.4/math' make[1]: *** [math/others] Error 2 make[1]: Leaving directory `/home/dreamcast/gentoo/BUILD/base/glibc-build/glibc-2.2.4' make: *** [all] Error 2 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ the other bugs i believe were include-dependent, and i think i finally got my includes sorted out, so this bug i don't think i could handle (it told me to make a bug report, which is never good). has anyone seen this before? should i start trying an earlier version of glibc? keep in mind i'd really like to use the most up-to-date utilities as possible, since this will eventually be a port of Gentoo Linux to the dreamcast. oh, and if anyone would like to comment on what kind of work the patching involves specifically, i'd love to learn how to fix source for the sh4 arch myself. |