When you build gcc 4.1.2 if you get this error /usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
Create a symlink asm directed to asm-generic
sudo ln -s /usr/include/asm-generic /usr/include/asm
Bingo..
I recently moved from Debian to FreeBSD on my Raspberry pi. This thread will help you to go easy with raspberry pi.
Probelm 1: /usr/ports missing
you have to run portsnap fetch
and then portsnap extract
/usr/ports directories will be created and ready to go.