Summary: | building a cross-compiler for sparc with gcc-4.3.2 fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tobias Klausmann (RETIRED) <klausman> |
Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Tobias Klausmann (RETIRED)
2008-12-11 18:02:43 UTC
you forced --without-headers -> you get to pick up the pieces Well, various docs told me to do that plus not using --without-headers doesn't work either. And here's the end of the build log for that: /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/build/./gcc/xgcc -B/var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/build/./gcc/ -B/usr/sparc-unknown-linux-gnu/bin/ -B/usr/sparc-unknown-linux-gnu/lib/ -isystem /usr/sparc-unknown-linux-gnu/include -isystem /usr/sparc-unknown-linux-gnu/sys-include -O2 -g -O2 -pipe -O2 -O2 -g -O2 -pipe -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../.././gcc -I/var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc -I/var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/. -I/var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc -I/var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../include -DHAVE_CC_TLS -o _eprintf.o -MT _eprintf.o -MD -MP -MF _eprintf.dep -DL_eprintf -c /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c \ -fvisibility=hidden -DHIDE_EXPORTS /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c: In function ‘__eprintf’: /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:2009: warning: implicit declaration of function ‘fprintf’ /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:2009: warning: incompatible implicit declaration of built-in function ‘fprintf’ /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:2009: error: ‘stderr’ undeclared (first use in this function) /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:2009: error: (Each undeclared identifier is reported only once /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:2009: error: for each function it appears in.) /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:2010: warning: implicit declaration of function ‘fflush’ /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:2011: warning: implicit declaration of function ‘abort’ /var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/gcc-4.3.2/libgcc/../gcc/libgcc2.c:2011: warning: incompatible implicit declaration of built-in function ‘abort’ make[2]: *** [_eprintf.o] Error 1 make[2]: Leaving directory `/var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/build/sparc-unknown-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/var/tmp/cross/sparc-unknown-linux-gnu/portage/cross-sparc-unknown-linux-gnu/gcc-4.3.2/work/build' make: *** [all] Error 2 Same error in the same spot (stage2 of gcc) Reopening as --without-headers isn't the culprit. i dont know what docs you're referring to. just because you read a random place to do XYZ doesnt make it correct. glibc-2.6.x isnt supported. gcc-4.3.x needs libc headers and if you use --without-headers, that's your problem. Also happens with gcc 4.1.2. Should've tried that first :-/ I did a crossdev -C sparc first, then: crossdev --b 2.18-r3 --k 2.6.23-r3 --l 2.6.1 --g 4.1.2 sparc which (near as I can tell) should emerge only stable versions and as such should work, but I *still* get the very same error mentioned above. there is simply no resources to track cross-compiling for many versions. i really only track latest ~arch. anything older may work. binutils-2.19/glibc-2.9/gcc-4.3.2 seems like an OK combo on my system. I just tried using the ~sparc versions (same as you mentioned) and I still get the *very same* error. I'm beginning to suspect I must have something wrong methodically. You *can* install multiple crossdev-setups on one machine, right? I have an alpha environment set up which works flawlessly. all toolchain packages are slotted based on CTARGET. all binutils/gcc packages are additionally slotted based on VER. so no CTARGET should ever conflict with any other CTARGET. |