Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235645 - gcc-4.3.1 fails to build app-text/pdftk-1.12
Summary: gcc-4.3.1 fails to build app-text/pdftk-1.12
Status: RESOLVED DUPLICATE of bug 225709
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on: 251796
Blocks:
  Show dependency tree
 
Reported: 2008-08-25 02:41 UTC by georg.lippold
Modified: 2008-12-26 21:48 UTC (History)
8 users (show)

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


Attachments
Portage build log (build.log,5.18 KB, text/plain)
2008-08-25 02:43 UTC, georg.lippold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description georg.lippold 2008-08-25 02:41:32 UTC
emerging app-text/pdftk-1.12 with gcc-4.1.2 works fine on my system, however, if I try to use gcc-4.3.1 it fails during compilation.

Reproducible: Always

Steps to Reproduce:
I also had a look at bug 220779, bug 234786 and bug 225709 but they seem to be either for other errors or different pdftk versions.

Steps to reproduce: 

1. echo "=sys-devel/gcc-4.3.1-r1" >> /etc/portage/package.keywords
2. emerge -1 sys-devel/gcc
3. gcc-config i686-pc-linux-gnu-4.3.1
3a. (optional, doesn't help either): layman -a java-overlay; emerge =dev-java/gcj-jdk-4.3.1 =gjdoc-0.7.9 (just for being sure it's all there)
4. source /etc/profile
5. emerge pdftk
Actual Results:  
[...]

gcjh Engine;
Exception in thread "main" java.io.IOException: can't find class file Engine.class in java.net.URLClassLoader{urls=[file:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/java/libgcj-4.3.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.9)
   at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.9)
   at gnu.classpath.tools.javah.GcjhMain.main(libgcj-tools.so.9)
make[2]: *** [Engine.h] Error 1
rm Engine.class
make[2]: Leaving directory `/tmp/portage/app-text/pdftk-1.12/work/pdftk-1.12/java_libs/gnu_local/java/security'
make[1]: *** [libgcj_local] Error 2
make[1]: Leaving directory `/tmp/portage/app-text/pdftk-1.12/work/pdftk-1.12/java_libs'
make: *** [java_libs] Error 2
 * 
 * ERROR: app-text/pdftk-1.12 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2055:  Called die
 * The specific snippet of code:
 *       make -f Makefile.Generic || die "Compilation failed."
 *  The die message:
 *   Compilation failed.


Expected Results:  
Expected to be able to compile pdftk.

Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.6.1-r0, 2.6.
25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 Genuine Intel(R) CPU 2160 @ 1.80GHz
Timestamp of tree: Sun, 24 Aug 2008 21:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
dev-util/ccache:     2.4-r7
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="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mtune=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/ppp /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/
3.5/shutdown /usr/share/config /var/bind /var/www/localhost"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fo
nts/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=i686 -mtune=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphan
s userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.mirror.aarnet.edu.au/pub/gentoo ftp://ftp.mirror.aarnet
.edu.au/pub/gentoo"
LANG="en_DK.UTF-8"
LC_ALL="en_DK.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_DK en_GB en_AU de de_DE"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/java-overlay"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X X509 a52 aac ace acl acpi admin aim alsa amr ao apache2 async audacious aud
iofile autocreate automount autosieve bash-completion bdf berkdb binary-drivers bl
 bluetooth bonjour branding bzip2 cairo cddb cdparanoia cdr cli colordiff cpudetec
tion cpufreq cracklib crypt css cups dbus dga dri dts dvb dvd dvdnav dvdr dvdread 
dvi dxr2 dxr3 ecc eds emboss encode esd evo fam fastcgi fat ffmpeg firefox flac fl
atfile fortran ftp gcj gdbm gif gnome gpm gs gstreamer gtk hal hddtemp icecast ico
nv icq id3 idea idled idn imagemagick imap ipv6 irc isdnlog jabber java5 java6 jav
ascript jce jpeg jpeg2k junit kde kerberos ladspa lame latex ldap libnotify mad ma
troska md5sum midi mikmod mime mmap mmx mng modplug mp3 mp3rtp mp4 mp4live mpd mpe
g mpeg2 mpi mplayer mpu401 msn mudflap musepack musicbrainz nas ncurses nfs nis nl
s nptl nptlonly nsplugin ntfs offensive ogg opengl openmp osc oscar pam pcre pdf p
erl php pmu png pnm portaudio posix ppds pppd pulseaudio python qt3 qt3support qt4
 quicktime rar readline realmedia reflection replytolist rt61pci rtc sasl screen s
dl sensord server session shorten silc smime smp sox speex spell spl srt ssl start
up-notification svg swat sysfs syslog sysvipc szip tcpd tetex tga theora threads t
iff tivo tools transcode transparency truetype tta type1 unicode unsupported_8bit 
upnp urandom usb uuencode v4l v4l2 vcd vidix vim-syntax vorbis vorbis-psy wav wavp
ack wifi win32codecs wma wmf wmp x264 x86 xcomposite xext xfce xml xorg xpm xprint
 xscreensaver xv xvid yahoo yv12 zip zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_P
CM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec95
8 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route sha
re shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon a
uthn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_ho
st authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cac
he 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 us
erdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KE
RNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
 ncurses text" LINGUAS="en en_US en_DK en_GB en_AU de de_DE" USERLAND="GNU" VIDEO_
CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMP
RESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 georg.lippold 2008-08-25 02:43:17 UTC
Created attachment 163739 [details]
Portage build log
Comment 2 Vasilis Lourdas 2008-08-29 17:25:19 UTC
Confirm it.

emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.7-r2, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.26-gentoo-r1 x86_64 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
Timestamp of tree: Thu, 28 Aug 2008 14:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
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=core2 -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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.uoi.gr/mirror/OS/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/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="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/soor-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi additions alsa amd64 apache2 asf bash-completion berkdb bluetooth branding bzip2 bzlib cairo caps charconv chm cli cracklib crypt css ctype cups curl custom-optimization dba dbus device-mapper dmi dri dts dvd dvdr dvdread effects encode exif expat fat fbcon ffmpeg fftw firefox3 flac flatfile fontconfig foomaticdb ftp gcj gd gdbm gif gimp gimpprint glib glx gmp gnomedb gnutls gocr gphoto2 gpm gtk hal hddtemp howl iconv icu id3tag imagemagick imap imlib innodb isdnlog jabber java javascript jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lcms libsamplerate libwww lm_sensors madwifi maildir mailwrapper mhash midi mime mmx mmxext motif mozbranding mozdevelop mozilla mozsvg mp3 mpeg mplayer mpm-worker mudflap multiuser mysql mysqli ncurses newspr nls no-old-linux nodrm nomalloccheck nptl nptlonly ntfs nvidia objc odbc offensive ogg opengl openmp pam pcmcia pcntl pcre pdf pear perl php pmu png posix pppd python qt3 qt3support qt4 quicktime rar rdesktop readline reflection reiserfs ruby sasl scanner server session sharedext simplexml slang smp sndfile soap sockets speex spell spl spreadsheet sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification subtitles subversion svg symlink sysfs syslog tcltk tcpd tetex threads tidy tiff tokenizer tordns truetype unicode usb userlocales vda vnc vncviewer vorbis wmf wv wxgtk1 x264 xfs xine xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xvid xvmc xvnc zip 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 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 bungernut 2008-09-12 14:14:20 UTC
Confirmed I think:

 * It seems that gcj is not in ${PATH}.
 * Re-emerge sys-devel/gcc with "gcj" enabled.
 * 
 * ERROR: app-text/pdftk-1.12 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *       pdftk-1.12.ebuild, line   22:  Called die
 * The specific snippet of code:
 *   		die "gcj not found."
 *  The die message:
 *   gcj not found.
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-text/pdftk-1.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/pdftk-1.12/temp/die.env'.
 * 
Comment 4 Evil Compile Person 2008-10-04 23:55:15 UTC
Whee.
Comment 5 Stefaan De Roeck (RETIRED) gentoo-dev 2008-10-07 08:17:24 UTC
Same error here on ~amd64.
Comment 6 Christopher Reitz 2008-11-01 12:28:51 UTC
(In reply to comment #5)
> Same error here on ~amd64.

same here! 


Comment 7 Denny Reeh 2008-11-12 11:53:42 UTC
same problem for me on amd64 with gcc-4.3.2
Comment 8 Andrés Becerra Sandoval 2008-11-15 22:42:51 UTC
(In reply to comment #7)
> same problem for me on amd64 with gcc-4.3.2
> 

similar problem for me on ~x86 with gcc-4.3.2 

Output:
gcjh --classpath="." MD5;
Exception in thread "main" java.io.IOException: can't find class file java_local/security/MessageDigest.class in java.net.URLClassLoader{urls=[file:/var/tmp/portage/app-text/pdftk-1.41/work/pdftk-1.41/java_libs/gnu_local/java/security/provider/./,file:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2/java/libgcj-4.3.2.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
Comment 9 Helmut Jarausch 2008-12-10 16:05:23 UTC
Same here with pdftk-1.41 and gcj-4.3.2

(It's installed and running when built with gcj-4.2.4)
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-12-26 21:48:38 UTC

*** This bug has been marked as a duplicate of bug 225709 ***