so...the cross tools packages are kinda great. I've always wanted this to be easy and you have advanced it.
Without too much trouble, I have compiler/linker/headers/startup and can build simple programs for many Linux targets, and mingw/x86 and mingw/amd64. Things break down slightly in three ways. 1 I get a lot of these warnings/errors now: You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libgcc1:mipsel : Depends: libc6:mipsel (>= 2.2.4) but it is not installed libgcc1:mips : Depends: libc6:mips (>= 2.2.4) but it is not installed libice6:mips : Depends: libc6:mips (>= 2.11) but it is not installed libice6:mipsel : Depends: libc6:mipsel (>= 2.11) but it is not installed libsm6:mips : Depends: libc6:mips (>= 2.4) but it is not installed libsm6:mipsel : Depends: libc6:mipsel (>= 2.4) but it is not installed libuuid1:mipsel : Depends: libc6:mipsel (>= 2.4) but it is not installed libuuid1:mips : Depends: libc6:mips (>= 2.4) but it is not installed libx11-6:mipsel : Depends: libc6:mipsel (>= 2.15) but it is not installed libx11-6:mips : Depends: libc6:mips (>= 2.15) but it is not installed libxau6:mips : Depends: libc6:mips (>= 2.3.4) but it is not installed libxau6:mipsel : Depends: libc6:mipsel (>= 2.3.4) but it is not installed libxaw7:mips : Depends: libc6:mips (>= 2.15) but it is not installed libxaw7:mipsel : Depends: libc6:mipsel (>= 2.15) but it is not installed libxcb1:mips : Depends: libc6:mips (>= 2.4) but it is not installed libxcb1:mipsel : Depends: libc6:mipsel (>= 2.4) but it is not installed libxdmcp6:mips : Depends: libc6:mips (>= 2.2) but it is not installed libxdmcp6:mipsel : Depends: libc6:mipsel (>= 2.2) but it is not installed libxext6:mips : Depends: libc6:mips (>= 2.3.4) but it is not installed libxext6:mipsel : Depends: libc6:mipsel (>= 2.3.4) but it is not installed libxmu6:mips : Depends: libc6:mips (>= 2.7) but it is not installed libxmu6:mipsel : Depends: libc6:mipsel (>= 2.7) but it is not installed libxpm4:mips : Depends: libc6:mips (>= 2.7) but it is not installed libxpm4:mipsel : Depends: libc6:mipsel (>= 2.7) but it is not installed libxt6:mips : Depends: libc6:mips (>= 2.7) but it is not installed libxt6:mipsel : Depends: libc6:mipsel (>= 2.7) but it is not installed I suspect I can ignore them. I'm on an amd64 host. (I need the cross tools even to target x86, but that isn't all I wanted.) I think what happened is that, you know, I need stdio.h (possibly per target), "crt.o" or such, and maybe "libc.so" and such. I.e. I need inputs to the compiler and static linker. Oh, sorry, backup, maybe these aren't your packages: jay@debamd64:~/downloads/dwarf-20160613$ more /etc/apt/sources.list deb http://emdebian.org/tools/debian/ jessie main But I think the Debian documentation led me there. Anyway, back to the problems. I think what happens is there is kind of a "link" that needs to be broken. That is, the cross tools should not replace my actual running environment at all. I think that is implied wrong in some of the packages, because they don't have in mind cross tools. 2 I wanted to build Xlib programs. While I have the minimal libc sort of stuff, it doesn't seem installing things like libxaw6-dev works. jay@debamd64:~/downloads/dwarf-20160613$ ssh root@localhost apt-get install libxaw7-dev:mips Reading package lists... Building dependency tree... Reading state information... You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libgcc1:mipsel : Depends: libc6:mipsel (>= 2.2.4) but it is not going to be installed libgcc1:mips : Depends: libc6:mips (>= 2.2.4) but it is not going to be installed libice6:mips : Depends: libc6:mips (>= 2.11) but it is not going to be installed libice6:mipsel : Depends: libc6:mipsel (>= 2.11) but it is not going to be installed libsm6:mips : Depends: libc6:mips (>= 2.4) but it is not going to be installed libsm6:mipsel : Depends: libc6:mipsel (>= 2.4) but it is not going to be installed libuuid1:mipsel : Depends: libc6:mipsel (>= 2.4) but it is not going to be installed libuuid1:mips : Depends: libc6:mips (>= 2.4) but it is not going to be installed libx11-6:mipsel : Depends: libc6:mipsel (>= 2.15) but it is not going to be installed libx11-6:mips : Depends: libc6:mips (>= 2.15) but it is not going to be installed libxau6:mips : Depends: libc6:mips (>= 2.3.4) but it is not going to be installed libxau6:mipsel : Depends: libc6:mipsel (>= 2.3.4) but it is not going to be installed libxaw7:mips : Depends: libc6:mips (>= 2.15) but it is not going to be installed libxaw7:mipsel : Depends: libc6:mipsel (>= 2.15) but it is not going to be installed libxaw7-dev:mips : Depends: libx11-dev:mips but it is not going to be installed Depends: libxmu-dev:mips but it is not going to be installed Depends: libxpm-dev:mips but it is not going to be installed Depends: x11proto-core-dev:mips libxcb1:mips : Depends: libc6:mips (>= 2.4) but it is not going to be installed libxcb1:mipsel : Depends: libc6:mipsel (>= 2.4) but it is not going to be installed libxdmcp6:mips : Depends: libc6:mips (>= 2.2) but it is not going to be installed libxdmcp6:mipsel : Depends: libc6:mipsel (>= 2.2) but it is not going to be installed libxext6:mips : Depends: libc6:mips (>= 2.3.4) but it is not going to be installed libxext6:mipsel : Depends: libc6:mipsel (>= 2.3.4) but it is not going to be installed libxmu6:mips : Depends: libc6:mips (>= 2.7) but it is not going to be installed libxmu6:mipsel : Depends: libc6:mipsel (>= 2.7) but it is not going to be installed libxpm4:mips : Depends: libc6:mips (>= 2.7) but it is not going to be installed libxpm4:mipsel : Depends: libc6:mipsel (>= 2.7) but it is not going to be installed libxt6:mips : Depends: libc6:mips (>= 2.7) but it is not going to be installed libxt6:mipsel : Depends: libc6:mipsel (>= 2.7) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). jay@debamd64:~/downloads/dwarf-20160613$ I kinda think, for this to work more completely and more autoatically, the dpkg --add-architecture mips and such command, might need a notion of sysroot. Now, I don't want linux-mips-gcc off in the sys root, I want it in /usr/bin like the native gcc, but I want it to go looking in a sysroot. 3 as if point #2 wasn't greedy enough, I really also want cross tools for Solaris, AIX, Irix, HP-UX, etc. I gather there are two sets of significant problems here. 3a) Sometimes the GNU assembler/linker isn't the recommended one, more or less severely. 3b) Even if GNU as/ld work, and they often do, there is the problem of the C runtime headeres/libraries, and everything else -- the sysroot. I suppose, perhaps, one can handhold here a bit -- provide the gcc/binutils, and instructions to point to an ipaddress or hostname it'll copy over....everything? libc/crt.o? Well, that being said, the compilers are a little useful without sysroot and oculd be provided, but that might provide more confusion than help, since the little we can do w/ a cross compiler w/o sysroot, we can build the compiler ourselves. Anyway, thank you for getting it this far. - Jay