Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 6th November 2003, 08:45 AM   #1
Default need advise to build GNU tools for ARM

http://billgatliff.com/articles/gnu-cci/x53.html




I have untar all the gz

$ tar xzvf binutils-2.14.tar.gz
$ tar xzvf gcc-3.23.tar.gz
$ tar xzvf newlib-1.11.tar.gz
$ tar xzvf gdb-6.0.tar.gz


under /home/test



according to your document


$ cd <---- this go back /home/myself

$ mkdir build-binutils
$ mkdir build-gcc
$ mkdir build-newlib
$ mkdir build-gdb
$ mkdir install
$ export TARGET=arm-elf
$ export PREFIX=`pwd`/install
$ export PATH=$PATH:$PREFIX/bin


so I must stop here for further advise. "should this be cd /" or what the
above directory under which "TOP directory"
tiny12 is offline  
Old 6th November 2003, 06:07 PM   #2
Default

You need to configure and build the binutils first:

cd

cd build-binutils

../binutils-XXX/configure --target=$TARGET --prefix=$PREFIX

replace the binutils-XXX with the actual path to the binutils that you untarred from the archive file.
crust is offline  
Old 7th November 2003, 11:28 PM   #3
Default

I have deleted all the untar files under /home/test/ and re-shuffled all *gz
files to /home/myname/

and untar them under cygwins in multiple sessions since their folders are
under different directories.

http://billgatliff.com/articles/gnu-cci/x53.html

after the three export stmts

export ....
export
export
I also set | grep prefix

and I also do the set grep and make sure
myself at the /home/myname/install at the prefix.

I then followed in page 3

cd build-binutils
../binutils2.14/configure --target=$TARGET --prefix=$PREFIX

see attached *.gif

I then read the configure file and readme under binutiles2.14

I discovered this lines in configure

# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS
conftest.$ac_ext $LIBS 1>&5'


and the setenv in the readme. I have tried every possible combition. I failed.

can u help?
Attached Thumbnails
need advise to build GNU tools for ARM-gcc-1.gif  
tiny12 is offline  
Old 16th November 2003, 04:03 AM   #4
Default

no further help.

this problem is not solved.
tiny12 is offline  
Old 16th November 2003, 03:45 PM   #5
Default

Ok, the problem is that you dont have a compiler already installed. You need your cygwin gcc to build a gcc arm cross compiler. Just download and install the binutils and gcc for cygwin. Then you will use those tools to build the arm toolchain.
crust is offline  
Reply

Thread Tools
Display Modes




All times are GMT. The time now is 12:18 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker