Before compiling the toolchain, we should install the necessary packages and make some small modifications. Open a root terminal and issue the following commands:

SB2:/home/hfp# apt-get install make gcc-4.1 g++-4.1
SB2:/home/hfp# apt-get install bison flex
SB2:/home/hfp# apt-get install libncurses5-dev
SB2:/home/hfp# apt-get install gettext
SB2:/home/hfp# apt-get install tofrodos