Yagarto fresh install: make Error 1

Guest #1486737
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.
Moderator #1487532
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.
Guest #1487967
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.

Reply

A question of your own? This thread is over 16 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.