Results 1 to 5 of 5

Thread: arm-elf-gcc: Command not found

  1. #1
    Join Date
    May 2010
    Beans
    4

    arm-elf-gcc: Command not found

    hi everyone,

    I'm trying to compile using a makefile with arm-elf-gcc on ubuntu 9.10. The problem is that I can't change the default path. The error I get is

    Code:
    michael@michael-laptop:~/Documents/usb_eth/src$ make
    /disk2/tools/gnuarm/bin/arm-elf-gcc -c -I. -x assembler-with-cpp -mcpu=arm7tdmi   startup.S -o startup.o
    make: /disk2/tools/gnuarm/bin/arm-elf-gcc: Command not found
    make: *** [startup.o] Error 127
    the makefile is located at 'michael/Documents/usb_eth/src' and arm-elf-gcc at 'michael/toolchain/gnu-arm-installer/install/bin'. (michael is the home directory)

    So it looks for arm-elf-gcc at the wrong location.

    I followed the instructions from http://ubuntuforums.org/showthread.php?t=748593 (I added the line 'export PATH=$PATH:/toolchain/gnu-arm-installer/install/bin' to .bashrc and the line 'source $HOME/.bashrc' to .bash_profile, both in the home directory) and the path does seem to be changed, cause 'echo $PATH' returns
    Code:
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/toolchain/gnu-arm-installer/install/bin
    Still I get the same error.

    Can anyone help?


    thanks in advance,

    Michael

  2. #2
    Join Date
    Jun 2008
    Location
    California
    Beans
    154
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: arm-elf-gcc: Command not found

    make: /disk2/tools/gnuarm/bin/arm-elf-gcc: Command not found
    It doesn't seem to be looking in your /toolchain/gnu-.... directory but instead in the /disk2 directory. Check your Makefile to see where it's getting that "/disk2/tools..." from.

  3. #3
    Join Date
    May 2010
    Beans
    4

    Re: arm-elf-gcc: Command not found

    that's the weird thing, the makefile doesn't mention anything about that disk2/.. directory. :s

  4. #4
    Join Date
    Jun 2008
    Location
    California
    Beans
    154
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: arm-elf-gcc: Command not found

    Try this while you are in that directory where the Makefile is:
    grep -i disk2 *

  5. #5
    Join Date
    May 2010
    Beans
    4

    Re: arm-elf-gcc: Command not found

    thank you very much!

    the path was specified in another file in that directory, changing it solved my problem!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •