Error while compiling

Discussions and support about ChibiStudio, the free development environment for ARM.
dhruvin91
Posts: 12
Joined: Tue Oct 01, 2013 8:50 am

Error while compiling

Post by dhruvin91 »

Hi,
I am working with a chibios project on ChibiStudio framework. The project I have used to compile but today for omereason it started giving me error.
I have copied the console below. Does anyone know how to fix this?
Thank you.

Code: Select all

18:03:10 **** Incremental Build of configuration Default for project Chibi_proj ****
make -j4 all
      0 [main] sh 5396 sync_with_child: child 5672(0x184) died before initialization with status code 0xC0000142
     20 [main] sh 5396 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
Creating build/ch.dmp
      0 [main] sh 6040 sync_with_child: child 4648(0x178) died before initialization with status code 0xC0000142
     22 [main] sh 6040 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
make: *** [build/ch.dmp] Error 128
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Error while compiling

Post by Giovanni »

Sorry, I never seen that error before. Is it one of the normal Makefile projects or a CDT project?

Giovanni
dhruvin91
Posts: 12
Joined: Tue Oct 01, 2013 8:50 am

Re: Error while compiling

Post by dhruvin91 »

Its a normal makefile project.
User avatar
kreyl
Posts: 59
Joined: Sun Jan 13, 2013 11:46 pm
Been thanked: 4 times

Re: Error while compiling

Post by kreyl »

I have the same issue on both my Windows 8.1 x64 computers, though it works correctly on Windows 7 x64 one.
I discovered that all works ok if I launch eclipse.exe (having PATH tuned appropriately in System Environment Variables, this is not the case), and does not if launching .bat file.
All is the same with freshly-downloaded Eclipse (KEPLER), tools etc.
UAC disabled.
Launching as administrator prevents setting Path variable (somehow, I did not dig through this).
Googling still was not successful.
dhruvin91
Posts: 12
Joined: Tue Oct 01, 2013 8:50 am

Re: Error while compiling

Post by dhruvin91 »

Okay so I found a solution.
The problem is similar to a problem in vista x64 os.
I downloaded following zip file,
http://www.madwizard.org/download/electronics/msys-1.0-vista64.zip
extracted msys-1.0.dll and pasted it to ChibiStudio\tools\yagarto-tools\bin. After that project worked normally.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Error while compiling

Post by Giovanni »

Thanks for the hint.

Giovanni
dhruvin91
Posts: 12
Joined: Tue Oct 01, 2013 8:50 am

Re: Error while compiling

Post by dhruvin91 »

No problem.
BTW this problem only occures on windows 8.1.
mansour
Posts: 4
Joined: Wed Jun 05, 2013 4:08 pm

Re: Error while compiling

Post by mansour »

Hi
A have found this problem in chibios preview 6 aswel. This problem was a real headache and it was immediatly solved when i replaced msys-1.0.dll in C:\ChibiStudio\tools\gnutools\bin with the one provided by dhruvin91's post.


Thanks for the hint,

Omar
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Error while compiling

Post by Giovanni »

I took the DLL from the MinGW web site, does that DLL have a different source?

Giovanni
mansour
Posts: 4
Joined: Wed Jun 05, 2013 4:08 pm

Re: Error while compiling

Post by mansour »

Hi Giovani,
I used the link http://www.madwizard.org/download/elect ... ista64.zip which dhruvin91 had given in his post.
Only the file date is different from the one in chibistudio and i could not trace the differences. Could it be a 32bit versus 64bit compilation difference?
I am using windows 8.1

Omar
Post Reply