[Omake] Omake hangs when building a large product
Aleksey Nogin
nogin at metaprl.org
Tue Mar 18 15:26:57 PDT 2008
Michael,
Does the hang happen in the -j1 build, or is it only happening when
building in parallel? One obvious thing would be to try running OMake
with the --verbose option and trying to figure out what command(s) it is
executing at the time of the hang (keeping in mind that the in the
parallel version the command that is still executing might have been
printed a while ago).
It's quite possible that there is some internal deadlock in OMake, but
it's also possible that something in your OMakefile fails to terminate
(and if it's an internal command, then it will show up as an OMake thread).
P.S. Did you try the latest 0.9.8.x sources from SVN - is that what you
meant by "the latest 0.9.8.5 sources"?
Aleksey
On 18.03.2008 10:25, Michael Steinhaus wrote:
> I'm designing an omake-based build system for a large product (Windows
> platform, Microsoft toolchain, ~2.5MLOC of C++/C# code in more than a
> hundred dll/lib projects). Everything works fine when building only
> parts of the product. A problem appears when building the entire product
> -- omake just hangs at some point.
>
> The box is Intel Core2Quad, 3GB RAM.
> The command line is "omake -j4".
> When the build process hangs, in the Task Manager I see omake consuming
> 0% CPU resources and the are no other build-related processes running
> (like compiler/linker).
>
> When I inject into the omake process with debugger, I see 11 threads.
> Typically one of them is in the _Sleep at 4, another one in _ReadFile at 20, a
> third one is in _GetNamedPipeInfo at 20, and the rest are in
> WaitForMultipleObjects/WaitForSingleObject calls. On top of the call
> stack, all the threads are hanging in the _KiFastSystemCallRet at 0 system
> call.
>
> This looks like deadlock, but I have no idea how to troubleshoot it.
> Unfortunately, the problem is elusive and doesn't always reproduce.
>
> I built the latest 0.9.8.5 <http://0.9.8.5> sources, but the problem is
> still there. Tried to build 0.9.9 from sources, but failed.
>
> The product in question is a production system at Deutsche Bank, with
> lots of legacy code and convoluted dependencies between individual
> projects. I'm fascinated with the ease omake could cover the product's
> complexity in a concise and generic way. I would like to convince the
> management to choose omake as the official build tool. This problem with
> the hang, however, is a critical block. I'd be greatful for any help or
> advise.
>
> Regards,
> Michael.
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
More information about the Omake
mailing list