I'm using Arm Development Studio 2019.1 on Windows 10.
From within ARM Development Studio I select "Build Project" for my project. It starts executing but I get a Windows pop-up error for armcc.exe that says:
Application was unable to start correctly. (0xc0000142)
The make is invoking Arm C Compiler 5.
I have tried running Arm Development Studio both as a user and as an administrator but I get the same error in either case.
This error occurs on the first file to be compiled for the project.
I've done some searching and found that this error is raised when a DLL is not able to be initialized.
Has anyone else seen this error?
Hi Doug,
Sorry to hear you are having these problems - suffice to say I run the tool daily on my Win10 machine without issue.As a first pass, can you check if you can run the compiler from the command line - easiest check is to open the Arm DS Command prompt, use the select_toolchain utility to ensure Compiler 5 is selected, and then run the compiler (armcc -vsn should suffice).
Is it only armcc that is affected? Try also with armasm, armlink, and also Arm Compiler 6, armclang (run the select_toolchain utility again).
I just tried running make for the project from the Arm DS command prompt and I get the same error message from armcc.exe on the first compile in the make process, 0xc0000142.
Thanks Doug, for your extra information. Ronan & I are colleagues at Arm, and I'm following up on his behalf.You said this error occurs on the first file to be compiled for the project.Does it always fail for that one particular source? I'm wondering if there is something special about that source file, e.g. it contains embedded assembler. Could you try temporarily removing that file from the project - do other source files compile OK?Please could you also try compiling that file on the command-line with e.g.armcc -c yourfile.cHave you tried compiling a simple Hello World program, or one of the ready-made AC5 examples that are provided in the examples directory? To try the latter, use File > Import > Arm Development Studio > Examples & Programming Libraries, enter "AC5" in the filter, then select e.g. the fireworks example. You'll need to clean/build/clean/build. Does that build OK?Do you have other shells e.g. Cygwin or MinGW installed on the PC> The problem is that these tools provide their own “sh.exe” executable. E.g. Cygwin puts C:\cygwin64\bin on the “Path” environment variable, and the C:\cygwin64\bin directory contains a “sh.exe” executable. Try modifying the PATH to remove access to these tools-specific shells.“make” will look for sh.exe first if the SHELL variable is not set, so it might also be possible to workaround this problem by explicitly specifying e.g. SHELL=$(windir)\system32\cmd.exeStephen
Stephen,
Thank you for the information and suggestions.
I tried to build the fireworks example as you described from within Arm Dev Studio and I get the armcc.exe error of 0xc0000142 which is what I was seeing with the project I'm working with.
I will work on compiling from the command line now.
Doug
View all questions in Arm Development Studio forum