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
Steps to Reproduce:
1.crossdev -t mips-unknown-linux-uclibc
gcc cross compiler compilation failed
should have a cross compiler gcc
Created attachment 56387 [details]
Created attachment 56388 [details]
crossdev log (gcc stage2)
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).
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.
drop the USE=gcj and it should work fine i think