Problem building a cross-gcc for arm target
Yeong Jiun How
yeongjh@cwc.nus.edu.sg
Tue Jan 16 17:33:00 GMT 2001
Hi,
I have just successfully building the crossGCC for ARM, and here
are the procedures. Hope this can help you.
1. download the tar.gz version of GCC source version 2.95.2 in /src/gcc
2. cd /src/gcc
3. gunzip -vf <source>.tar.gz
4. tar -xvf <source>.tar
5. download gcc patch <ecos-gcc-2952.pat> to support eCos from
http://sources.redhat.com/ecos/tools/win-arm-elf. html
to /src/gcc/gcc-2.95.2
6. cd /src/gcc/gcc-2.95.2
7. tr -d '\r' < ecos-gcc-2952.pat | patch -p0
8. mkdir /tmp/build/gcc
9. cd /tmp/build/gcc
10. mkdir /gcc-src
11. mount -s -t 'C:\<cygpath>\<srcdir>' /gcc-src
12. /gcc-src/configure --target=arm-elf --prefix=/<installdir> \
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ --exec-prefix=/<execdir> -v 2>&1 | tee configure.out
13. make -w all-gcc install-gcc LANGUAGES="c c" 2>&1 | tee make.out
Regards,
Yeong
At 06:26 PM 1/16/01 +0100, Igor Trevisan wrote:
Hello,
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ I am trying to build a cross-compiler for an ARM target but I
have some problems.
Configuring, building and installing binutils (binutils-2.10) doesn't
give me any
problem, but building gcc (gcc-2.95.2) end with the following error
message:
...
make[1]: Entering directory `/root/mytmp/tmpgcc/arm elf/libiberty'
test x"no" != xyes || \
ÃÂ /root/mytmp/tmp-gcc/gcc/xgcc -B/root/mytmp/tmp-gcc/gcc/ -
B/tools/arm-elf/bin/
-c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-
2.95.2/libiberty/../includeÃÂ ÃÂ ../..
/../gcc-2.95.2/libiberty/choose-temp.c -o pic/choose-temp.o
/root/mytmp/tmp-gcc/gcc/xgcc -B/root/mytmp/tmp-gcc/gcc/ -
B/tools/arm-elf/bin/ -c
ÃÂ -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-
2.95.2/libiberty/../includeÃÂ ../../..
/gcc-2.95.2/libiberty/choose-temp.c../../../gcc-
2.95.2/libiberty/choose-temp.c:29: stdio.h: No such file or directory
../../../gcc-2.95.2/libiberty/choose-temp.c:30: sys/types.h: No such
file or directory
../../../gcc-2.95.2/libiberty/choose-temp.c:32: unistd.h: No such file
or directory
../../../gcc-2.95.2/libiberty/choose-temp.c:35: stdlib.h: No such file
or directory
../../../gcc-2.95.2/libiberty/choose-temp.c:38: sys/file.h: No such
file or directory
make[1]: *** [choose-temp.o] Error 1
make[1]: Leaving directory `/root/mytmp/tmp-gcc/arm-
elf/libiberty'make: *** [all-target-libiberty] Error 2
root ~/mytmp
I'm trying to build the cross-compiler in the /tools/bin
directory and I added it to the PATH.
I saw in the list of FAQ that someone else had a similar problem
and the suggested solution was to configure the cross gcc with the
option:
--with-headers=/root/mytmp/newlib-1.8.2/newlib/libc/include
But I tried it without any good news.
Can anyone suggest something else to go on?
Thanks in advance to every good guy that will save my work and
my patience!
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Igor.
-----------------------------------------------------------
BlueWindÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Electronic Design
I-31033 Castelfranco Veneto (TREVISO)
Via Steffani 7/B
-----------------------------------------------------------
VOICEÃÂ ÃÂ +39 0 423 723431
FAXÃÂ ÃÂ ÃÂ ÃÂ +39 0 423 744738
MOBILEÃÂ +39 335 7298820
(MOBILEÃÂ +39 349 7787328)
mailto:igor@bluewind.it
http://www.bluewind.it
----------------------------------------
------
Want more information?ÃÂ See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list