Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276503 - dev-java/javacc-4.2 fails to merge
Summary: dev-java/javacc-4.2 fails to merge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-04 21:30 UTC by Willard Dawson
Modified: 2010-02-17 20:49 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,7.40 KB, text/plain)
2009-07-04 21:31 UTC, Willard Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willard Dawson 2009-07-04 21:30:13 UTC
compile-nojar:
    [javac] Compiling 139 source files to /var/tmp/portage/dev-java/javacc-4.2/work/javacc/classes
    [javac] /var/tmp/portage/dev-java/javacc-4.2/work/javacc/src/org/javacc/utils/JavaFileGenerator.java:269: cannot resolve symbol                                                                             
    [javac] symbol  : constructor PrintWriter (java.lang.String)                                        
    [javac] location: class java.io.PrintWriter
    [javac]     new JavaFileGenerator(args[0], map).generate(new PrintWriter(args[1]));
    [javac]                                                  ^
    [javac] 1 error

BUILD FAILED
/var/tmp/portage/dev-java/javacc-4.2/work/javacc/build.xml:24: The following error occurred while executing this line:
/var/tmp/portage/dev-java/javacc-4.2/work/javacc/src/org/javacc/parser/build.xml:16: Compile failed; see the compiler error output for details.

Total time: 7 seconds
 *
 * ERROR: dev-java/javacc-4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4156:  Called _eant 'jar'
 *             environment, line  347:  Called eant '-Djunit.jar=/usr/share/junit/lib/junit.jar' 'jar'
 *             environment, line  905:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed
 *
 * 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/dev-java/javacc-4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/javacc-4.2/temp/environment'.
 *


Reproducible: Always

Steps to Reproduce:
1.emerge dev-java/javacc
2.
3.

Actual Results:  
failure

Expected Results:  
success

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 i686)
=================================================================                             
System uname: Linux-2.6.30-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 03 Jul 2009 12:30:01 +0000                                                 
app-shells/bash:     4.0_p24                                                                       
dev-java/java-config: 2.1.8-r1                                                                     
dev-lang/python:     2.5.4-r2, 2.6.2-r1                                                            
dev-python/pycrypto: 2.0.1-r8                                                                      
dev-util/cmake:      2.6.4                                                                         
sys-apps/baselayout: 2.0.1                                                                         
sys-apps/openrc:     0.4.3-r3                                                                      
sys-apps/sandbox:    2.0                                                                           
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
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/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi aiglx alsa apache2 apm arts ati audiofile avahi avi bash-completion berkdb bitmap-fonts bzip2 cairo caps cardbus cdio cdr cli consolekit cracklib crypt ctype cups dba dbtool dbus digitalradio diskio djvu dri dts dvdread eds emboss encode esd ethereal exif expat fastbuild ffmpeg fftw fglrx foomaticdb force-cgi-redirect fortran ftp fuse gamin gd gdbm gif glib glitz glut gmp gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 isdnlog ithreads jack java jpeg kde kerberos kqemu lcms ldap libclamav libg++ libwww lirc live lm_sensors lua mad madwifi matroska mdnsresponder-compat memlimit mhash midi mikmod mmx mmxext mng mono motif mozilla mp3 mpeg mudflap mysql ncurses netboot netjack networking nforce2 nls nptl nptlonly nsplugin nvidia ocaml ogg oggvorbis opengl openmp oss pam pango pch pcmcia pcre pdf pdflib pear perl php pmu png portaudio posix pppd pulseaudio python qt qt3support qtmt quicktime readline reflection ruby samba sasl sdl session simplexml slang sndfile snmp soap sockets spell spl sql sqlite sse sse2 ssl svg sysfs tcl tcltk tcpd theora threads threadsafe tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode utempter vorbis webkit wifi win32codecs x86 xanim xinerama xml xmlrpc xorg xscreensaver xsl xulrunner xv 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 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" ELIBC="glibc" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="xf86-video-ati"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Willard Dawson 2009-07-04 21:31:08 UTC
Created attachment 196681 [details]
Build log
Comment 2 Arttu Valo 2009-08-01 13:18:18 UTC
That specific constructor for PrintWriter is only available since Java 1.5 [1], so blackdown 1.4.2 won't be able to compile it, you need a newer jdk version.

[1] http://java.sun.com/javase/6/docs/api/java/io/PrintWriter.html#PrintWriter(java.lang.String)

All the references to 1.4 in the ebuild should probably be upgraded to 1.5 anyway, or if someone can hack through all those 1.4s and 1.5s, maybe it's possible to just bump *SOURCES to 1.5 and still compile 1.4 compliant bytecode?
Comment 3 Willard Dawson 2010-02-17 20:49:21 UTC
> That specific constructor for PrintWriter is only available since Java 1.5 [1],
> so blackdown 1.4.2 won't be able to compile it, you need a newer jdk version.

I guess I must have upgraded my jdk in the meanwhile, as now javacc-4.2 builds successfully.  Sorry for the long delay in coming back to this one.