sys-devel/gcc-4.4.3 fails to compile in amd64. The error is related to enabling +java. Reproducible: Always Steps to Reproduce: 1. MAKEOPTS="" emerge "=gcc-4.4.3" 2. 3. Actual Results: Last few lines of the build: libtool: compile: /var/tmp/portage/sys-devel/gcc-4.4.3/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.4.3/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-4.4.3/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.4.3/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava -I./include -I./gcj -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava -Iinclude -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/include -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/classpath/include -Iclasspath/include -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/classpath/native/fdlibm -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/../boehm-gc/include -I../boehm-gc/include -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/libltdl -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/libltdl -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/.././libjava/../gcc -I/var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr\" -DTOOLEXECLIBDIR=\"/usr/lib/../lib64\" -DJAVA_HOME=\"/usr\" -DBOOT_CLASS_PATH=\"/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/java/libgcj-4.4.3.jar\" -DJAVA_EXT_DIRS=\"/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/java/ext\" -DGCJ_ENDORSED_DIRS=\"/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=\"/usr/lib/../lib64/gcj-4.4.3-10\" -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/java/ecj.jar\" -DLIBGCJ_DEFAULT_DATABASE=\"/usr/lib/../lib64/gcj-4.4.3-10/classmap.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.4.3-10/classmap.db\" -march=native -O2 -pipe -D_GNU_SOURCE -MT posix-threads.lo -MD -MP -MF .deps/posix-threads.Tpo -c /var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/posix-threads.cc -o posix-threads.o >/dev/null 2>&1 here=`pwd`; cd /var/tmp/portage/sys-devel/gcc-4.4.3/work/gcc-4.4.3/libjava/classpath/lib; \ find gnu java javax org sun -name .svn -prune -o -name '*.class' -print | \ gjar -cfM@ $here/libgcj-4.4.3.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.3.jar] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.3/work/build/x86_64-pc-linux-gnu/libjava' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.3/work/build/x86_64-pc-linux-gnu/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.3/work/build' make: *** [bootstrap-lean] Error 2 [31;01m*[0m ERROR: sys-devel/gcc-4.4.3 failed: [31;01m*[0m emake failed with bootstrap-lean [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 48: Called src_compile [31;01m*[0m environment, line 5071: Called toolchain_src_compile [31;01m*[0m environment, line 5633: Called gcc_src_compile [31;01m*[0m environment, line 3226: Called gcc_do_make [31;01m*[0m environment, line 3016: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; [31;01m*[0m [31;01m*[0m If you need support, post the output of 'emerge --info =sys-devel/gcc-4.4.3', [31;01m*[0m the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.4.3'. [31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.4.3/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.4.3/temp/environment'. [31;01m*[0m S: '/var/tmp/portage/sys-devel/gcc-4.4.3/work/build' My default MAKEOPTS is -j3, and the build fails with both -j3 and unset MAKEOPTS. I will attach the full build.log in the next post. My emerge --info: Portage 2.2_rc62 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.10.1-r1, 2.6.32-zen3 x86_64) ================================================================= System uname: Linux-2.6.32-zen3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-2.0.1 Timestamp of tree: Wed, 10 Feb 2010 15:30:01 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.4.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -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/X11/xkb /usr/share/config /usr/share/xsessions" 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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.umoss.org/gentoo http://gentoo.oregonstate.edu ftp://gentoo.mirrors.pair.com http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j3" 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" PORTDIR_OVERLAY="/usr/local/portage/layman/enlightenment /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac accessibility acl acpi akonadi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl curlwrappers cxx dbus djvu dri dts dvd dvdr encode exif fam fbcon ffmpeg flac fontconfig fuse gdbm gif gnutls gphoto2 gpm gtk hal iconv ieee1394 jpeg kde lame lcms ldap mad mmap mmx mmx2 mng modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses nls nptl nptlonly ogg opengl openmp oss pam pch pcmcia pcre pdf perl plasma png ppds pppd python qt3support qt4 quicktime readline reflection savedconfig sdl semantic-desktop session smp speex spell spl sqlite srt sse sse2 ssl ssse3 startup-notification svg sysfs taglib tcpd theora threads thunar tiff truetype unicode usb vdpau vim-syntax vorbis wicd wmf x264 xattr xcb xcf xcomposite xft xine xinerama xml xorg xosd xpm xulrunner xv xvid xvmc yv12 zeroconf zlib zsh-completion" ALSA_CARDS="hda-intel" 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" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 219171 [details] (compressed) build.log for the emerge process
I should mention that even gcc-4.4.2 fails to re-emerge itself with a java error. I had initially merged it with gcc-4.3.2. This is bug 281907
*** This bug has been marked as a duplicate of bug 299289 ***