EmbDev.net

Forum: ARM programming with GCC/GNU tools arm-elf-gcc path setting in eclipse


von Piyush P. (Company: none) (piyushpandey)


Rate this post
useful
not useful
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

von Lutz S. (fgs-bussard)


Rate this post
useful
not useful
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

von Piyush P. (Company: none) (piyushpandey)


Rate this post
useful
not useful
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

von rashad a. (rashad)


Rate this post
useful
not useful
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 ..

von Piyush P. (Company: none) (piyushpandey)


Rate this post
useful
not useful
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

von rashad a. (rashad)


Rate this post
useful
not useful
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

von Harsh G. (Company: Sevya Multimedia) (harshgupta)


Rate this post
useful
not useful
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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.