Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-java/icedtea6-1.2 build fails with Exception
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
CrazyTerabyte
Apprentice
Apprentice


Joined: 30 Dec 2004
Posts: 192
Location: Brazil

PostPosted: Thu Sep 11, 2008 4:29 pm    Post subject: dev-java/icedtea6-1.2 build fails with Exception Reply with quote

dev-java/icedtea6-1.2 (from java-overlay) build fails with java.lang.ExceptionInInitializerError

Code:
if [ ! -s /var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/build/linux-amd64/classes/sun/rmi/transport/DGCImpl_Stub.class ] ; \
        then /var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/bootstrap/jdk1.6.0/bin/rmic -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -v1.1 -classpath \
        "/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/build/linux-amd64/classes" \
        -d /var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/build/linux-amd64/classes 'sun.rmi.transport.DGCImpl' ; \
        fi
Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.7)
   at java.lang.Class.isAssignableFrom(libgcj.so.7)
   at gnu.java.rmi.rmic.RMIC.findClass(libgcj.so.7)
   at gnu.java.rmi.rmic.RMIC.analyzeClass(libgcj.so.7)
   at gnu.java.rmi.rmic.RMIC.processClass(libgcj.so.7)
   at gnu.java.rmi.rmic.RMIC.run(libgcj.so.7)
   at gnu.java.rmi.rmic.RMIC.main(libgcj.so.7)
Caused by: java.lang.NullPointerException
   at java.rmi.server.LogStream.parseLevel(libgcj.so.7)
   at sun.rmi.transport.DGCImpl.<clinit>(DGCImpl.java:65)
   at java.lang.Class.initializeClass(libgcj.so.7)
   ...6 more
make[5]: *** [/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/build/linux-amd64/classes/sun/rmi/transport/DGCImpl_Stub.class] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/jdk/make/sun/rmi/rmi'
make[4]: *** [all] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/jdk/make/sun/rmi'
make[3]: *** [all] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/jdk/make/sun'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/jdk/make'
make[1]: *** [jdk-build] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-java/icedtea6-1.2/work/icedtea6-1.2/openjdk-ecj/control/make'
make: *** [stamps/icedtea-ecj.stamp] Error 2
 *
 * ERROR: dev-java/icedtea6-1.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4591:  Called die
 * The specific snippet of code:
 *       emake -j 1 || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-java:icedtea6-1.2:20080911-154707.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea6-1.2/temp/environment'.
 * This ebuild is from an overlay: '/gentoo/layman/java-overlay/'
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info


Code:
Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.5 x86_64)
=================================================================
System uname: 2.6.25.5 x86_64 Intel(R) Core(TM)2 Duo CPU T5550 @ 1.83GHz
Timestamp of tree: Tue, 09 Sep 2008 07:15:02 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://www.las.ic.unicamp.br/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrors.hoobly.com/ http://gentoo.mirrors.pair.com/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en pt_BR pt"
MAKEOPTS="-j2"
PKGDIR="/gentoo/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/gentoo/portage"
PORTDIR_OVERLAY="/gentoo/layman/java-overlay /gentoo/overlay"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="7zip X a52 aac accessibility acl acpi alsa amd64 amr amrnb amrwb apache2 asf avi berkdb bluetooth branding bzip2 cairo caps cddb cdr cegui clamav cli cracklib crypt css ctype cups curl dbus dri dts dv dvd dvdr dvdread emboss encode exif fam ffmpeg fftw firefox flac foomaticdb fortran gcj gd gdbm gif gimp gimpprint glitz gmp gphoto2 gpm gtk gzip hal iconv imagemagick imlib ipv6 isdnlog joystick jpeg jpeg2k kdeenablefinal kerberos ldap libnotify live lm_sensors logrotate lzo mad matroska midi mikmod mmx mng mp3 mpeg mudflap multilib mysql ncurses nls no-htdocs nptl nptlonly nsplugin nvidia ogg openal opengl openmp pam pcre pdf perl pmu png posix ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection samba scanner sdl session slang speex spell spl sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification svg sysfs tcl tcpd tetex theora threads tiff tk truetype unicode usb v4l v4l2 vcd vim-syntax vorbis wifi wmf wxwindows x264 xanim xinerama xml xorg xpm xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt_BR pt" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv nvidia v4l vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
electronvolt
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2007
Posts: 79

PostPosted: Fri Sep 12, 2008 4:49 pm    Post subject: Reply with quote

Hi,
I think you will need to upgrade to gcc-4.1.3 or above to use the gcj to compile icedtea6-1.2. That will also involve an upgrade of glibc to glibc-2.7-r2 or above too, as a dependency. I've just gone this route myself and icedtea6-1.2 compiled fine and have finally managed to get rid of a 32bit browser. The downside is having to rebuild your world set after the glibc upgrade. Just finished that but had to unmask a few packages that wouldn't compile with gcc-4.3.1 so not exactly painless. One other thing is that if you do a revdep-rebuild it constantly wants to rebuild gcc, which has been noted in another post.
Good luck
Back to top
View user's profile Send private message
CrazyTerabyte
Apprentice
Apprentice


Joined: 30 Dec 2004
Posts: 192
Location: Brazil

PostPosted: Sat Sep 13, 2008 2:45 am    Post subject: Reply with quote

electronvolt wrote:
I think you will need to upgrade to gcc-4.1.3 or above

Do you mean 4.3.1?

My big question is: is 4.3 stable enough?
And since it also involves a glibc update, this is a non-reversible upgrade.

Do you (or someone else) have any other solution?

Is it possible to install 32-bit firefox using portage, without the need of a full 32-bit system in a chroot?

electronvolt wrote:
One other thing is that if you do a revdep-rebuild it constantly wants to rebuild gcc, which has been noted in another post.

Yeah, that is bug 125728. I already have that, and I have that for many months
Back to top
View user's profile Send private message
CrazyTerabyte
Apprentice
Apprentice


Joined: 30 Dec 2004
Posts: 192
Location: Brazil

PostPosted: Sat Sep 13, 2008 5:35 am    Post subject: Reply with quote

CrazyTerabyte wrote:
Do you (or someone else) have any other solution?

Is it possible to install 32-bit firefox using portage, without the need of a full 32-bit system in a chroot?

Oh, finally I got it! The mozilla-firefox-bin package will install the 32-bit version even if you are at an amd64 system.

And, what's more, I can have a 64-bit firefox (through mozilla-firefox source package) and 32-bit firefox (through mozilla-firefox-bin) both installed at same time.


So, for now, installing app-emulation/emul-linux-x86-java and www-client/mozilla-firefox-bin solves the problem for me.
Back to top
View user's profile Send private message
electronvolt
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2007
Posts: 79

PostPosted: Sat Sep 13, 2008 10:28 am    Post subject: Reply with quote

Hi, yes, sorry I did mean gcc-4.3.1. Anyway, glad that the 32bit binary firefox works for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum