Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364319 - sys-devel/gcc-4.6: 01_all_joined-cpp-defs.patch patch builds an unusable gcj
Summary: sys-devel/gcc-4.6: 01_all_joined-cpp-defs.patch patch builds an unusable gcj
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 361783
Blocks: gcc-4.6
  Show dependency tree
 
Reported: 2011-04-21 07:48 UTC by Justin Lecher (RETIRED)
Modified: 2011-10-30 19:33 UTC (History)
6 users (show)

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


Attachments
/var/log/portage/build/app-text/pdftk-1.44:20110421-074650.log (pdftk-1.44:20110421-074650.log,480.87 KB, text/plain)
2011-04-21 07:49 UTC, Justin Lecher (RETIRED)
Details
new fortify default patch (gcc-default-fortify-source.diff,1.24 KB, patch)
2011-09-26 19:37 UTC, SpanKY
Details | Diff
gcc-4.6.1-jvgenmain.patch (gcc-4.6.1-jvgenmain.patch,338 bytes, patch)
2011-10-01 09:41 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-04-21 07:48:59 UTC
at gnu.java.lang.MainThread.run(libgcj.so.12)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.12)
   at java.lang.ClassLoader.loadClass(libgcj.so.12)
   at java.lang.ClassLoader.loadClass(libgcj.so.12)
   at gnu.java.lang.MainThread.run(libgcj.so.12)
make[1]: [org/bouncycastle/asn1/OIDTokenizer.class] Error 1 (ignored)
gcjh -force --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." org/bouncycastle/asn1/OIDTokenizer
Exception in thread "main" java.io.IOException: can't find class file org/bouncycastle/asn1/OIDTokenizer.class in java.net.URLClassLoader{urls=[file:/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java/,file:/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java/./,file:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/java/libgcj-4.6.0.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
   at gnu.classpath.tools.javah.Main.getClass(libgcj-tools.so.12)
   at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.12)
   at gnu.classpath.tools.javah.GcjhMain.main(libgcj-tools.so.12)
make[1]: [org/bouncycastle/asn1/OIDTokenizer.h] Error 1 (ignored)
gjar -cf java_lib.jar com/lowagie/*/*/*/*.class com/lowagie/*/*/*.class com/lowagie/*/*.class org/bouncycastle/*/*.class org/bouncycastle/*/*/*.class com/lowagie/text/pdf/fonts/Courier.afm com/lowagie/text/pdf/fonts/Courier-Bold.afm com/lowagie/text/pdf/fonts/Courier-BoldOblique.afm com/lowagie/text/pdf/fonts/Courier-Oblique.afm com/lowagie/text/pdf/fonts/Helvetica.afm com/lowagie/text/pdf/fonts/Helvetica-Bold.afm com/lowagie/text/pdf/fonts/Helvetica-BoldOblique.afm com/lowagie/text/pdf/fonts/Helvetica-Oblique.afm com/lowagie/text/pdf/fonts/Symbol.afm com/lowagie/text/pdf/fonts/Times-Bold.afm com/lowagie/text/pdf/fonts/Times-BoldItalic.afm com/lowagie/text/pdf/fonts/Times-Italic.afm com/lowagie/text/pdf/fonts/Times-Roman.afm com/lowagie/text/pdf/fonts/ZapfDingbats.afm
jar: internal error:
java.io.FileNotFoundException: com/lowagie/*/*/*/*.class (No such file or directory)
   at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.12)
   at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.12)
   at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.12)
   at java.io.FileInputStream.<init>(libgcj.so.12)
   at gnu.classpath.tools.jar.Creator.writeFile(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Creator.run(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Main.run(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Main.main(libgcj-tools.so.12)
make[1]: [java_lib.o] Error 1 (ignored)
gcj -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." -c java_lib.jar
In file included from <built-in>:0:0:
java_lib.jar:0:0: fatal error: bad zip/jar file java_lib.jar
compilation terminated.
make[1]: [java_lib.o] Error 1 (ignored)
make[1]: Leaving directory `/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java'
make: *** No rule to make target `../java/java_lib.o', needed by `pdftk.o'.  Stop.
emake failed




$ einfo =app-text/pdftk-1.44
Portage 2.2.0_alpha30 (default/linux/amd64/10.0, gcc-4.6.0-asneeded, glibc-2.13-r2, 2.6.38-lh-r2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-lh-r2-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.2
Timestamp of tree: Wed, 20 Apr 2011 18:00:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2, 4.6.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1::last-hope
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
Repositories: gentoo sunrise bicatali betagarden dummy science last-hope g-ctan
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wdisabled-optimization -Wimplicit-function-declaration"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/nano/ /usr/share/openvpn/easy-rsa /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wdisabled-optimization -Wenum-compare"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-t --jobs=12 --load-average=12 --keep-going"
FEATURES="assume-digests binpkg-logs buildsyspkg ccache collision-protect distlocks fixlafiles fixpackages metadata-transfer multilib-strict news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wdisabled-optimization"
GENTOO_MIRRORS=" http://gentoo.j-schmitz.net/mirror/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en"
MAKEOPTS="-j16 -l12"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-z -v"
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="/data/local/sunrise/reviewed /data/local/bicatali /data/local/betagarden /data/local/dummy /data/local/sci /data/local/lh/ebuilds /data/local/g-ctan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X acpi additions alsa amd64 arpwarp atlas bash-completion berkdb blas branding bzip2 c++ cairo caps cblas ccache cleartype cli command-args consolekit corefonts cracklib cups cupsddk custom-optimization cxx dbus dri dts exif fbcondecor fortran gdbm gif glibc-omitfp gmp gnome gnome-keyring gpm graphics gstreamer gtk hddtemp iconv icu ios ipod iproute2 iptables ipv6 ipython javascript jpeg kqemu lapack largefile lcms ldap libnotify libsexy lm_sensors lzma mailtrain md5sum mmx mng modules mp3 mudflap multilib multiuser nagios-dns nagios-ntp nagios-ping nagios-ssh nano-syntax ncurses network-cron nis nls nptl nptlonly nsplugin objc objc++ opengl openmp openntpd pam pcre pdf perl png policykit pppd pymol python qt-static qt3support readline rrdcgi rrdtool science sensord session smp sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs system-sqlite tcpd threads tiff truetype type1 udev unicode vaapi vdpau x264 xcb xcomposite xinerama xorg xulrunner zlib" 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 cgi cgid 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-text/pdftk-1.44 was built with the following:
USE="(multilib)"
CFLAGS="-O2 -pipe -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=core2 -frecord-gcc-switches -g -Wimplicit-function-declaration"
CXXFLAGS="-O2 -pipe -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=core2 -frecord-gcc-switches -g -Wenum-compare"
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-04-21 07:49:52 UTC
Created attachment 270751 [details]
/var/log/portage/build/app-text/pdftk-1.44:20110421-074650.log

build.log
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2011-04-21 08:24:44 UTC
cpp -C -P com/lowagie/text/pdf/PdfEncryption.java.c com/lowagie/text/pdf/PdfEncryption.java
gcj -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." -C com/lowagie/text/Anchor.java
Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain
   at gnu.java.lang.MainThread.run(libgcj.so.12)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.12)
   at java.lang.ClassLoader.loadClass(libgcj.so.12)
   at java.lang.ClassLoader.loadClass(libgcj.so.12)
   at gnu.java.lang.MainThread.run(libgcj.so.12)
make[1]: [com/lowagie/text/Anchor.class] Error 1 (ignored)
gcjh -force --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." com/lowagie/text/Anchor
Exception in thread "main" java.io.IOException: can't find class file com/lowagie/text/Anchor.class in java.net.URLClassLoader{urls=[file:/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java/,file:/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java/./,file:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/java/libgcj-4.6.0.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
   at gnu.classpath.tools.javah.Main.getClass(libgcj-tools.so.12)
   at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.12)
   at gnu.classpath.tools.javah.GcjhMain.main(libgcj-tools.so.12)
make[1]: [com/lowagie/text/Anchor.h] Error 1 (ignored)
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2011-06-11 17:49:32 UTC
xmw: err why did you add 4.5 to the summary? that works just fine here... faillog please!
Comment 4 Alexander 2011-07-13 19:41:24 UTC
Confirm.
Build failed with GCC-4.6.1

Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.12)
   at java.lang.ClassLoader.loadClass(libgcj.so.12)
   at java.lang.ClassLoader.loadClass(libgcj.so.12)
   at gnu.java.lang.MainThread.run(libgcj.so.12)
make[1]: [org/bouncycastle/asn1/IndefiniteLengthInputStream.class] Error 1 (ignored)
gcjh -force --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." org/bouncycastle/asn1/IndefiniteLengthInputStream
Exception in thread "main" java.io.IOException: can't find class file org/bouncycastle/asn1/IndefiniteLengthInputStream.class in java.net.URLClassLoader{urls=[file:/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java/,file:/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java/./,file:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.1/java/libgcj-4.6.1.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
   at gnu.classpath.tools.javah.Main.getClass(libgcj-tools.so.12)
   at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.12)
   at gnu.classpath.tools.javah.GcjhMain.main(libgcj-tools.so.12)
make[1]: [org/bouncycastle/asn1/IndefiniteLengthInputStream.h] Error 1 (ignored)
gcj -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." -C org/bouncycastle/asn1/BERFactory.java
Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.jdt.internal.compiler.batch.GCCMain
   at gnu.java.lang.MainThread.run(libgcj.so.12)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.GCCMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.12)
   at java.lang.ClassLoader.loadClass(libgcj.so.12)
   at java.lang.ClassLoader.loadClass(libgcj.so.12)
   at gnu.java.lang.MainThread.run(libgcj.so.12)
make[1]: [org/bouncycastle/asn1/BERFactory.class] Error 1 (ignored)
gcjh -force --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." org/bouncycastle/asn1/BERFactory
Exception in thread "main" java.io.IOException: can't find class file org/bouncycastle/asn1/BERFactory.class in java.net.URLClassLoader{urls=[file:/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java/,file:/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java/./,file:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.1/java/libgcj-4.6.1.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
   at gnu.classpath.tools.javah.Main.getClass(libgcj-tools.so.12)
   at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.12)
   at gnu.classpath.tools.javah.GcjhMain.main(libgcj-tools.so.12)
make[1]: [org/bouncycastle/asn1/BERFactory.h] Error 1 (ignored)
gjar -cf java_lib.jar com/lowagie/*/*/*/*.class com/lowagie/*/*/*.class com/lowagie/*/*.class org/bouncycastle/*/*.class org/bouncycastle/*/*/*.class com/lowagie/text/pdf/fonts/Helvetica-Oblique.afm com/lowagie/text/pdf/fonts/Courier.afm com/lowagie/text/pdf/fonts/Helvetica-BoldOblique.afm com/lowagie/text/pdf/fonts/Courier-Bold.afm com/lowagie/text/pdf/fonts/Times-Roman.afm com/lowagie/text/pdf/fonts/Times-Bold.afm com/lowagie/text/pdf/fonts/Courier-Oblique.afm com/lowagie/text/pdf/fonts/Symbol.afm com/lowagie/text/pdf/fonts/Courier-BoldOblique.afm com/lowagie/text/pdf/fonts/Helvetica.afm com/lowagie/text/pdf/fonts/Helvetica-Bold.afm com/lowagie/text/pdf/fonts/Times-Italic.afm com/lowagie/text/pdf/fonts/ZapfDingbats.afm com/lowagie/text/pdf/fonts/Times-BoldItalic.afm
jar: internal error:
java.io.FileNotFoundException: com/lowagie/*/*/*/*.class (No such file or directory)
   at gnu.java.nio.channels.FileChannelImpl.open(libgcj.so.12)
   at gnu.java.nio.channels.FileChannelImpl.<init>(libgcj.so.12)
   at gnu.java.nio.channels.FileChannelImpl.create(libgcj.so.12)
   at java.io.FileInputStream.<init>(libgcj.so.12)
   at gnu.classpath.tools.jar.Creator.writeFile(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Creator.writeCommandLineEntries(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Creator.run(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Main.run(libgcj-tools.so.12)
   at gnu.classpath.tools.jar.Main.main(libgcj-tools.so.12)
make[1]: [java_lib.o] Error 1 (ignored)
gcj -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." -c java_lib.jar
In file included from <built-in>:0:0:
java_lib.jar:0:0: fatal error: bad zip/jar file java_lib.jar
compilation terminated.
make[1]: [java_lib.o] Error 1 (ignored)
make[1]: Leaving directory `/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java'
make: *** No rule to make target `../java/java_lib.o', needed by `pdftk.o'.  Stop.
emake failed
 * ERROR: app-text/pdftk-1.44 failed (compile phase):
 *   Compilation failed.
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2170:  Called die
 * The specific snippet of code:
 *       emake -j1 -f "${S}"/Makefile.Debian || die "Compilation failed."
 * 
 * If you need support, post the output of 'emerge --info =app-text/pdftk-1.44',
 * the complete build log and the output of 'emerge -pqv =app-text/pdftk-1.44'.
 * The complete build log is located at '/var/tmp/portage/app-text/pdftk-1.44/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/pdftk-1.44/temp/environment'.
 * S: '/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/pdftk'
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2011-09-26 18:55:17 UTC
We tracked down the problem and found that 01_all_joined-cpp-defs.patch in 4.6 patchset to break option parsing in gcj (-Djava.class.path) Excluding this patch makes it work.
Comment 6 SpanKY gentoo-dev 2011-09-26 19:37:33 UTC
Created attachment 287829 [details, diff]
new fortify default patch

Debian redid how they added fortify source to gcc-4.6.  this should make the need for the cpp patch obsolete.
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2011-09-27 01:37:46 UTC
I'm not sure why this is broken.  -Dfoo was a joined option in 4.5.  The patch just makes it a joined option in 4.6 as well.
Comment 8 Serkan Kaba (RETIRED) gentoo-dev 2011-09-27 04:25:06 UTC
(In reply to comment #7)
> I'm not sure why this is broken.  -Dfoo was a joined option in 4.5.  The patch
> just makes it a joined option in 4.6 as well.

gcj needs it parsed as a seperate option. (i.e. -D java.class.path)
Comment 9 Andrew John Hughes 2011-09-28 20:25:29 UTC
It changes what is passed by gcc to jvgenmain, part of the gcj driver.

Without the patch:

6073  execve("/mnt/builder/portage/portage/sys-devel/gcc-4.6.1-r1/work/build/./gcc/jvgenmain", ["/mnt/builder/portage/portage/sys"..., "-findirect-dispatch", "-D", "java.class.path=/usr/share/gcc-d"..., "org.eclipse.jdt.internal.compile"..., "/tmp/.private/root/ccnnn10S.i"], [/* 80 vars */] <unfinished ...>

With:

30805 execve("/mnt/builder/portage/portage/sys-devel/gcc-4.6.1-r1/work/build/./gcc/jvgenmain", ["/mnt/builder/portage/portage/sys"..., "-findirect-dispatch", "-Djava.class.path=/usr/share/gcc"..., "org.eclipse.jdt.internal.compile"..., "/tmp/.private/root/ccN2x9zr.i"], [/* 80 vars */] <unfinished ...>

jvgenmain expects -D to be separate from java.class.path and so fails to parse it correctly with the patch.  This results in the property being -Djava.class.path instead of java.class.path in the code outputted by jvgenmain, and so Java programs have no classpath at runtime.
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2011-10-01 09:41:46 UTC
Created attachment 288419 [details, diff]
gcc-4.6.1-jvgenmain.patch

Thanks for the explanation.  Can someone give this patch a try?  (just throw it into /etc/portage/patches/sys-devel/gcc)
Comment 11 Serkan Kaba (RETIRED) gentoo-dev 2011-10-01 11:33:01 UTC
(In reply to comment #10)
> Created attachment 288419 [details, diff]
> gcc-4.6.1-jvgenmain.patch
> 
> Thanks for the explanation.  Can someone give this patch a try?  (just throw it
> into /etc/portage/patches/sys-devel/gcc)

Why do we patch gcc and tehn pacth jvmgenmain to fix what the patch caused. And mike added an alternative patch for the former.
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2011-10-01 23:23:39 UTC
That patch only covers -D_FORTIFY_SOURCE.  We need to match preprocessor flags using spec rules in other situations too.  For example, hardened relies on it.

Let me know if the patch works.  We'll decide how to proceed in bug #361783.
Comment 13 Serkan Kaba (RETIRED) gentoo-dev 2011-10-02 08:20:52 UTC
(In reply to comment #12)
> Let me know if the patch works.  We'll decide how to proceed in bug #361783.

It works.
Comment 14 Ryan Hill (RETIRED) gentoo-dev 2011-10-30 19:33:17 UTC
Fixed in 4.6.2.