need advise to build GNU tools for ARM

Status
Not open for further replies.

tiny12

New Member
**broken link removed**




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"
 
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.
 
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.

**broken link removed**

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?
 

Attachments

  • gcc-1.gif
    4.1 KB · Views: 571
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.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…