First: which DSM version do you have?
I see you got until ipkg update, that means you can get the precompiled binaries for the toolchain.
When you try these commands nothing happens?
ipkg install gcc
ipkg install make automake autoconf libtool binutils
ipkg install crosstool-native optware-devel
type in
ipkg list_installed
and paste here the output.