EmbDev.net

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


von Imran V (Guest)


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

von Jonathan D. (dumarjo)


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

von Imran V (Guest)


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

von Michael F. (mifi)


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

von Imran V (Guest)


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

von FordP (Guest)


Rate this post
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 ;)

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.