Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397449 - =cross-sparc-unknown-linux-gnu/glibc-2.13-r4 fails to build due to incompatible -lgcc
Summary: =cross-sparc-unknown-linux-gnu/glibc-2.13-r4 fails to build due to incompatib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Sparc Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 23:43 UTC by Alex Buell
Modified: 2012-10-17 19:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.gz,163.41 KB, application/octet-stream)
2012-01-02 23:45 UTC, Alex Buell
Details
environment (environment,141.03 KB, text/plain)
2012-01-02 23:46 UTC, Alex Buell
Details
emerge --info (info,4.89 KB, text/plain)
2012-01-02 23:47 UTC, Alex Buell
Details
emerge -pqv =cross-sparc-unknown-linux-gnu/glibc-2.13-r4 (pqv,146 bytes, text/plain)
2012-01-02 23:47 UTC, Alex Buell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2012-01-02 23:43:46 UTC
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
Comment 1 Alex Buell 2012-01-02 23:45:56 UTC
Created attachment 297727 [details]
build log
Comment 2 Alex Buell 2012-01-02 23:46:15 UTC
Created attachment 297729 [details]
environment
Comment 3 Alex Buell 2012-01-02 23:47:29 UTC
Created attachment 297731 [details]
emerge --info
Comment 4 Alex Buell 2012-01-02 23:47:54 UTC
Created attachment 297733 [details]
emerge -pqv =cross-sparc-unknown-linux-gnu/glibc-2.13-r4
Comment 5 SpanKY gentoo-dev 2012-01-03 20:12:01 UTC
probably want to do `crossdev -C sparc && crossdev sparc`.  it shouldn't be building a sparc64 ABI for sparc-* tuples.
Comment 6 Alex Buell 2012-01-05 17:08:45 UTC
(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!
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2012-10-14 10:21:04 UTC
(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}
Comment 8 SpanKY gentoo-dev 2012-10-14 18:09:54 UTC
(In reply to comment #7)

looks correct to me.  if sparc team doesn't have any feedback, i'll commit that.