# Forum: ARM programming with GCC/GNU tools Latest WinARM arm-elf-gcc abnormal termination

 Author: Fred Knowles (fredknowles) Posted on: 2006-10-06 22:55

Rate this post
 0 ▲ useful ▼ not useful
Sorry guys - I am a newbie on WinARM, I downloaded the latest version
4.2 and extracted it to C:\WinARM. When I tried to make any of the
projects I get abnormal program termination (code 3) from arm-elf-gcc. I
get the same problem if I try running arm-elf-gcc from the command line
with a very simple "C" file. Are there dlls or something else that I am
missing or what?.

make works OK so does assembler but I would really like to ger the C
compiler working. Apologies if this has already been asked before.

I should add that gcc responds OK to --version and -mcpu=arm7tdmi-s but
as soon as I provide a sourcefile it bombs

My config :

Intel P4 2.66 mhz
2 Gig RAM
180 Gig hardrives
Windows 2000 Pro with SP4

MS Visual studio 6
Kiel uvision 3 demo ARM system (limited prog size)

No other versions of gcc or make on my system.

Regards Fred K

 Author: Martin Thomas (Guest) Posted on: 2006-10-07 17:22

Rate this post
 0 ▲ useful ▼ not useful
Fred Knowles wrote:

> Sorry guys - I am a newbie on WinARM, I downloaded the latest version
> 4.2 and extracted it to C:\WinARM. When I tried to make any of the
> projects I get abnormal program termination (code 3) from arm-elf-gcc. I
> get the same problem if I try running arm-elf-gcc from the command line
> with a very simple "C" file. Are there dlls or something else that I am
> missing or what?.

You wrote "4.2": If you have downloaded WinARM-20060606 the included
gcc-version is 4.1.1. Any mismatch here? Are you using another
precompiled toolchain?

The included binaries of the GNU-Toolchain have no dll-depedency. But
the "build-utilites" in C:\WinARM\utils\bin depend on the mingw
msys-1.0.dll. But this dll is included in the package and placed in the
same directory as the exe-files which depend on it.

> make works OK so does assembler but I would really like to ger the C
> compiler working. Apologies if this has already been asked before.
>
> I should add that gcc responds OK to --version and -mcpu=arm7tdmi-s but
> as soon as I provide a sourcefile it bombs

What is the output of arm-elf-gcc --version? For WinARM 20060606 it
should start with: arm-elf-gcc (GCC) 4.1.1 (WinARM)
Output of make --version?
Output of set?

> My config :
>
> Intel P4 2.66 mhz
> 2 Gig RAM
> 180 Gig hardrives
> Windows 2000 Pro with SP4

I'm using W2k SP4+updates too on my "electronic-development"-machine. I
don't think it's a problem with the OS.

> MS Visual studio 6
> Kiel uvision 3 demo ARM system (limited prog size)

Both also installed on my machine - no known "side-effects".

Do you have cygwin or mingw installed and entries in the serach path?
Did you add c:\WinARM and c:\WinARM\utils\bin to the search path (check
with typing path in the "shell" (cmd.exe)). "here":
PATH=[...];C:\WinARM\bin;C:\WinARM\utils\bin;C:\texmf\miktex\bin;[...]

There might be a problem with the included utilites (make, sh etc.). For
a test you might replace the content for C:\WinARM\utils\bin with the
files from the archive:
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm...

Please read these threads too:
http://en.mikrocontroller.net/topic/73487#107888
http://en.mikrocontroller.net/topic/69484#92402

Hope this helps
Martin Thomas

 Author: Fred Knowles (fredknowles) Posted on: 2006-10-09 19:46

Rate this post
 0 ▲ useful ▼ not useful
Martin Thomas wrote:
> Fred Knowles wrote:
>
>> Sorry guys - I am a newbie on WinARM, I downloaded the latest version
>> 4.2 and extracted it to C:\WinARM. When I tried to make any of the
>> projects I get abnormal program termination (code 3) from arm-elf-gcc. I
>> get the same problem if I try running arm-elf-gcc from the command line
>> with a very simple "C" file. Are there dlls or something else that I am
>> missing or what?.
>
> You wrote "4.2": If you have downloaded WinARM-20060606 the included
> gcc-version is 4.1.1. Any mismatch here? Are you using another
> precompiled toolchain?
>
> The included binaries of the GNU-Toolchain have no dll-depedency. But
> the "build-utilites" in C:\WinARM\utils\bin depend on the mingw
> msys-1.0.dll. But this dll is included in the package and placed in the
> same directory as the exe-files which depend on it.
>
>> make works OK so does assembler but I would really like to ger the C
>> compiler working. Apologies if this has already been asked before.
>>
>> I should add that gcc responds OK to --version and -mcpu=arm7tdmi-s but
>> as soon as I provide a sourcefile it bombs
>
> What is the output of arm-elf-gcc --version? For WinARM 20060606 it
> should start with: arm-elf-gcc (GCC) 4.1.1 (WinARM)
> Output of make --version?
> Output of set?
>
>> My config :
>>
>> Intel P4 2.66 mhz
>> 2 Gig RAM
>> 180 Gig hardrives
>> Windows 2000 Pro with SP4
>
> I'm using W2k SP4+updates too on my "electronic-development"-machine. I
> don't think it's a problem with the OS.
>
>> MS Visual studio 6
>> Kiel uvision 3 demo ARM system (limited prog size)
>
> Both also installed on my machine - no known "side-effects".
>
> Do you have cygwin or mingw installed and entries in the serach path?
> Did you add c:\WinARM and c:\WinARM\utils\bin to the search path (check
> with typing path in the "shell" (cmd.exe)). "here":
> PATH=[...];C:\WinARM\bin;C:\WinARM\utils\bin;C:\texmf\miktex\bin;[...]
>
> There might be a problem with the included utilites (make, sh etc.). For
> a test you might replace the content for C:\WinARM\utils\bin with the
> files from the archive:
>
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm...
>
> Please read these threads too:

>
> Hope this helps
> Martin Thomas

Sorry Martin I am battling to reply to your message. Of course you are
right and the compiler is 4.1.1

See attached sysinfo.txt which contains all the info you mentioned, it
all looks OK to me but even after re-install I still get the same error.
Not sure how it could relate to the utilities since I get the error when
I run arm-elf-gcc directly from the command line. I forgot to mention I
am using the 7zip download file 43 Meg approx not the bzip version
(presumably makes no difference?)
I have downloaded the utilities you mentioed & will try them tonight.

Thanks for the advice so far

Fred Knowles

### 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]
• $formula (LaTeX syntax)$
 Name: E-mail address (not visible): Subject: Searching for similar topics... Attachment: Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one. Text: