I need some packages in order to build gcc.
You cannot build gcc without gcc. Read post #2 @Mara , please.
Are you quite sure, that LTIB has no gcc included ?
The Debian 'arm-gcc' is just an example of a usable compiler.
You can search for any other 'arm-linux-gcc'.
Be aware, it must fit your old glibc.
If the rpm command is available on your board, the .deb
packages can be converted to rpm packages and installed.
Or unpack the packages with ar ......
cpp_4.1.1-15_arm.deb cpp-4.1_4.1.1-21_arm.deb gcc_4.1.1-15_arm.deb
ar -x <package>.deb && mv data.tar.gz <name>-<version>.tar.gz