1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

need advise to build GNU tools for ARM

Discussion in 'ARM' started by tiny12, Nov 6, 2003.

  1. tiny12

    tiny12 New Member

    Joined:
    Nov 4, 2003
    Messages:
    5
    Likes:
    0
    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"
     
  2. crust

    crust New Member

    Joined:
    Sep 30, 2003
    Messages:
    728
    Likes:
    3
    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.
     
  3. tiny12

    tiny12 New Member

    Joined:
    Nov 4, 2003
    Messages:
    5
    Likes:
    0
    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 Files:

  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. tiny12

    tiny12 New Member

    Joined:
    Nov 4, 2003
    Messages:
    5
    Likes:
    0

    no further help.

    this problem is not solved.
     
  6. crust

    crust New Member

    Joined:
    Sep 30, 2003
    Messages:
    728
    Likes:
    3
    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.
     

Share This Page