Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143217 - openoffice-2.0.3 build failure with ibm-jdk-bin-1.4.2.5: error (CannotRegisterImplementationException): Could not create Java implementation loader (ppc)
Summary: openoffice-2.0.3 build failure with ibm-jdk-bin-1.4.2.5: error (CannotRegiste...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-08 08:17 UTC by Ed Catmur
Modified: 2006-09-14 10:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
add searchpaths for ibm j9vm (ooo-ibm-j9vm.diff,951 bytes, patch)
2006-08-16 03:17 UTC, Hanno Zysik (geki)
Details | Diff
patch ebuild (ooo-203-j9vm.diff,1012 bytes, patch)
2006-08-17 03:16 UTC, Hanno Zysik (geki)
Details | Diff
add searchpaths for ibm j9vm (v2) (ooo-ibm-j9vm.diff,732 bytes, patch)
2006-08-19 03:14 UTC, Hanno Zysik (geki)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2006-08-08 08:17:06 UTC
-env:URE_INTERNAL_JAVA_DIR=file:///var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/solver/680/unxlngppc.pro/bin
[Java framework]sunjavaplugin.so could not load Java runtime library: 
file:///opt/ibm-jdk-bin-1.4.2.5/jre/bin/classic/libjvm.so.register component 'file:///var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/testtools/source/bridgetest/../../unxlngppc.pro/class/testComponent.jar' in registry '../../unxlngppc.pro/lib/uno_services.rdb' failed!
error (CannotRegisterImplementationException): Could not create Java implementation loader
using loader com.sun.star.loader.Java2
dmake:  Error code 1, while making '../../unxlngppc.pro/lib/uno_services.rdb'
dmake:  '../../unxlngppc.pro/lib/uno_services.rdb' removed.
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/testtools/source/bridgetest

JDKs: ibm-jdk-bin-1.4.2.5, 1.5.0-r11

emerge --info:

Portage 2.1.1_pre4-r4 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 ppc)
=================================================================
System uname: 2.6.17-gentoo-r4 ppc 7447A, altivec supported
Gentoo Base System version 1.12.4
Last Sync: Tue, 08 Aug 2006 06:20:01 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=G4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy digest distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS=" http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr/ http://ftp.du.se/pub/os/gentoo/ "
LANG="en_GB.UTF-8"
LINGUAS="en_GB en en_US ja_JP en_HK en_PH de_DE es_MX fa_IR fr_FR it_IT"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/srv/gentoo/trees/bmg-main /srv/gentoo/trees/gnome-experimental /srv/gentoo/trees/xgl-coffee /srv/gentoo/trees/xgl-hboeck /srv/gentoo/trees/gentopia /srv/gentoo/trees/catmur.co.uk"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="ppc X a52 aac accessibility admin alsa altivec apm artworkextra avahi bash-completion beagle berkdb bitmap-fonts bonobo bookmarks browserplugin bzip2 cairo cdr cdrom cli compositor crypt cups daap dbus development dlloader dpms dri dvd dvi eds elibc_glibc emboss encode esd extras firefox flac font-server foomaticdb fortran galago games gdbm gif gnome gpm grammar graphviz gs gstreamer gtk gtk2 gtkhtml guile hal hddtemp howl ibam imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipod isdnlog java javascript jpeg kerberos kernel_linux lcms ldap libg++ libnotify libsexy libwww linguas_de_DE linguas_en linguas_en_GB linguas_en_HK linguas_en_PH linguas_en_US linguas_es_MX linguas_fa_IR linguas_fr_FR linguas_it_IT linguas_ja_JP mad math mikmod mono mozdevelop mozsvg mp3 mpeg musicbrainz nautilus ncurses networkmanager nls nptl nptlonly nsplugin offensive office ogg openal opengl pam pam_console pcre pda pdf pdflib perl png ppds pppd printer python quicktime readline reflection ruby samba sdl session spell spl ssl svg tagwriting tcpd tetex theora thesaurus tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales video_cards_ati video_cards_fbdev video_cards_radeon video_cards_vesa video_cards_vga vorbis wmf wordperfect xcomposite xml xml2 xorg xscreensaver xv zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

OOo is using ibm jdk 1.4:
 * Using Generation-1 System VM: ibm-jdk-bin-1.4                          [ ok ]

This error was one of those reported in bug 135249, but that was closed without it being fixed (ended up being about gcc 4.1).

There it was suggested that the problem is that -O2 enabled -fomit-frame-pointer. I'll try appending -fno-omit-frame-pointer to CFLAGS.
Comment 1 Ed Catmur 2006-08-09 08:24:05 UTC
No, that didn't work; same error. Any ideas?
Comment 2 Ed Catmur 2006-08-09 08:43:50 UTC
OK, I'm going to try it with the new java build system (as bug 139340).
Comment 3 Hanno Zysik (geki) 2006-08-16 03:17:51 UTC
Created attachment 94379 [details, diff]
add searchpaths for ibm j9vm

Some ibm-jdk versions seem to use j9vm instead of classic. This hack adds searchpaths of j9vm so that it finds them first. I hope this does not break the other ibm-jdks.

I will add it to my overlay.
Comment 4 tommoyer 2006-08-16 16:20:11 UTC
> Some ibm-jdk versions seem to use j9vm instead of classic. This hack adds
> searchpaths of j9vm so that it finds them first. I hope this does not break the
> other ibm-jdks.

How do I apply this patch so that I can build OpenOffice?
Comment 5 Hanno Zysik (geki) 2006-08-17 03:16:40 UTC
Created attachment 94441 [details, diff]
patch ebuild

- copy ooo-ibm-j9vm.diff to /usr/portage/app-office/openoffice/files/
- apply this patch under /usr/portage/
- redigest and have fun!
Comment 6 Ed Catmur 2006-08-18 13:16:41 UTC
Merging with new build system got a fair way, but then segvd in python regcomp. I'll try with old build system and the above patch.
Comment 7 Hanno Zysik (geki) 2006-08-18 13:41:16 UTC
I'd say that the python segfault is unrelated to this issue.
Comment 8 Ed Catmur 2006-08-18 13:54:17 UTC
Yeah, guessed as much. If I can repro I'll open a new bug.
Comment 9 Ed Catmur 2006-08-18 22:53:24 UTC
Hm.With the above patches I get a slightly different error:

regcomp -register  -br ../../unxlngppc.pro/misc/bridgetest/bootstrap.rdb -r ../../unxlngppc.pro/lib/uno_services.rdb -c \
        file:///var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/testtools/source/bridgetest/../../unxlngppc.pro/class/testComponent.jar \
        -env:URE_INTERNAL_JAVA_DIR=file:///var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/solver/680/unxlngppc.pro/bin
[Java framework]sunjavaplugin.so could not load Java runtime library: 
file:///opt/ibm-jdk-bin-1.4.2.5/jre/bin/classic/libjvm.so.register component 'file:///var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/testtools/source/bridgetest/../../unxlngppc.pro/class/testComponent.jar' in registry '../../unxlngppc.pro/lib/uno_services.rdb' failed!
error (CannotRegisterImplementationException): Could not create Java implementation loader
using loader com.sun.star.loader.Java2
dmake:  Error code 1, while making '../../unxlngppc.pro/lib/uno_services.rdb'
Comment 10 Hanno Zysik (geki) 2006-08-19 03:14:20 UTC
Created attachment 94592 [details, diff]
add searchpaths for ibm j9vm (v2)

I totally forgot about IBM JDK paths.
Or where is the libjvm.so of IBM JDK?
Comment 11 Ed Catmur 2006-08-19 09:14:18 UTC
(In reply to comment #10)
> I totally forgot about IBM JDK paths.
> Or where is the libjvm.so of IBM JDK?

In /opt/${P}, I'm afraid. Unless there's a symlink somewhere:

$ locate libjvm.so
/opt/ibm-jdk-bin-1.4.2.5/jre/bin/j9vm/libjvm.so
/opt/ibm-jdk-bin-1.4.2.5/jre/bin/sovvm/libjvm.so
/opt/ibm-jdk-bin-1.4.2.5/jre/bin/classic/libjvm.so
/opt/ibm-jdk-bin-1.5.0.2/jre/bin/j9vm/libjvm.so
/opt/ibm-jdk-bin-1.5.0.2/jre/bin/classic/libjvm.so
Comment 12 Andreas Proschofsky (RETIRED) gentoo-dev 2006-08-25 10:26:53 UTC
@Ed: Have you finaly been able to finish the build with the patch by Hanno?
Comment 13 Ed Catmur 2006-08-25 10:54:54 UTC
I'm pretty sure it failed... I'll give it another go, though.
Comment 14 Ed Catmur 2006-08-26 11:15:07 UTC
OK, this time it worked! Nice one. 

Also I managed to avoid the python segv by downgrading flags from -O2 to -O.
Comment 15 Andreas Proschofsky (RETIRED) gentoo-dev 2006-09-14 10:05:59 UTC
Hannos fix is now applied in openoffice-2.0.4_rc1, so closing this.

Btw: The regcomp problem with ppc is now discussed in another bug (bug #147542 ), so you might to add yourself there, Ed.