C compiler: gcc-3.2.2
Libc: glibc-2.3.2 + glibc-linuxthreads-2.3.2
That is the first element to build. Download the sources and compile them as below:
./configure --target=arm-linux --prefix=/usr/local/arm
ld for Xscale will be named: /usr/local/arm/bin/arm-linux-ld
That is the second element to build. Download the sources.
It is no possible to configure and build gcc in the extracted gcc directory.
Create another directory (like gcc) and configure and compile as below:
../gcc-3.2.2/configure --target=arm-linux --prefix=$PREFIX \
gcc for Xscale will be named: /usr/local/arm/bin/arm-linux-gcc
Libc for Xscale
A configured Xscale kernel is needed before doing this step.
That is the last step but that is the most complex to do, but it is not needed to build
a Linux kernel.
Download glibc-2.3.2 and the corresponding linuxthreads (glibc-linuxthreads-2.3.2).
Extract glibc and in the glibc-2.3.2 extract the linuxthreads.
Patch the linuxthreads:
Copy the missing include files:
cp /home/arm/lib/gcc-lib/xscale-elf/3.2.2/include/*.h /usr/local/arm/include
Configure and build libc (The kernel sources are in /home/loox/linux):
Check the /usr/local/arm/lib/libc.so if it is not a dynamicly library remove it.
The libc.so is /usr/local/arm/lib/libc-2.3.2.so put a symbolic link if you need it.