make[4]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/i 686-pc-linux-gnu/libjava' echo > gcjh.stamp here=`pwd`; cd /var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libjava/cla sspath/lib; \ find gnu java javax org sun -name .svn -prune -o -name '*.class' -prin t | \ gjar -cfM@ $here/libgcj-4.4.1.jar jar: internal error: java.lang.NullPointerException at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so. 10) at gnu.classpath.tools.jar.Creator.run(libgcj-tools.so.10) at gnu.classpath.tools.jar.Main.run(libgcj-tools.so.10) at gnu.classpath.tools.jar.Main.main(libgcj-tools.so.10) make[3]: *** [libgcj-4.4.1.jar] Error 1 make[3]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/i6 86-pc-linux-gnu/libjava' make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/i6 86-pc-linux-gnu/libjava' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/i686-pc-linux-gnu/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.1/work/build' make: *** [bootstrap-lean] Error 2 * * ERROR: sys-devel/gcc-4.4.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4839: Called toolchain_src_compile * environment, line 5365: Called gcc_src_compile * environment, line 3058: Called gcc_do_make * environment, line 2848: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * The die message: * emake failed with bootstrap-lean Reproducible: Always Steps to Reproduce: 1. emerge gcc # emerge --info Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo-r1 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r1-i686-Intel-R-_Celeron-R-_CPU_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 06 Oct 2009 20:45:02 +0000 app-shells/bash: 4.0_p33 dev-lang/python: 2.6.3, 3.1.1-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.msu/pub/gentoo/ ftp://mirror.yandex.ru/gentoo-distfiles/ " LDFLAGS="-Wl,-O1" LINGUAS="en en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="berkdb bzip2 cli crypt dri fortran gd iconv isdnlog lzma modules mudflap nptl nptlonly pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs threads unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I got the same java.lang.NullPointerException when compiling gcc-4.4.2 But after I compiled it with USE=-gcj I could recompile it again with USE=gcj without that error.
*** This bug has been marked as a duplicate of bug 281907 ***