Re: how to track down parallel build issues?

Petr Mladek <[email protected]>
Newsgroups gmane.comp.gnome.ximian.openoffice
Message-ID <[email protected]>
On Saturday 10 April 2010, Andreas Radke wrote:
> This issue is still present in 3.2.0.10 - annoying.

I told you that these problems are very hard to debug.

> Am Wed, 7 Apr 2010 16:41:44 +0200
> schrieb Petr Mladek <[email protected]>:
> > On Monday 05 April 2010, Andreas Radke wrote:
> > Why do you think that it is a parallel build problem? Does it help
> > you to reduce build parallelism?
>
> I can build the package with -j1 but my wanted -j6 (it's a quad core cpu) 
makes it fail always:

What do you mean with "I can build the package with -j1"? Do you mean that the 
error does not happen when you build with -j1?

> > Do you see the same problem with all .jar files or only with the
> > LuceneHelpWrapper.jar?
>
> only with LuceneHelpWrapper.jar:
>
> register component
> 'file:///tmp/go-openoffice/trunk/src/ooo-build-3.2.0.10/build/ooo320-m12/so
>lver/320/unxlngx6.pro/bin/LuceneHelpWrapper.jar' in registry
> '/tmp/ooopackaging/i_181801270835143/unxlngx6.pro/OpenOffice//gid_Starregis
>try_Services_Rdb_servicesrdb/en-US_inprogress_1/services.rdb' failed! error
> (CannotRegisterImplementationException):

Unfortunately, there is not useful error message.

> Not sure if this is caused by the issue above.
>
> > What JDK you are using?
>
> [andyrtr@workstation64 ~]$ java -version
> java version "1.6.0_17"
> OpenJDK Runtime Environment (IcedTea6 1.7.3)
> (ArchLinux-6.b17_1.7.3-1-x86_64) OpenJDK 64-Bit Server VM (build 14.0-b16,
> mixed mode)

Looks good.


> > 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/pr
> >j/build.lst Do you use the system expat?
>
> checking which expat to use... external
> checking expat.h usability... yes
> checking expat.h presence... yes
> checking for expat.h... yes
> checking for XML_ParserCreate in -lexpat... yes

Okay, what version of the expat are you using?

It works here with libexpat-devel-2.0.1.

> > 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/32
> >0/unxlngx6.pro/bin/ure/startup.sh.
>
> Patch applied. It doesn't create the /tmp/strace.1.log output file.

Ah, I saw in the installation log that it called 
/tmp/go-openoffice/trunk/src/ooo-build-3.2.0.10/build/ooo320-m12/solver/320/unxlngx6.pro/bin/regcomp
dirrectly

Okay, please do the following:

regcomp_wrapper=/tmp/go-openoffice/trunk/src/ooo-build-3.2.0.10/build/ooo320-m12/solver/320/unxlngx6.pro/bin/regcomp
rm $regcomp_wrapper
cp regcomp.patched $regcomp_wrapper
chmod 755 $regcomp_wrapper

and try to run the installer.

IMPORTANT: it is important to remove the old regcomp file before you install 
the new one. Otherwise you would rewrite the real binary regcomp.bin (it is a 
hardlink or so)

You might get the strace log from my build at
http://download.go-oo.org/tstnvl/LuceneHelpWrapper-registration/strace.1.log.bz2

> > Alternatively, you might add some debug output into
> > /tmp/go-openoffice/trunk/src/ooo-build-3.2.0.9/build/ooo320-m12/solenv/bi
> >n/modules/installer/servicesfile.pm into the function
> > register_javacomponents, ...
>
> Found it. But what should I add there?

Let's check the strace log first.

> I'm no coder at all :(

BTW: What is the purpose of your build? Are you the official OOo package 
maintainer for the ArchLinux distro?

-- 
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/
regcomp.patched (application/x-shellscript, 1.7 KB) - not displayed
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.