I repeat: by installing certain packages from the SDK you'll trash your root filesystem. Use a chroot.
Gcc & headers are probably fine. Anything depending on bash is not.
Rootstrap is what the SDK unpacks on a target before attempting to apt-get.