This is a NPTL based on running 2.6-beta2 kernel. I do: # USE="nptl" emerge sun-j2sdk and I get: starshooter sun-j2sdk # emerge dev-java/sun-j2sdk Calculating dependencies ...done! >>> emerge (1 of 1) dev-java/sun-j2sdk-1.4.1-r1 to / df: Warning: cannot read table of mounted filesystems >>> Unpacking source... >>> Unpacking j2sdk-1_4_1-src-scsl.zip to /var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk >>> Unpacking j2sdk-1_4_1-mozilla_headers-unix.zip to /var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/mozilla nptl * Applying patch disable-sanity-check patching file control/make/Makefile Hunk #1 succeeded at 23 with fuzz 2 (offset -54 lines). * Applying patch fix-intl-files patching file j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW/sunw_java_plugin.po patching file j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW.BIG5/sunw_java_plugin.po * Applying patch gcc3-syntax patching file hotspot/src/share/vm/c1/c1_FrameMap.hpp patching file hotspot/src/share/vm/opto/loopnode.hpp patching file j2se/ext/plugin/oji-plugin/src/motif/common/utils.c * Applying patch glibc-2.3.1-fixes patching file j2se/ext/plugin/oji-plugin/src/motif/navig5/ProxySupport5.cpp * Applying patch link-jpda-2-libjvm patching file j2se/make/jpda/back/Makefile Hunk #1 succeeded at 41 (offset 6 lines). * Applying patch remove-fixed-paths patching file control/make/common/Defs-linux.gmk patching file j2se/make/common/Defs-linux.gmk * Applying patch force-motif patching file control/make/motif-rules.gmk patching file j2se/make/sun/awt/Makefile patching file j2se/make/sun/awt/mawt.gmk * Applying patch gcc3.3-fixes patching file hotspot/src/share/vm/prims/jni.cpp patching file hotspot/src/share/vm/runtime/jvmdiInterfaceSupport.hpp patching file hotspot/src/share/vm/runtime/mutexLocker.cpp * Applying patch pthread patching file hotspot/src/os/linux/vm/os_linux.cpp patching file j2se/src/solaris/native/sun/nio/ch/NativeThread.c >>> Source unpacked. linux i586 1.4.1-gentoo build started: 03-08-02 07:18 mkdir -p ../build/linux-i586/hotspot-i586/tmp (cd ./../build/linux-i586/hotspot-i586/tmp; \ make -f /var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/hotspot/build/linux/Makefile product \ HOTSPOT_BUILD_VERSION=1.4.1-gentoo-1059808735 GAMMADIR=/var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/hotspot ; ) make[1]: Entering directory `/var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp' sh /var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/hotspot/build/linux/makefiles/buildATree.sh compiler2 /var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/ho tspot linux i486 (cd linux_i486_compiler2/product; make) make[2]: Entering directory `/var/tmp/portage/sun-j2sdk-1.4.1-r1/work/j2sdk/control/build/linux-i586/hotspot-i586/tmp/linux_i486_compiler2/product' And from this point just hangs (waits for what?) My Info: ======== starshooter sun-j2sdk # emerge info Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.6.0-test2 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz GENTOO_MIRRORS="http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ http://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.gentoo.or.kr/ http://gentoo.gnukorea.org/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.rez-gif.supelec.fr/pub/Linux/distrib/gentoo/ http://distro.ibiblio.org/gentoo " CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="oss 3dnow apm avi encode foomaticdb jpeg libg++ mad mikmod mpeg nls pdflib png quicktime zlib gdbm berkdb slang nas svga sdl tcpd pam esd imlib oggvorbis gtk opengl qt X -kde -arts gnome gtk2 gtk+ alsa pm php mod_php python ssl ncurses qtmt readline truetype xml2 xv x86 gpm libwww mmx motif mozsvg java ipv6 freetype xfs xmms aalib dga flash gd ggz gtkhtml icc mozilla perl sasl slp sse xml spell -cups crypt vim-with-x gif tiff -ldap mozcalendar nptl" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O2 -pipe -fmerge-all-constants -fomit-frame-pointer" CXXFLAGS="-march=pentium2 -O2 -pipe -fmerge-all-constants -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache sandbox buildpkg" Any clue what can be the reason? Reproducible: Always Steps to Reproduce: 1. 2. 3.
May I ask how long you waited before terminating the build? Also, do you see any activity in top?
I ran the ebuild at 21:00 in the evening, and in the morning it was on the same situation. Top command did not showed anything. I'm ready to test anything you want because this is a chroot. (I have the same problem in a live system which is not chroot)
I had the same error, until I saw: http://forums.gentoo.org/viewtopic.php?t=74316 I unmerged my old sun-j2sdk and blackdown-jdk; emerged ibm-jdk en then successfully was able to compile sun-j2sdk
I think this bug can be safely closed. I raised the matter with Liviu, and can confirm that sun-j2sdk-1.4.1-r1 now builds fine with a fresh NPTL-enabled system, with sun-jdk-1.4.2.02 set as the default system VM. In this case, the system was bootstrapped with gcc-3.3.2-r2 and glibc-2.3.2-r8.
This has been working now for quite some time. ~r4, it was a problem in javac. Enjoy :)