Help in last step of building crossgcc 3.3.2 for ARM.

Aitor Garcia carrierphasejitter@yahoo.com
Thu Dec 11 16:50:00 GMT 2003


Hello everybody,

so far I have been able to successfully build and
install the
binutils, the bootstrap crossgcc and the glibc
libraries for ARM target with the following versions:

binutils_version=2.14;        
gcc_version=3.3.2;           
glibc_version=2.3.2;   
kernel_version=2.4.21; 

These are the commands that I have typed:

$binutils_version=2.14
$gcc_version=3.3.2
$glibc_version=2.3.2
$kernel_version=2.4.21

$host=i686-pc-linux-gnu;
$install_dir=/usr/local/arm;
$target=arm-linux;

#Build and install binutils
mkdir build-binutils
cd build-binutils
../binutils-$binutils_version/configure
--target=$target --prefix=$install_dir --host=$host
make
make install

cd ..
export PATH=$PATH:$install_dir/bin

#Build bootstrap gcc
mkdir build-gcc 
cd build-gcc 
../gcc-$gcc-version/configure --target=$target
--prefix=$install_dir --without-headers --with-newlibs
--enable-languages=c --disable-threads
--disable-shared
make
make install

cd ..

#Uncompress the kernel
tar --bzip2 -xvf linux-$kernel-version.tar.bz2

#Apply ARM patch (downloaded from
www.arm.linux.org.uk/developer/v2.4)
cd linux-$kernel-version
bzcat ../patch-$kernel-version-rmk1.bz2 | patch -p1

#Create dependencies
make ARCH=arm CROSS_COMPILE=$install_dir/bin/$target-
menuconfig
make dep

cd ..
#Uncompress glibc
tar --bzip2 -xvf glibc-$glibc_version.tar.bz2

#Uncompress glibc-linuxthreads in glibc directory
tar --bzip2 -xvf
glibc-linuxthreads_$glibc_version.tar.bz2
--directory=glibc-$glibc_version

#Build glibc 
#Note 1: In line 161 of
#sysdeps/unix/sysv/linux/arm/sysdep.h "a1", must be
#removed

#Note 2: In line 37 of
glibc-#2.3.2/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep#-cancel.h
a semicolon must be added.

../glibc-$glibc_version/configure --host=$target
--prefix=$install_dir
--with-headers=../linux-$kernel_version/include
--enable-add-ons

make
make install_root="$install_dir/$target" prefix=""
install

cd ..

#Note 3: gcc to be able to find the libraries, we have
to modify
$install_dir/$target/lib/libc.so file and write 
GROUP (libc.so.6 libc_nonshared.a)

#Next, configure the complete gcc
cd build-gcc
../gcc-$gcc_version/configure --target=$target
--prefix=$install_dir 
--host=$host 
make; 

But I get the following error message:

/usr/local/arm/bin/arm-linux-gcc -c -DHAVE_CONFIG_H -g
-O2 -I. -I../../gcc-3.3.2/libiberty/../include  -W
-Wall -Wtraditional -pedantic
../../gcc-3.3.2/libiberty/fnmatch.c -o fnmatch.o
In file included from
/usr/local/arm/arm-linux/include/errno.h:36,
                 from
../../gcc-3.3.2/libiberty/fnmatch.c:46:
/usr/local/arm/arm-linux/include/bits/errno.h:25:26:
linux/errno.h: No such file or directory
make[1]: *** [fnmatch.o] Error 1
make[1]: Leaving directory
`/root/toolchain/build-gcc/libiberty'
make: *** [all-libiberty] Error 2

Is it something that I have done wrong in the previous
steps ?. I need help, I have been tackling with the
process of building the toolchain for nearly
two weeks.

Thank you for your support.


Regards,

Aitor




__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list