As an Arduino developer, I use crossdev for creating toolchains (in this case, avr), but then I found recent versions (from 4.6.4) don't support cross-compiling, and I don't know why.
4.6.2-r2 has some errors at compiling, and I had (for a while) to use a pretty older version, 4.3.3.
Anyway, as a workaround, I had to download the Gentoo GCC ebuilds (that support toolchain), and all works flawlessly.
Also, I made a script for that.
#!/bin/bash
URL="data.gpo.zugaina.org/gentoo/sys-devel/gcc/"
#URL="sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/gcc/"
PORTDIR="/usr/local/portage/cross-avr"
wget -r --no-parent --reject "index*" --quiet "http://$URL"
if [[ -e "$PORTDIR/gcc" && -L "$PORTDIR/gcc" ]];then
rm -v $PORTDIR/gcc
fi
cp -r $URL $PORTDIR
if [[ "$?" == "0" ]];then
echo "Success!"
else
echo "Something failed"
fi
echo "Cleaning..."
rm -rv $URL
Now, my question is: it will be (re)supported in future ebuilds for, at least, most of the Funtoo GCC ebuilds?