EmbDev.net

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


Author: Piyush Pandey (Company: none) (piyushpandey)
Posted on:

Rate this post
0 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

Author: Lutz S. (fgs-bussard)
Posted on:

Rate this post
0 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

Author: Piyush Pandey (Company: none) (piyushpandey)
Posted on:

Rate this post
0 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

Author: rashad ansari (rashad)
Posted on:

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

Author: Piyush Pandey (Company: none) (piyushpandey)
Posted on:

Rate this post
0 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

Author: rashad ansari (rashad)
Posted on:

Rate this post
0 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

Author: Harsh Gupta (Company: Sevya Multimedia) (harshgupta)
Posted on:

Rate this post
0 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

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]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.