This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with building the ARM-development tools?


Dear All:
  I encounter a lot of problems when I building the development tools for
ARM board.

Here are the steps I followed exactly.( Please point out the mistake for me
. Thanks a lot! )

( I am on Windows2000 platform, and I have download the cygwin1.3.1. On my
computer I have c:(Harddisk) d:(HardDisk) e:(as CD-RoM).
Cygwin is installed in:  c:/cygwin )

1. 	$ uname -r
	1.3.1(0.38/3/2)

2.	$ mount -f c:/ /c
	$ mount -f d:/ /d
	$ mount -f e:/ /e

3.	"download the files": (1) binutils-2.10.1.tar.bz2
				    (2) gcc-core-2.95.2.tar.bz2
				    (3) gcc-g++-2.95.2.tar.bz2
				    (4) insight-5.0.tar.bz2
				    (5) ecos-gcc-2952.pat (patch file)
				    (6) insight-tcl.pat (patch file)
	and store in c:/cygwin directory.

4.	$ mkdir -p /src/binutils /src/gcc /src/gdb

5.	$ cd /src/binutils
   	$ bunzip2 < /binutils-2.10.1.tar.bz2 | tar xvf -
    	$ cd /src/gcc
    	$ bunzip2 < /gcc-core-2.95.2.tar.bz2 | tar xvf -
    	$ bunzip2 < /gcc-g++-2.95.2.tar.bz2 | tar xvf -
    	$ cd /src/gdb
    	$ bunzip2 < /insight-5.0.tar.bz2 | tar xvf -

6.	$ echo $TEMP
	/c/winnt/temp

7.	"use mount to examine my system":
	$ mount
	c:\cygwin\bin on /usr/bin type system (textmode)
	c:\cygwin\lib on /usr/lib type system (textmode)
	c:\cygwin\tmp on /tmp type user (binmode)
	c:\winnt\temp on /c/winnt/temp type user (binmode)
	c:\cygwin on / type system (textmode)
	c: on /c type user (textmode)
	d: on /d type user (textmode)
	e: on /e type user (textmode)

8.	$ cd /src/gdb/insight-5.0
    	$ tr -d '\r' < /insight-tcl.pat | patch -p0

9.	$ cd /src/gcc/gcc-2.95.2
    	$ tr -d '\r' < ecos-gcc-2952.pat | patch -p0

10.	$ contrib/egcs_update --touch

11.	$ export MAKE_MODE=UNIX

12.	$ mkdir -p /tmp/build/binutils
	$ cd /tmp/build/binutils
      $ /src/binutils/binutils-2.10.1/configure --target=arm-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      -v 2>&1 | tee configure.out

13.	$ make -w all install 2>&1 | tee make.out

14.	$ PATH=/tools/H-i686-pc-cygwin/bin:$PATH ; export PATH
	$ mkdir -p /tmp/build/gcc
	$ cd /tmp/build/gcc
    	$ /src/gcc/gcc-2.95.2/configure --target=arm-elf \
       --prefix=/tools \
       --exec-prefix=/tools/H-i686-pc-cygwin \
       --with-gnu-as --with-gnu-ld --with-newlib \
       -v 2>&1 | tee configure.out

15.	$ make -w all-gcc install-gcc \
        LANGUAGES="c c++" 2>&1 | tee make.out

16.	$ mkdir -p /tmp/build/gdb
    	$ cd /tmp/build/gdb
    	$ /src/gdb/insight-5.0/configure --target=arm-elf \
        --prefix=/tools \
        --exec-prefix=/tools/H-i686-pc-cygwin \
        -v 2>&1 | tee configure.out

17.	$ make -w all install 2>&1 | tee make.out
	" Now encounter problems here, it seems it can solve something with the
win32api .h files". problems shows:

/usr/include/w32api/winnt.h:48: parse error before `CCHAR'
and many the same type errors following this one.

and the in winnt.h line 48 shows:

typedef CHAR CCHAR;

Can anybody help me. Thank you very much !!!

Best regards!

james





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]