Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317813 - dev-java/jgrapht fails to build
Summary: dev-java/jgrapht fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 18:28 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-05-10 12:09 UTC (History)
2 users (show)

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


Attachments
Build log from failure on i686-pc-linux-gnu system (build.log,2.82 KB, text/plain)
2010-05-08 11:54 UTC, Richard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-29 18:28:40 UTC
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.5.0-asneeded, glibc-2.11.1-r0, 2.6.33.3 i686)
=================================================================
System uname: Linux-2.6.33.3-i686-Quad-Core_AMD_Opteron-tm-_Processor_2350-with-gentoo-2.0.1
Timestamp of tree: Thu, 29 Apr 2010 08:30:01 +0000
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms split-log strict test test-fail-continue unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j14"
PKGDIR="/var/spool/portage/packages"
PORTAGE_COMPRESS=""
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="/var/cache/portage/tree-tinderbox"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 java5 java6 modules mudflap ncurses nls nostatic nptl nptlonly openmp pam pcre perl pppd python qt3support readline reflection ruby session spl ssl sysfs tcpd unicode vhosts 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 auth_digest" ELIBC="glibc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18 jruby ruby19" USERLAND="GNU" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 tman 2010-04-30 21:41:10 UTC
i can confirm it too on ãmd64

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 30 Apr 2010 20:30:02 +0000
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/Sessions/awesome /etc/X11/Sessions/dwm /etc/X11/xorg.conf /etc/apache2/httpd.conf /etc/conf.d/hwclock /etc/conf.d/keymaps /etc/fstab /etc/make.conf /etc/xdg/openbox/autostart.sh /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/start /usr/share/X11/xkb /usr/share/xsessions/openbox.desktop /var/bind"
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/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"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="de en vi"
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/portage/local/layman/lxde /usr/portage/local/layman/mpd /usr/portage/local/layman/emacs /usr/portage/local/layman/scarabeus /usr/portage/local/layman/gnome /usr/portage/local/layman/science /usr/portage/local/layman/devnull /usr/portage/local/layman/enlightenment /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/qting-edge /usr/portage/local/local-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi adns afs aim alsa amd64 ao apache2 ass atm audio audiofile bash-completion beagle berkdb bidi bluetooth bzip2 cairo caps cdda cdio cdparanoia cdr cgi cjk cli clisp consolekit cracklib crypt cscope css csv cups curl curlwrappers cvs cxx dbus dc1394 dga dhcp dhcpcd dia dirac directfb dmx dri dts dv dvd dvdr dvi emacs enca encode enscript erandom exceptions exif expat extras faac faad fam fastcgi fbcon ffmpeg firefox flac flash fortran ftp fuse gcj gd gdbm geoip ggi gif gimp git glib gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gs gstreamer gtk gzip hal hash hddtemp highlight httpd iconv icq icu idn ieee1394 imagemagick imap imlib ipv6 jabber jack java java6 javascript jingle joystick jpeg jpeg2k kerberos lame lapack latex lcms ldap libcaca libwww live logrotate lua lzo mad maildir matroska mbrola md5sum memlimit mercurial mhash midi mikmod mime mjpeg mmap mmx mmxext mng mono motif mp3 mp4 mpeg mplayer msn mudflap mule multilib musepack mysql nas nautilus ncurses network networkmanager nfs nls nptl nptlonly nsplugin nvidia ogg ogg123 openal openexr opengl openmp oss pam pcap pcmcia pcre pdf perl php pic pidgin png policykit posix postgres ppds ps pulseaudio python qt3support qt4 quicktime radio rar raw rdesktop readline reflection rss rtsp ruby samba sasl savedconfig schroedinger sdl sdl-image session sip slang slp smp soap sockets sox spamassassin speex spell spl sqlite sse sse2 ssl ssse3 startup-notificatio stream stun subversion svg swat sysfs syslog sysvipc tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype ucs2 udev unicode urandom usb userlocales v4l v4l2 vcd vhosts video vim-syntax vlc vlm vnc vorbis wav wavpack webkit wifi wma wmf wxwidgets x264 xattr xcb xcomposite xft xinerama xinetd xml xmlrpc xorg xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yahoo zip 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES=" actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en vi" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev vga" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2010-05-01 08:52:16 UTC
Someone please attach a build log.
Comment 3 rx80 2010-05-02 15:18:55 UTC
the problem is with rewriting the build.xml file

* jgrapht-0.7.3.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                             [ ok ]
 * checking auxfile checksums ;-) ...                                                                            [ ok ]
 * checking miscfile checksums ;-) ...                                                                           [ ok ]
 * CPV:  dev-java/jgrapht-0.7.3
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
 * Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking jgrapht-0.7.3.tar.gz to /var/tmp/portage/dev-java/jgrapht-0.7.3/work
>>> Source unpacked in /var/tmp/portage/dev-java/jgrapht-0.7.3/work
>>> Compiling source in /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3 ...
Rewriting attributes
Rewriting ./build.xml
 * Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/build.xml

init.local:

init.svn:

init:
     [echo] JAVA_HOME=/opt/sun-jdk-1.6.0.20/jre

compile:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/build
    [javac] Compiling 1 source file to /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/build
    [javac] /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/src/org/jgrapht/util/TypeUtil.java:47: generics are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable generics)
    [javac] public class TypeUtil<T>
    [javac]                      ^
    [javac] /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/src/org/jgrapht/util/TypeUtil.java:60: annotations are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable annotations)
    [javac]     @SuppressWarnings("unchecked")
    [javac]      ^
    [javac] 2 errors

BUILD FAILED
Comment 4 Richard 2010-05-08 11:54:06 UTC
Created attachment 230789 [details]
Build log from failure on i686-pc-linux-gnu system

I can reproduce this issue on my system. Strangely, it manifested itself when I was running "emerge --jobs --keep-going -ave world" to rebuild my system because I had changed my CFLAGS. All packages being built had already been installed on my system, so the build had worked in the past, but something changed between then and now that causes it to break.

$ emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33.2 i686)
=================================================================
System uname: Linux-2.6.33.2-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 07 May 2010 21:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=prescott --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -pipe -fomit-frame-pointer"                                                                                   
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.netnitco.net http://distro.ibiblio.org/pub/linux/distributions/gentoo/"                                                                   
LDFLAGS="-Wl,-O1"                                                                                             
LINGUAS="en"                                                                                                  
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="/var/lib/layman/sunrise /var/lib/layman/vmware /var/lib/layman/linuxdna /usr/local/portage"  
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                
USE="X acl acpi alsa apm berkdb bzip2 cdr cli consolekit cracklib crypt cups cxx dbus dri dvd dvdr fftw fortran gd gdbm gif gnutls gpm hal iconv ipv6 java java6 jpeg kde lzma midi mmap mmx mng modules mp3 mudflap ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre perl png pppd python qt3 qt3support qt4 readline reflection samba session spl sqlite sse sse2 sse3 ssl svg sysfs tcpd threads tiff unicode x264 x86 xml xorg xvmc 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" NETBEANS_MODULES="*" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Tsang Ka Wing 2010-05-09 18:26:23 UTC
confirm too, maybe the new version 0.8.1 would fix it.

 * jgrapht-0.7.3.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * CPV:  dev-java/jgrapht-0.7.3
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib source userland_GNU
 * Using: icedtea6-bin
>>> Unpacking source...
>>> Unpacking jgrapht-0.7.3.tar.gz to /var/tmp/portage/dev-java/jgrapht-0.7.3/work
>>> Source unpacked in /var/tmp/portage/dev-java/jgrapht-0.7.3/work
>>> Compiling source in /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3 ...
Rewriting attributes
Rewriting ./build.xml
 * Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/build.xml

init.local:

init.svn:

init:
     [echo] JAVA_HOME=/opt/icedtea6-bin-1.8.0/jre

compile:
    [mkdir] Created dir: /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/build
    [javac] Compiling 1 source file to /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/build
    [javac] /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/src/org/jgrapht/util/TypeUtil.java:47: generics are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable generics)
    [javac] public class TypeUtil<T>
    [javac]                      ^
    [javac] /var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/src/org/jgrapht/util/TypeUtil.java:60: annotations are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable annotations)
    [javac]     @SuppressWarnings("unchecked")
    [javac]      ^
    [javac] 2 errors

BUILD FAILED
/var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3/build.xml:97: Compile failed; see the compiler error output for details.

Total time: 2 seconds
 * ERROR: dev-java/jgrapht-0.7.3 failed:
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 4415:  Called java-pkg-2_src_compile
 *   environment, line 2439:  Called eant 'jar' '-f' 'build.xml'
 *   environment, line  951:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-java/jgrapht-0.7.3',
 * the complete build log and the output of 'emerge -pqv =dev-java/jgrapht-0.7.3'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.8.0"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info
 * The complete build log is located at '/var/log/portage/dev-java:jgrapht-0.7.3:20100509-182247.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/jgrapht-0.7.3/temp/environment'.
 * S: '/var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3'

>>> Failed to emerge dev-java/jgrapht-0.7.3, Log file:

>>>  '/var/log/portage/dev-java:jgrapht-0.7.3:20100509-182247.log'

 * Messages for package sys-devel/binutils-2.20.1-r1:

 * Sorry, but binutils does not support the LINGUAS: en zh

 * Messages for package dev-java/jgrapht-0.7.3:

 * ERROR: dev-java/jgrapht-0.7.3 failed:
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 4415:  Called java-pkg-2_src_compile
 *   environment, line 2439:  Called eant 'jar' '-f' 'build.xml'
 *   environment, line  951:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-java/jgrapht-0.7.3',
 * the complete build log and the output of 'emerge -pqv =dev-java/jgrapht-0.7.3'.
 * The complete build log is located at '/var/log/portage/dev-java:jgrapht-0.7.3:20100509-182247.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/jgrapht-0.7.3/temp/environment'.
 * S: '/var/tmp/portage/dev-java/jgrapht-0.7.3/work/jgrapht-0.7.3'

 * Regenerating GNU info directory index...
 * Processed 5 info files.

virgo portage # emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-rc5-zen1 x86_64)
=================================================================
System uname: Linux-2.6.33-rc5-zen1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5750_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 09 May 2010 16:15:03 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/games/angband/edit/ /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://gentoo.aditsu.net/ http://mirror.averse.net/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.tera-byte.com/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en zh zh_TW"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress "
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://mirror.averse.net/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl acpi activefilter alsa amd64 amr amrnb amrwb aqua_theme aspell audiofile automount bacula-console bash-completion bcmath beagle berkdb bidi branding bs2b bugzilla bzip2 c++ cairo carbone_theme cdda cddax cddb cdio cdparanoia cdr cgi cgraph chardet cjk cleartype cli consolekit cracklib crypt cue cups curl cvs cxx dbus deskbar device-mapper dga dhcp dia dirac disk-partition djbfft dri dts dv dvb dvd dvdnav dvdr dvdread eap-tls eds emboss emerald enca encode esd evo examples exif extensions extras faac faad fam fastcgi ffmpeg filter firefox firefox3 flac fluidsynth fontconfig force-cgi-redirect fortran fpm fpx ftp fts3 galago gd gdbm gdu geoip gif git gmail gmedia gmp gnome gpm graphite gsf gstreamer gtk guile hal hbci hddtemp icecast iconv id3 id3tag idn imagemagick imlib inkjar inotify jabber java java6 jbig jce jpeg jpeg2k kate kde kernel-patch kvm ladspa lame laptop lcms lib libass libcaca libedit libmms libnotify libsamplerate libssh2 libv4l2 lirc live lm_sensors log4j logitech-mouse logviewer lzma lzo mad maildir matroska md5sum mikmod mmx mmxext mng modplug modules mono moonlight mp2 mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap multilib musepack music mysql nas nautilus ncurses neXt nemesi network networking nfs nls notify nptl nptlonly nsplugin odbc ofx ogg openal opencore-amr opengl openmp openssl optimization pam passwordsave pch pcre pda pdf perl pipe pkcs11 playlist pmu png pnm policykit ppds pppd prediction projectm pulseaudio python q32 qq qt3support qt4 quicktime quotes radius rar raw rdesktop reflection remote rss rtc rtsp ruby s3 samba schedule schroedinger sdl sdl-image secure-delete servletapi session sha1 sharedmem shout sid skins sms sndfile source speex spell spl sqlite sqlite3 sse sse2 sse3 ssl ssse3 stats stream strong-optimization subversion svg sysfs sysvipc taglib tcpd teletext tga theora threads tiff timidity tk tools truetype tta twolame udf unicode unzip upnp usb v4l v4l2 vcd vcdinfo vcdx vim vim-syntax virtualbox vlm vorbis wavpack webdav webkit wma wmf wxwidgets wxwindows x264 xanim xattr xext xinerama xml xmp xorg xosd xpm xulrunner xv xvid xvmc yahoo zip zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh zh_TW" NETBEANS_MODULES="apisupport harness ide java nb websvccommon cnd groovy gsf identity j2ee mobility php profiler soa visualweb webcommon xml dlight enterprise ergonomics ruby" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="vesa ati radeon radeonhd" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
Comment 6 Alex Giouzenis 2010-05-09 20:09:27 UTC
Confirmed also on x86_64

The problem is indeed when rewriting build.xml

It originally specified source="1.5" which is changed to source="1.4" promptly causing classes with generics to fail.

You can successfully emerge by doing
JAVA_PKG_WANT_SOURCE="1.5" JAVA_PKG_WANT_TARGET="1.5" emerge -1 jgrapht

I do not fully understand how the java eclasses work, but could the problem be caused because the ebuild specifies RDEPEND >=virtual/jre-1.4 while the DEPEND is correctly >=virtual/jdk-1.5?
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2010-05-09 23:11:16 UTC
Should be fixed now. Please reopen if not.
Comment 8 Richard 2010-05-09 23:52:25 UTC
(In reply to comment #7)
> Should be fixed now. Please reopen if not.
> 

It seems to be fixed now, but should the new ebuild not be dev-java/jgrapht-0.73-r1 to avoid confusion with the old one?
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2010-05-10 05:58:40 UTC
(In reply to comment #8)
> 
> It seems to be fixed now, but should the new ebuild not be
> dev-java/jgrapht-0.73-r1 to avoid confusion with the old one?
> 

If you had it already installed, what benefit would rebuilding give you?
Comment 10 Richard 2010-05-10 12:09:16 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > 
> > It seems to be fixed now, but should the new ebuild not be
> > dev-java/jgrapht-0.73-r1 to avoid confusion with the old one?
> > 
> 
> If you had it already installed, what benefit would rebuilding give you?
> 

You are right. Nevermind.