Issue 18727 - Parallel build in cpputools
Summary: Parallel build in cpputools
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC3
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: hjs
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks: 9443
  Show dependency tree
 
Reported: 2003-08-27 12:42 UTC by pavel
Modified: 2004-09-29 13:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Log files. (7.64 KB, application/octet-stream)
2003-08-27 12:44 UTC, pavel
no flags Details
proposed makefile cleanup to solve problens (3.96 KB, patch)
2003-08-28 10:09 UTC, hjs
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2003-08-27 12:42:53 UTC
Hi,

building current OpenOffice_1_1_rc4 with MAXPROCESS=4 in cpputools with:

for i in `seq 100`; do rm -rf unxlngi4.pro/; build --from cpputools >log.$i
2>&1; ls -l log.$i; done

pavel@oo:~/BuildDir/ooo_11rc4_src/cpputools> ls -l1 log*|awk '{print $5}'|sort
-n|uniq -c
      2 3271
      1 4829
      3 5170
     86 8465
      1 8828
      2 8837
      1 9781
      1 10714
      2 20863
      1 24146

8465 is the good build. I'll attach all logs from bad builds as cpputools-logs.tgz
Comment 1 pavel 2003-08-27 12:44:05 UTC
Created attachment 8816 [details]
Log files.
Comment 2 pavel 2003-08-27 15:19:36 UTC
The problems seem to be in two directories:

source/unoexe/
source/regsingleton/

I just added MAXPROCESS=1 to makefile.mk's in those directories and
the build went OK (except using only one CPU for those directories).
Comment 3 hjs 2003-08-28 10:09:13 UTC
Created attachment 8842 [details]
proposed makefile cleanup to solve problens
Comment 4 hjs 2003-08-28 10:26:13 UTC
i had 100 successfull rebuilds with MAXPROCESS=4 of "cpputools" after
 applying this patch.
Comment 5 pavel 2003-08-28 16:36:05 UTC
Me too, thank you.

BTW:

pavel@oo:~/BuildDir/ooo_11rc4_src/cpputools> ls -l1 log*|awk '{print
$5}'|sort -n|uniq -c
      2 8485
     98 8510

Those two builds are too successfull, but:

--- log.3       Thu Aug 28 17:22:16 2003
+++ log.4       Thu Aug 28 17:22:18 2003
@@ -11,10 +11,11 @@
 Making: ../../unxlngi4.pro/misc/regsingleton.dpc
 touch ../../unxlngi4.pro/misc/regsingleton.dpc
 Making : Dependencies
-cppumaker @/tmp/mkimZ1pk
-cppumaker @/tmp/mknUJl8F
-cppumaker @/tmp/mkYYuxO1
-cppumaker @/tmp/mkBAKkqn
+cppumaker @/tmp/mk8CLTHP
+cppumaker @/tmp/mk06qHEj
+cppumaker @/tmp/mkAlFQyN
+cppumaker @/tmp/mkMr1MIl
+cppumaker @/tmp/mkAddCQT

Do not look for temo files names, but for the number of cppumaker
calls. There are only four of them in the shorter log. Is it OK?
Comment 6 hjs 2003-09-01 17:56:27 UTC
the number of cppumaker call is a matter of timing: is the according
header already generated by a previous call when dmake processes it's
date. if not a new cppumaker is called. as you may imagine this is a
multiprocessing issue too :-(
we are currently evaluating some kind of lock-files for the tooling
idl->rdb->hdl/hxx.

Comment 7 pavel 2004-04-23 19:48:06 UTC
set target.
Comment 8 hjs 2004-09-29 13:52:14 UTC
seems like i missed to update this one for a while...
Comment 9 hjs 2004-09-29 13:52:37 UTC
.