Hi Jonas, The gcc/config/mips/haiku.h need some changes, IMHO. Take a look at the linux.h or netbsd.h in the same directory. WCHAR_TYPE should be "int" and size "32", and in the TARGET_OS_CPP_BUILTINS area, there should be some defines for "abi" and "pic". Here is my patch.diff.gz, not fully verified yet. 2009/4/14 Jonas Sundström <jonas@xxxxxxxxxxx> > > I've started looking at growing a haiku/mips > personality for binutils and gcc, and have so > far come up with the following patch, which is > really just a shot in the dark. > > http://www.kirilla.com/tmp/buildtools.diff > > It's meant to provide a 32-bit, little-endian mips > (AKA mipsel) toolchain. > > So, you who have experience with these things, > how does it look? Utter incompetence? > > I tried looking at haiku/ppc and haiku/arm and > the other systems supporting mips, but some or > most of it is just me guessing. > > (I recommend creating a folder named "generated_mips" > next to your "generated"-folder, so you don't ruin > your x86 build, and then run the following in the > folder "generated_mips": > ../configure --build-cross-tools-gcc4 mipsel ../../buildtools --use-gcc > -pipe) > > Binutils build and part of gcc builds. There愀 an xgcc > that gets built. And then it gets stuck on something > about libstdc++/libsupc++: > http://pastebin.com/m3ae06f38 > > /Jonas. > > >