Re: how to track down parallel build issues?

Petr Mladek <[email protected]>
Newsgroups gmane.comp.gnome.ximian.openoffice
Message-ID <[email protected]>
On Monday 05 April 2010, Andreas Radke wrote:
> I've run again into a parallel build breaker:

Why do you think that it is a parallel build problem? Does it help you to 
reduce build parallelism?

> **************************************************
> ERROR: ERROR: Could not register all components for file services.rdb
> (gid_Starregistry_Services_Rdb)! in function: create_services_rdb
> **************************************************
>
> **************************************************
> ERROR: Saved
> logfile:
> /tmp/go-openoffice/trunk/src/ooo-build-3.2.0.9/build/ooo320-m12/instsetoo_n
>ative/util/OpenOffice//logging/en-US/log_OOO320_en-US.log
> **************************************************
>
> log_OOO320_en-US.log:
>
> register component
> 'file:///tmp/go-openoffice/trunk/src/ooo-build-3.2.0.9/build/ooo320-m12/sol
>ver/320/unxlngx6.pro/bin/LuceneHelpWrapper.jar' in registry
> '/tmp/ooopackaging/i_171161270477878/unxlngx6.pro/OpenOffice//gid_Starregis
>try_Services_Rdb_servicesrdb/en-US_inprogress_1/services.rdb' failed! error
> (CannotRegisterImplementationException):

Do you see the same problem with all .jar files or only with the 
LuceneHelpWrapper.jar?

What JDK you are using?

The lucene stuff seems to depend on the expat stuff, 
see /tmp/go-openoffice/trunk/src/ooo-build-3.2.0.9/build/ooo320-m12/lucene/prj/build.lst
Do you use the system expat?

Sigh, I do not like these problems. They are usually hard to debug.


The files are registered by the command regcomp. In the installed system, it 
is in <ooo-home>/ure/bin/regcomp and it is a symlink to startup.sh.

I usually patched the startup.sh, see the attached diff to get strace. The 
strace might show if it found all wanted .jar files, ...

Hmm, I haven't done it for a long time. I think that should patch the 
startup.sh file in 
in /tmp/go-openoffice/trunk/src/ooo-build-3.2.0.9/build/ooo320-m12/solver/320/unxlngx6.pro/bin/ure/startup.sh.

Alternatively, you might add some debug output into 
/tmp/go-openoffice/trunk/src/ooo-build-3.2.0.9/build/ooo320-m12/solenv/bin/modules/installer/servicesfile.pm
into the function register_javacomponents, ...

-- 
Best Regards,

Petr Mladek
software developer
---------------------------------------------------------------------  
SUSE LINUX, s. r. o.                        e-mail: [email protected]
Lihovarská 1060/12                          tel: +420 284 028 952
190 00 Prague 9                             fax: +420 284 028 951
Czech Republic                              http://www.suse.cz/
startup.sh.diff (text/x-diff, 339 B)
--- startup.sh.old	2010-03-26 17:28:16.000000000 +0100
+++ startup.sh	2010-04-07 16:24:11.000000000 +0200
@@ -48,4 +48,8 @@ if [ -x "${epath}/javaldx" ] ; then
     fi
 fi
 
-exec "$0.bin" "$@"
+if echo "$@" | grep LuceneHelpWrapper.jar ; then
+    strace -o /tmp/strace.1.log -f -tt -s 512 "$0.bin" "$@"
+else
+    exec "$0.bin" "$@"
+fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.