Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Build might be incomplete
Build might be incomplete [message #1831000] Sat, 08 August 2020 15:40 Go to next message
Lisa GO is currently offline Lisa GOFriend
Messages: 2
Registered: August 2020
Junior Member
Hi,

I tried to compile a simple Hello World project in C.
I use the Cygwin GNU Compiler.
Eclipse shows me :
make all
Building file: ../src/HelloWorld.c
Invoking: Cygwin C Compiler

gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/HelloWorld.d" -MT"src/HelloWorld.o" -o "src/HelloWorld.o" "../src/HelloWorld.c"

make: *** [src/HelloWorld.o] Error -1073741502
"make all" terminated with exit code 2. Build might be incomplete.

I tried directly in the Cygwin bash (in the project folder HelloWorld):
gcc -O0 -g3 -Wall -fmessage-length=0 -MMD -MP -MF"src/HelloWorld.d" -MT"src/HelloWorld.o" -o "src/HelloWorld.exe" "/src/HelloWorld.c"
the .exe is okay and could be started.

Could somebody help me?



Re: Build might be incomplete [message #1831006 is a reply to message #1831000] Sat, 08 August 2020 19:51 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
FWIW: the command that make tried to run is not the same as the one you tried manually.
The one make attempted was a simple compile
The one you typed is a complete build starting with the compile.

Error -1073741502 is the decimal value for Windows error code 0xc0000142
It means "application failed to initialize properly" but often means "DLL INIT FAILED".
make is just repeating what it was told when it tried to run gcc to compile your program.

You're going to have to track down the cause yourself.
It's unlikely that anyone here has the same system configuration as you.

The error has several causes but the most likely is a missing/unfindable DLL.

Here's how Windows searches for a DLL:
https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order


Since you where able to run from the terminal there is probably a difference between the environments
when running Eclipse and a terminal.
Note that Eclipse is actually running make as a subprocess
and make is running the recipe commands
(assuming external builds but internal emulation isn't significantly different).

Maybe the Cygwin DLL isn't being found by processes started by Eclipse.
Are you sure you started Eclipse with Cygwin?

You could try changing the compile command to env
and compare the output with an env issued in at the command line.

Unfortunately, Windows doesn't provide enough to quickly locate the offending DLL.
There is program called Dependency Walker 2.2 https://www.dependencywalker.com/
which may help you locate it.

You could also try searching the web for solutions to "Windows error code c0000142"

Here are some results of that:
https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/error-0xc0000142/3da27a75-178c-4de5-b43c-c538e6005540
https://appuals.com/the-application-was-unable-to-start-correctly-0xc0000142/

[Updated on: Sat, 08 August 2020 20:18]

Report message to a moderator

Re: Build might be incomplete [message #1831007 is a reply to message #1831006] Sat, 08 August 2020 20:47 Go to previous message
Lisa GO is currently offline Lisa GOFriend
Messages: 2
Registered: August 2020
Junior Member
Hi,

thank you for the information!
You're right Eclipse couldn't find the Cygwin DLL
I launched Eclipse with/"in" Cygwin. And the Programm runs.

best regards
Lisa :)



Previous Topic:Weird cproject and language settings reformatting issue
Next Topic:CDTPropertyManager.performOKForced(Object p) - parameter unused
Goto Forum:
  


Current Time: Sun Dec 22 06:13:01 GMT 2024

Powered by FUDForum. Page generated in 0.03163 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top