Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262105 - crossdev on amd64 will fail to build sparc-unknown-linux-gnu
Summary: crossdev on amd64 will fail to build sparc-unknown-linux-gnu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-11 11:08 UTC by Denys
Modified: 2009-05-24 16:58 UTC (History)
3 users (show)

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


Attachments
1 (cross-sparc-unknown-linux-gnu-info.log,10.98 KB, text/plain)
2009-03-11 11:09 UTC, Denys
Details
2 (cross-sparc-unknown-linux-gnu-gcc-stage2.log,819.98 KB, text/plain)
2009-03-11 11:09 UTC, Denys
Details
toolchain.eclass.patch (toolchain.eclass.patch,318 bytes, patch)
2009-04-12 16:25 UTC, Friedrich Oslage (RETIRED)
Details | Diff
toolchain.eclass.patch (toolchain.eclass.patch,319 bytes, patch)
2009-04-12 16:28 UTC, Friedrich Oslage (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denys 2009-03-11 11:08:08 UTC
home ~ # crossdev -t sparc-unknown-linux-gnu
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   sparc
 * Target System:         sparc-unknown-linux-gnu
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/sparc-unknown-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/sparc-unknown-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                                                                                               [ ok ]
 * Log: /var/log/portage/cross-sparc-unknown-linux-gnu-binutils.log
 * Emerging cross-binutils ...                                                                                                                                                                      [ ok ]
 * Log: /var/log/portage/cross-sparc-unknown-linux-gnu-linux-headers-quick.log
 * Emerging cross-linux-headers-quick ...                                                                                                                                                           [ ok ]
 * Log: /var/log/portage/cross-sparc-unknown-linux-gnu-glibc-headers.log
 * Emerging cross-glibc-headers ...                                                                                                                                                                 [ ok ]
 * Log: /var/log/portage/cross-sparc-unknown-linux-gnu-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                                                                                                                                                    [ ok ]
 * Log: /var/log/portage/cross-sparc-unknown-linux-gnu-linux-headers.log
 * Emerging cross-linux-headers ...                                                                                                                                                                 [ ok ]
 * Log: /var/log/portage/cross-sparc-unknown-linux-gnu-glibc.log
 * Emerging cross-glibc ...                                                                                                                                                                         [ ok ]
 * Log: /var/log/portage/cross-sparc-unknown-linux-gnu-gcc-stage2.log
 * Emerging cross-gcc-stage2 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-sparc-unknown-linux-gnu-info.log
 * /var/log/portage/cross-sparc-unknown-linux-gnu-gcc-stage2.log

I will attach those files also
Comment 1 Denys 2009-03-11 11:09:01 UTC
Created attachment 184673 [details]
1
Comment 2 Denys 2009-03-11 11:09:35 UTC
Created attachment 184674 [details]
2
Comment 3 emerald 2009-03-11 11:45:23 UTC
It's got something to do with sparc multilib, #233130 are some remarks and more.
Comment 4 Ferris McCormick (RETIRED) gentoo-dev 2009-04-10 16:00:09 UTC
Continues to fail with sys-libs/glibc-2.8_p20080602-r1 and sys-devel/gcc-4.3.2-r3.  It wants to include a file gnu/stubs-64.h.  This means it is trying to build for 64-bit userland, but that is quite wrong for sparc.  What cross-sparc-unknown-linux-gnu/glibc installed is stubs-32.h.
Comment 5 Friedrich Oslage (RETIRED) gentoo-dev 2009-04-12 16:25:42 UTC
Created attachment 188099 [details, diff]
toolchain.eclass.patch

Can you try to patch your /usr/portage/eclass/toolchain.eclass with the attached patch and see if it works?
Comment 6 Friedrich Oslage (RETIRED) gentoo-dev 2009-04-12 16:28:56 UTC
Created attachment 188101 [details, diff]
toolchain.eclass.patch

ups wrong patch, this one's the correct one
Comment 7 EoD 2009-05-03 16:46:45 UTC
I had exactly the same problem and your toolchain-patch fixes the problem! Thanks :)

With the patch from #233130:
ln -s lib32 /usr/sparc-unknown-linux-gnu/lib
ln -s lib32 /usr/sparc-unknown-linux-gnu/usr/lib

the crosscompile (Host amd64, Target sparc, Stage 4) process works just fine :)
Comment 8 Ferris McCormick (RETIRED) gentoo-dev 2009-05-07 16:25:47 UTC
(In reply to comment #7)
> I had exactly the same problem and your toolchain-patch fixes the problem!
> Thanks :)
> 
> With the patch from #233130:
> ln -s lib32 /usr/sparc-unknown-linux-gnu/lib
> ln -s lib32 /usr/sparc-unknown-linux-gnu/usr/lib
> 
> the crosscompile (Host amd64, Target sparc, Stage 4) process works just fine :)
> 

Yes, this works for me, too.  Thanks.
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2009-05-24 16:58:22 UTC
Fixed.