arm-elf-gcc path setting in eclipse

OP (Company: none) #2247755
Hello guys


I am new to this forum and I have found it very fruitful for the ARM 
related discussions so I posted my query here in hope that you guys will 
help me out of this problem.

I have encounterd a big problem in my opinion but I think it would be a 
little one for you guys.


well my problem is that I have successfullly installed the arm-elf-gcc 
toolchain on my Ubuntu lucid system and have tested it and compiled the 
program with it succesfully through commandline.


But now I want to compile the same program from the eclipse IDE and for 
that I installed the gnuarm eclipse plugin from the sourceforge site and 
try to compile the program but getting this error :


**** Build of configuration Debug for project demo2106_blink_flash ****

make all
Building file: ../main.c
Invoking: ARM Linux GCC C Compiler
arm-elf-gcc -O0 -Wall -Wa,-adhlns="main.o.lst" -c -fmessage-length=0 
-MMD -MP -MF"main.d" -MT"main.d" -mcpu=arm7tdmi -mthumb -g3 -gdwarf-2 
-o"main.o" "../main.c"
/bin/sh: arm-elf-gcc: command not found
make: *** [main.o] Error 127


here it is showing that arm-elf-gcc: command not found but I have 
installed the compiler and it is specyfying the /bin/sh path for the arm 
compiler whereas I have installed the compiler in the 
/usr/local/gnuarm/install/bin/ path .


So my question is how can I configure the path of the compiler in the 
eclip[se IDE as I have saw and checked many times that there is no way 
or option to configure the path of the compilers , assemblers etc in the 
eclipse .



So please tell me how to configure the path.



Thank you
Well i´m not quite sure how its implementet in Linux, but in windows you 
can add a PATH variable.

Right click on the Projekt you want to build --> Properties --> C/C++ 
Build --> Environment . Here can you add a Varriable called "PATH" and 
the vaule is where to finde your compiler.

Best regards
Lutz
OP (Company: none)
Lutz S. wrote:
> Well i´m not quite sure how its implementet in Linux, but in windows you
> can add a PATH variable.
>
> Right click on the Projekt you want to build --> Properties --> C/C++
> Build --> Environment . Here can you add a Varriable called "PATH" and
> the vaule is where to finde your compiler.
>
> Best regards
> Lutz

yeah thanks Lutz for your help

Now I can compile my program with the path of the compiler specified.


Thank once again.


Piyush Pandey
Dear sir,
 I have set Eclipse for ARm, using GNUARM tool chain on windows, i 
imported sample project of lpc2148 led flash , in that there is one .s 
(stratup assembly language file of lpc2148),
When i builds project,Make file compiles main.c to main.o ,but crt.s 
file is not getting assembled and thus not getting further hex file,
Sir , please help me showing how to do the settings in c/c++ build 
option of project ..
OP (Company: none)
Hello rashad

This is your makefile problem , so check the makefile if the .s file is 
there mentioned if not than mention it if mentioned than check the 
syntax if it's ok or not.


do some googling about makefile writing and than proceed , hope you will 
resolve your problem following the above steps.


cheers

Piyush Pandey
Hello Piyush;
Thank you for your help,
In my make file there is .s file ,but
Actually eclipse has a bug in helios version, it does not consider .s 
(small s ), as a file type , I renamed it and changed to .S , Now 
everything works fine , I got main.c->main.o,crt.S->crt.O and finally 
.hex as output in release folder of ECLIPSE.
IT REQUIRED MANY CRUCIAL SETTINGS TO BE DONE IN C/C++ BULID OPTIONS OF 
PROJECT IN ECLIPSE FOR GNUARM TO WORK...



Cheers ,
Rashad
(Company: Sevya Multimedia)
Hey,

I am linux user.

I am also getting the same error while configuring STM32 with Eclipse 
Classic

/bin/sh: arm-elf-gcc: command not found
make: *** [main.o] Error 127

Could you please let me know how to source the arm-elf-gcc compiler in 
linux


-- Harsh

Reply

A question of your own? This thread is over 15 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.