EmbDev.net

Forum: ARM programming with GCC/GNU tools Problem compiling with gcc


Author: Imran V (Guest)
Posted on:

Rate this post
0 useful
not useful
I am new to Eclipse. Using Yagarto site I have downloaded tools for ARM
processors which includes GNU (compiler) and Eclipse as IDE. I am
attempting to compile an example project. Each time I execute the
command "clean" or "build all" follwing is the message I receive:

make -k all
compiling
arm-elf-gcc -I./ -c -fno-common -00 -g main.c
process begin: CreateProcess(null)arm-elf-gcc -I./ -c -fno-common -00 -g
main.c...) failed
make (e=2): The system cannot find the file specified.

I have observed similar error when trying to execute "make clean"
command in dos prompt, i.e., eclipse not even in the loop. I have also
reinstalled everyting in two different PC with the same result.
Regardless, nothing has worked. Any help will be greatly appreciated.
Thanks.

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 useful
not useful
Imran V wrote:
> I am new to Eclipse. Using Yagarto site I have downloaded tools for ARM
> processors which includes GNU (compiler) and Eclipse as IDE. I am
> attempting to compile an example project. Each time I execute the
> command "clean" or "build all" follwing is the message I receive:
>
> make -k all
> compiling
> arm-elf-gcc -I./ -c -fno-common -00 -g main.c
> process begin: CreateProcess(null)arm-elf-gcc -I./ -c -fno-common -00 -g
> main.c...) failed
> make (e=2): The system cannot find the file specified.
>
> I have observed similar error when trying to execute "make clean"
> command in dos prompt, i.e., eclipse not even in the loop. I have also
> reinstalled everyting in two different PC with the same result.
> Regardless, nothing has worked. Any help will be greatly appreciated.
> Thanks.

this is a system path related.

in a cmd dos windows. what happen if you type this command ?

make --version
arm-elf-gcc --version

if you get a 3.81 version for the make command, you MUST put SHELL=cmd
in your makefile.

regards

Jonathan

Author: Imran V (Guest)
Posted on:

Rate this post
0 useful
not useful
Jonathan Dumaresq wrote:
> Imran V wrote:
>> I am new to Eclipse. Using Yagarto site I have downloaded tools for ARM
>> processors which includes GNU (compiler) and Eclipse as IDE. I am
>> attempting to compile an example project. Each time I execute the
>> command "clean" or "build all" follwing is the message I receive:
>>
>> make -k all
>> compiling
>> arm-elf-gcc -I./ -c -fno-common -00 -g main.c
>> process begin: CreateProcess(null)arm-elf-gcc -I./ -c -fno-common -00 -g
>> main.c...) failed
>> make (e=2): The system cannot find the file specified.
>>
>> I have observed similar error when trying to execute "make clean"
>> command in dos prompt, i.e., eclipse not even in the loop. I have also
>> reinstalled everyting in two different PC with the same result.
>> Regardless, nothing has worked. Any help will be greatly appreciated.
>> Thanks.
>
> this is a system path related.
>
> in a cmd dos windows. what happen if you type this command ?
>
> make --version
> arm-elf-gcc --version
>
> if you get a 3.81 version for the make command, you MUST put SHELL=cmd
> in your makefile.
>
> regards
>
> Jonathan


this is the response I get to cmd dos commands:

C:\make --version
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for Windows32
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make@gnu.org>.


C:\arm-elf-gcc --version
arm-elf-gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Please let me know what t do next. Thanks for your help.

Author: Michael Fischer (mifi)
Posted on:

Rate this post
0 useful
not useful
Hello,

is it possible that you have some other compiler in your PATH
before YAGARTO?

The OpenOCD installer comes with the 3.81 version of make.

Have you tested the examples from the YAGARTO side
with Insight too?

Regards,

Michael

Author: Imran V (Guest)
Posted on:

Rate this post
0 useful
not useful
Michael Fischer wrote:
> Hello,
>
> is it possible that you have some other compiler in your PATH
> before YAGARTO?
>
> The OpenOCD installer comes with the 3.81 version of make.
>
> Have you tested the examples from the YAGARTO side
> with Insight too?
>
> Regards,
>
> Michael

Michael,

You are correct. I have uninstalled all Yagarto tools and I still get
the above results when i check make version. I do have cygwin previously
installed on the machine. One question: how do I uninstall cygwin, there
is no option to uninstall it through control panel and start menu? is it
cygwin that is causing the problem? I also have IAR and microsoft VB
express on my machine.

to answer your question; i have tested examples from Yararto tools and
get the same results.  Thanks a bunch. Imran

Author: FordP (Guest)
Posted on:

Rate this post
0 useful
not useful
Imran V wrote:

> You are correct. I have uninstalled all Yagarto tools and I still get
> the above results when i check make version. I do have cygwin previously
> installed on the machine. One question: how do I uninstall cygwin, there
> is no option to uninstall it through control panel and start menu? is it
> cygwin that is causing the problem? I also have IAR and microsoft VB
> express on my machine.
>
> to answer your question; i have tested examples from Yararto tools and
> get the same results.  Thanks a bunch. Imran

You need to remove cygwin releated entries from your path.

you should be able to goggle how to do that.

I am on linux at the mo ;)

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.