EmbDev.net

Forum: ARM programming with GCC/GNU tools Yagarto fresh install: make Error 1

Author: artelse (Guest)
Posted on: 2009-11-17 23:40

Hi,

Did a new install of Yagarto and tools. I can compile from the terminal
just fine, but when I try to compile in Eclipse it outputs this error:

**** Build of configuration Default for project test ****

make all
arm-elf-gcc -x assembler-with-cpp -c -mcpu=arm7tdmi -g -gdwarf-2
-Wa,-amhls=src/startup.lst   src/startup.s -o src/startup.o
make: arm-elf-gcc: No such file or directory
make: *** [src/startup.o] Error 1

I suspect a path problem, but when I point my terminal to the same
working directory where the project is, it compiles fine.. Is this error
pointing to a project file it can't find or the actual toolchain
command?

FWIW, I am using Mac OS 10.6

Any hints?

Thanks.
Author: Martin Thomas (mthomas) (Moderator)
Posted on: 2009-11-18 18:13

I don't have MAC OS running and currently no Eclipse to test with - so
just a rough hint: at least on MS Win Eclipse offers an option to set
the environment variables before calling make. Browse a little bit in
the project-specific and global settings you should find the dialog-tab
where the environment-variables (incl. path) get configured. If you can
not find it please ask again and I can at least lock this up in an
Eclipse running on MS Win.
Author: Tilo (Guest)
Posted on: 2009-11-18 18:35

Sounds like a path problem to me. Have you tried to add the path, e.g.
in ~/.profile?
Author: artelse (Guest)
Posted on: 2009-11-19 00:36

Indeed it was a path problem, I assumed Eclipse would pick up the
~/.bash_profile settings, but it needed to be told separately. I did set
a path build variable for this which didn't work.

In project properties->C/C++ Environment a path variable can be added
which does the trick.

Thanks for the response.
Author: Tilo (Guest)
Posted on: 2009-11-19 10:32

The bash file is only used by bash. Settings in ~/.profile should be
system wide.

Cheers, Tilo

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]






webmaster@embdev.netContactAdvertising on EmbDev.net