>>> Source configured. >>> Compiling source in /var/tmp/portage/app-text/pdftk-1.41-r1/work/pdftk-1.41/pdftk ... make -j8 -s -j1 -f Makefile.Generic invalid warning: format=2 make[2]: *** [Anchor.o] Error 1 make[1]: *** [itext] Error 2 make: *** [java_libs] Error 2 * * ERROR: app-text/pdftk-1.41-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2211: Called die * The specific snippet of code: * emake -j1 -f Makefile.Generic || die "Compilation failed." * The die message: * Compilation failed. * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/app-text:pdftk-1.41-r1:20090110-200636.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/pdftk-1.41-r1/temp/environment'. * flame@yamato mytmpfs % emerge --info Portage 2.2_rc20 (default/linux/amd64/2008.0, gcc-4.3.2-asneeded, glibc-2.9_p20081201-r1, 2.6.28-gentoo x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2350-with-glibc2.2.5 Timestamp of tree: Sat, 10 Jan 2009 12:30:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.1-r1 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.50.0.1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -Wformat=2 -Wno-error -Wno-pointer-sign -g -ggdb -Wstrict-aliasing=2 -Wno-format-zero-length" 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/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d" CXXFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -Wno-error -Wformat=2 -g -ggdb -Wstrict-aliasing=2" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=n" FEATURES="autoaddcvs autoconfig collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug unmerge-orphans userfetch userpriv usersandbox" FFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common" LINGUAS="en it" MAKEOPTS="-j8 -s" PKGDIR="/var/portage/pkg-yamato" PORTAGE_COMPRESS="" 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="/media/repos/gentoo-x86-sync" PORTDIR_OVERLAY="/var/portage/overlays/cross /media/repos/flame/flame-overlay /var/portage/overlays/kde-color-schemes /var/portage/overlays/gnome-perf /var/portage/overlays/layman/x11 /var/portage/overlays/layman/gentopia /var/portage/overlays/layman/jokey /var/portage/overlays/layman/java-overlay /var/portage/overlays/layman/dberkholz /var/portage/overlays/layman/emacs /var/portage/overlays/layman/x11 /var/portage/overlays/layman/desktop-effects /var/portage/overlays/layman/mpd /var/portage/overlays/java-experimental" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex 3dnowext S3TC a52 aac acl acpi4linux alsa amd64 apm audiofile avahi avi bluetooth bzip2 bzlib cdda cddb cdio cdr cjk cli crypt css cups dbus dlloader dnd dpms dri dts dvd dvdr dvdread emacs emboss fame ffmpeg flac foomaticdb gif gnome gnome-keyring gnutls gpgme gphoto2 gtk gtk2 hal idn ieee1394 imlib imlib2 inotify isdnlog ithreads java5 java6 joystick jpeg kdehiddenvisibility latex libnotify lm_sensors lx700 lzw lzw-tiff maildir matroska midi mmx mmx2 mmxext mng mozsvg mp3 mpeg mpeg4 mpm-threadpool mudflap multilib native network-cron nls no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nodrm nojdepend nojsch nojython nolog4j nomotif nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin ogg oggvorbis openmp openntpd pam pch pdf pdflib pic pmount png ppds pppd pulseaudio qemu-fast qt qt3 reflection rtc session snmp speex spell spl sse sse2 ssl ssse3 startup-notification stencil-buffer subversion svg svgz sysfs syslog tetex theora threads tiff truetype truetype-fonts type1 type1-fonts udev uncompressed-sounds unicode usb userlocales utf8 v4l v4l2 vhosts vorbis wxwindows x11vnc xcb xcomposite xorg xpm xv xvid zlib zvbi" ALSA_CARDS="hda-intel usb-audio mpu401 ice1712" ALSA_PCM_PLUGINS="iec958 plug ioplug hooks empty route" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" LIRC_DEVICES="kworld" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I believe that I am experiencing a related error in the latest version, app-text/pdftk-1.44. Build log and environment to be attached momentarily.
Created attachment 298663 [details] Build log from app-text/pdftk-1.44
Created attachment 298665 [details] emerge --info =app-text/pdftk-1.44
Created attachment 298667 [details] complete environment from failed pdftk-1.44 build
The build log shows several errors with the complaint, "gcjh: unrecognized option '-m64'". The option '-m64' does not appear in the `emerge --info` dump, but it is in the environment. I was able to work around this problem by creating /etc/portage/env/pdftk.conf with the contents CFLAGS_amd64="" and then adding app-text/pdftk pdftk.conf to /etc/portage/package.env. With that in place, pdftk-1.44 successfully compiles.
I confirm workaround from comment 5 works! pdftk broke (i think after removing gcc:4.4??), revdep-rebuild didn't found it. But it cannot be rebuild without this env trick. 1.44 is stable in the portage tree, so it may affect many people with amd64 config i guess.
Same here on amd64 I run paludis and to get like comment 5 i quick and dirty edited my /etc/paludis/bashrc to add export CFLAGS="" export CFLAGS_amd64="" Then i could compile and install pdftk
Created attachment 303201 [details, diff] Patch against the pdftk ebuild to rectify the issue I believe the gcj should not honour CFLAGS. They're CFLAGS and not JFLAGS. As a quickfix to pdftk however, the attached patch removes the CFLAGS_amd64 altogether from the environment. I explicitly did not copy the flag filter code from flag-o-matic, as amd64 is set on a profile basis to a single value which is the one causing the problem, see `grep -r m64 /usr/portage/profiles`. I could not imagine any other flags specific to the amd64 architecture that'd need to go in there on a profile basis. For those users who need a machine reproducible workaround, CFLAGS_amd64 can also be assigned an empty value for this package by executing the following two commands: mkdir -p /etc/portage/env/app-text echo 'CFLAGS_amd64=""' >> /etc/portage/env/app-text/pdftk
Please test if this still affects pdftk-1.45
On my system, pdftk-1.45 successfully builds without any environment workarounds to remove CFLAGS_amd64="-m64" . It also successfully builds with blatantly useless flags (tested with CFLAGS_amd64="-my_bologna_has_a_first_name" ). If it makes a difference, I am using gcc 4.6.3 now.
1.x has been dropped from the tree. Please reopen, if it occurs with 2.02.