OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000706OMNeT++command line toolspublic2014-01-22 14:512014-01-22 19:36
woife 
rhornig 
normalminoralways
resolvedfixed 
4.4 
4.4.1 
0000706: OMNeT 4.4: Can't compile with make -j16
I tried to compile the released OMNeT++ 4.4 with make -j16, and the compilation failes. The console output is attached in the file 'make_j16_error.txt'.

Compiling with plain make (= with a single job) succeeds without problems.
PS: Please correct the following items in the bug report:
*) There is currently no version '4.4' available for the bug report, so I have chosen 4.3.1.
*) I'm not sure which category is the correct one, so I have chosen 'Installer/Productizing'
No tags attached.
txt make_j16_error.txt (12,805) 2014-01-22 14:51
https://dev.omnetpp.org/bugs/file_download.php?file_id=124&type=bug
? Makefile (9,481) 2014-01-22 16:41
https://dev.omnetpp.org/bugs/file_download.php?file_id=125&type=bug
Issue History
2014-01-22 14:51woifeNew Issue
2014-01-22 14:51woifeFile Added: make_j16_error.txt
2014-01-22 15:46woifeNote Added: 0000876
2014-01-22 16:15rhornigNote Added: 0000877
2014-01-22 16:15rhornigCategoryInstaller / Productizing => command line tools
2014-01-22 16:15rhornigProduct Version4.3.1 => 4.4
2014-01-22 16:41rhornigFile Added: Makefile
2014-01-22 16:42rhornigNote Added: 0000878
2014-01-22 16:43rhornigStatusnew => to be tested
2014-01-22 18:29woifeNote Added: 0000879
2014-01-22 19:36rhornigNote Added: 0000880
2014-01-22 19:36rhornigStatusto be tested => resolved
2014-01-22 19:36rhornigFixed in Version => 4.4.1
2014-01-22 19:36rhornigResolutionopen => fixed
2014-01-22 19:36rhornigAssigned To => rhornig

Notes
(0000876)
woife   
2014-01-22 15:46   
I forgot to mention my platform:

Kubuntu 13.10 64 Bit
(0000877)
rhornig   
2014-01-22 16:15   
Report corrected.

The makefile is not 100% pralelized and it seems that some dependencies are not explicitly stated.
(0000878)
rhornig   
2014-01-22 16:42   
I could not reproduce the issue as it is a race condition but spotted the probable root. Could you please test it by downloading the attached Makefile and replacing src/eventlog/Makefile with it and then re-running it again?
(0000879)
woife   
2014-01-22 18:29   
Seems like you made the correct changes.
I made a small script that un-tar's the OMNeT sources, calls ./configure, copies one of the two makefils and calls make -j16.

Calling the scripts 5 times with your makefile resulted in 5 correct builds.
Calling it two times with the original makefile failed two times.
(0000880)
rhornig   
2014-01-22 19:36   
Thanks for the testing. I've seen similar build problems rarely, but was never able to spot the cause. I have committed the changes now.