Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228969 - sys-devel/crossdev fails to compile gcc-4.3 stage1
Summary: sys-devel/crossdev fails to compile gcc-4.3 stage1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-22 21:46 UTC by cyrillic
Modified: 2008-06-24 13:39 UTC (History)
0 users

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


Attachments
/var/log/portage/cross-i686-pc-linux-gnu-info.log (cross-i686-pc-linux-gnu-info.log,8.34 KB, text/plain)
2008-06-22 21:49 UTC, cyrillic
Details
/var/log/portage/cross-i686-pc-linux-gnu-gcc-stage1.log (cross-i686-pc-linux-gnu-gcc-stage1.log,722.15 KB, text/plain)
2008-06-22 21:50 UTC, cyrillic
Details
/var/log/portage/cross-i686-pc-linux-gnu-gcc-stage2.log (cross-i686-pc-linux-gnu-gcc-stage2.log,83 bytes, text/plain)
2008-06-23 23:40 UTC, cyrillic
Details
/var/log/portage/cross-powerpc-unknown-linux-gnu-glibc-headers.log (cross-powerpc-unknown-linux-gnu-glibc-headers.log,13.07 KB, text/plain)
2008-06-23 23:44 UTC, cyrillic
Details
/var/log/portage/cross-i586-gentoo-linux-uclibc-uclibc-headers.log (cross-i586-gentoo-linux-uclibc-uclibc-headers.log,40.73 KB, text/plain)
2008-06-23 23:45 UTC, cyrillic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2008-06-22 21:46:10 UTC
The changes since gcc-4.2 result in no longer being able to setup a cross-toolchain.

Reproducible: Always

Steps to Reproduce:
1. Start with an up-to-date ~amd64 system
2. crossdev --target i686-pc-linux-gnu
3. crossdev --target powerpc-unknown-linux-gnu
4. crossdev --target i586-gentoo-linux-uclibc
5. etc.
Actual Results:  
In each case, cross-binutils will compile fine, but the first pass of cross-gcc will fail.

Expected Results:  
Several working cross-toolchains that I can use with distccd
Comment 1 cyrillic 2008-06-22 21:49:30 UTC
Created attachment 158045 [details]
/var/log/portage/cross-i686-pc-linux-gnu-info.log
Comment 2 cyrillic 2008-06-22 21:50:22 UTC
Created attachment 158047 [details]
/var/log/portage/cross-i686-pc-linux-gnu-gcc-stage1.log
Comment 3 SpanKY gentoo-dev 2008-06-23 00:38:28 UTC

*** This bug has been marked as a duplicate of bug 227065 ***
Comment 4 cyrillic 2008-06-23 23:37:42 UTC
(In reply to comment #3)
Thank you for taking a look at this so quickly.

I just upgraded from crossdev-0.9.18-r8 to -r9, and here are the results :

i686-pc-linux-gnu now completes --stage4 without errors, but it seems that compiling the c++ compiler was skipped. "i686-pc-linux-gnu-gcc -v" confirmed this.

I ran a second pass with --ex-gcc, and now I have c/c++/fortran support, so I am happy.
Comment 5 cyrillic 2008-06-23 23:40:27 UTC
Created attachment 158165 [details]
/var/log/portage/cross-i686-pc-linux-gnu-gcc-stage2.log
Comment 6 cyrillic 2008-06-23 23:43:39 UTC
However, the other 2 targets I wanted (powerpc-unknown-linux-gnu and i586-gentoo-linux-uclibc) failed with errors on their libc-headers.
Comment 7 cyrillic 2008-06-23 23:44:42 UTC
Created attachment 158167 [details]
/var/log/portage/cross-powerpc-unknown-linux-gnu-glibc-headers.log
Comment 8 cyrillic 2008-06-23 23:45:22 UTC
Created attachment 158169 [details]
/var/log/portage/cross-i586-gentoo-linux-uclibc-uclibc-headers.log
Comment 9 SpanKY gentoo-dev 2008-06-24 03:49:29 UTC
this isnt a mondo bug to dump every random cross-compile issue you hit
Comment 10 cyrillic 2008-06-24 13:39:29 UTC
(In reply to comment #9)
I'm sorry about that.  I didn't realize how involved this problem would be.

Back when I was running gcc-4.2.3, crossdev worked flawlessly on those 3 targets.
Upon upgrading to gcc-4.3.0/4.3.1, Pandora's box is now opened :)