Cross compiling glibc 2.13-r4 on AMD64 for SPARC target fails with: /usr/libexec/gcc/sparc-unknown-linux-gnu/ld: skipping incompatible /usr/lib/gcc/sparc-unknown-linux-gnu/4.5.3/libgcc.a when searching for -lgcc /usr/libexec/gcc/sparc-unknown-linux-gnu/ld: cannot find -lgcc
Created attachment 297727 [details] build log
Created attachment 297729 [details] environment
Created attachment 297731 [details] emerge --info
Created attachment 297733 [details] emerge -pqv =cross-sparc-unknown-linux-gnu/glibc-2.13-r4
probably want to do `crossdev -C sparc && crossdev sparc`. it shouldn't be building a sparc64 ABI for sparc-* tuples.
(In reply to comment #5) > probably want to do `crossdev -C sparc && crossdev sparc`. it shouldn't be > building a sparc64 ABI for sparc-* tuples. I did as you advised, but the error is still happening!
(In reply to comment #5) > probably want to do `crossdev -C sparc && crossdev sparc`. it shouldn't be > building a sparc64 ABI for sparc-* tuples. Same issue here. How about that patch? [sf] ~/portage/gentoo-x86/eclass:cvs diff Index: multilib.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v retrieving revision 1.100 diff -u -r1.100 multilib.eclass --- multilib.eclass 27 Aug 2012 15:04:08 -0000 1.100 +++ multilib.eclass 14 Oct 2012 10:13:37 -0000 @@ -361,7 +361,7 @@ : ${MULTILIB_ABIS=s390x s390} : ${DEFAULT_ABI=s390x} ;; - sparc*) + sparc64*) export CFLAGS_sparc32=${CFLAGS_sparc32--m32} export CHOST_sparc32=${CTARGET/sparc64/sparc} export CTARGET_sparc32=${CHOST_sparc32}
(In reply to comment #7) looks correct to me. if sparc team doesn't have any feedback, i'll commit that.
(In reply to comment #7) http://sources.gentoo.org/eclass/multilib.eclass?r1=1.100&r2=1.101