Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89234 - crossdev fails to compile gcc for mips (because of gcj)
Summary: crossdev fails to compile gcc for mips (because of gcj)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2005-04-15 15:53 UTC by Tiago Freire
Modified: 2005-04-16 15:52 UTC (History)
1 user (show)

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

crossdev log (cross-mips-unknown-linux-uclibc-info.log,3.99 KB, text/plain)
2005-04-15 15:54 UTC, Tiago Freire
crossdev log (gcc stage2) (cross-mips-unknown-linux-uclibc-gcc-stage2.log,882.39 KB, text/plain)
2005-04-15 15:55 UTC, Tiago Freire

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Freire 2005-04-15 15:53:17 UTC
I am trying to set up an environment to compile stuff for mips architecture (linksys wrt54g router). I used crossdev to try to compile a cross-compiler gcc:
crossdev -t mips-unknown-linux-uclibc
but it failed while compiling gcc

Reproducible: Always
Steps to Reproduce:
1.crossdev -t mips-unknown-linux-uclibc

Actual Results:  
gcc cross compiler compilation failed 

Expected Results:  
should have a cross compiler gcc
Comment 1 Tiago Freire 2005-04-15 15:54:23 UTC
Created attachment 56387 [details]
crossdev log
Comment 2 Tiago Freire 2005-04-15 15:55:48 UTC
Created attachment 56388 [details]
crossdev log (gcc stage2)
Comment 3 Stephen Becker (RETIRED) gentoo-dev 2005-04-16 06:02:36 UTC
Did you look at your error?  The problem is because gcc is trying to link against a non-existent cross-gtk+ lib that wouldn't work anyway even if it was there (since it would be a mips gtk+).  You are going to have to change your USE to "-gtk" at the very minimum, and really you should do "-gtk -gcj -objc" and perhaps "-fortran" too.  These are pretty much completely unneccessary for cross-compiling for a wrt54g anyway.

On another note, your CFLAGS are completely excessive and are likely to get compile bugs from you invalidated (not that crossdev uses them anyway).
Comment 4 Stephen Becker (RETIRED) gentoo-dev 2005-04-16 06:19:04 UTC
Oh, and one more thing that I didn't catch in my first comment (sorry for the emails everyone), you are using the wrong CHOST for the wrt54g(s).  These machines are little endian, yet you are building a toolchain for big endian machines.  Your CHOST should be mipsel-unknown-linux-uclibc instead.
Comment 5 SpanKY gentoo-dev 2005-04-16 15:52:27 UTC
drop the USE=gcj and it should work fine i think