Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309961 - dev-java/lucene-2.3.2-r1: emerge fails with javacc-5.0
Summary: dev-java/lucene-2.3.2-r1: emerge fails with javacc-5.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 309959 (view as bug list)
Depends on:
Blocks: 315557
  Show dependency tree
 
Reported: 2010-03-17 16:38 UTC by Bertrand Piétu
Modified: 2012-09-28 10:24 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Piétu 2010-03-17 16:38:09 UTC
I can't compile lucene-2.3.2-r1 which is a dependency of openoffice-3.2.0. It's a fresh install ~amd64. Info:

GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.7.1"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"

emerge --info

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8200_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 17 Mar 2010 12:15:01 +0000
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-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.4.3
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=native -Os -pipe"
CHOST="x86_64-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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.udc.es/gentoo/ "
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 applet archive aspell berkdb bluetooth branding bzip2 cairo cdda cddb cdr cjk cleartype cli consolekit cracklib crypt cups cxx dbus device-mapper dhcpcd dirac dri dts dv dvb dvd dvdr eds emboss encode evo exif extras faac faad fam ffmpeg firefox flac fortran fuse gdbm gdu gif gnome gnome-keyring gnutls gphoto2 gpm gs gsm gstreamer gtk guile hal icc iconv imagemagick iplayer iptc ipv6 java jmpeg jpeg jpeg2k kdrive lame laptop lcms ldap libnotify lm_sensors lzma lzo mad matroska mikmod mmx mmxext mng modules mono moonlight mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz nautilus ncurses networking networkmanager nls nptl nptlonly nsplugin ntp ogg opencore-amr opengl openmp pam pcre pdf perl playlist png policykit ppds pppd pulseaudio python qt3support quicktime raw readline reflection rss samba schroedinger sdl secure-delete session sip speex spell spl sqlite sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs system-sqlite taglib tcpd theora thunar tiff timidity tracker truetype unicode usb vdpau vorbis wav wavpack webkit wmf x264 xattr xcb xcomposite xml xmp xorg xulrunner xv xvid xvmc yahoo zlib" 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 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" CAMERAS="canon ptp2 directory" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nouveau nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Error message:

common.compile-core:
    [mkdir] Created dir: /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/build/classes/java
    [javac] Compiling 258 source files to /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/build/classes/java
    [javac] /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/src/java/org/apache/lucene/queryParser/CharStream.java:30: annotations are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable annotations)
    [javac]   @Deprecated
    [javac]    ^
    [javac] /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/src/java/org/apache/lucene/queryParser/QueryParser.java:1465: generics are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable generics)
    [javac]   private java.util.List<int[]> jj_expentries = new java.util.ArrayList<int[]>();
    [javac]                         ^
    [javac] 2 errors

BUILD FAILED
/var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/common-build.xml:176: The following error occurred while executing this line:
/var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/common-build.xml:399: Compile failed; see the compiler error output for details.

Total time: 1 second
 * ERROR: dev-java/lucene-2.3.2-r1 failed:
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 4384:  Called eant '-Dversion=2.3.2' 'jar-core' 'jar-demo'
 *   environment, line  936:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-java/lucene-2.3.2-r1',
 * the complete build log and the output of 'emerge -pqv =dev-java/lucene-2.3.2-r1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.7.1"
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/tmp/portage/dev-java/lucene-2.3.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/lucene-2.3.2-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2'


Reproducible: Always
Comment 1 Bertrand Piétu 2010-03-17 16:52:18 UTC
It doesn't work with lucene-2.3.0 to lucene-2.9.1-r1 with the sama error message, but emerge =lucene-3.0.0 works fine. Openoffice needs lucene-2.3.* so impossible to emerge it.
Comment 2 Bertrand Piétu 2010-03-17 17:05:08 UTC
The problem is javacc-5.0. All is fine with javacc-4.2. So I downgrade but there is a problem with javacc-5.0.
Comment 3 Alistair Bush (RETIRED) gentoo-dev 2010-03-21 17:07:10 UTC
*** Bug 309959 has been marked as a duplicate of this bug. ***
Comment 4 Alistair Bush (RETIRED) gentoo-dev 2010-03-21 17:11:04 UTC
javacc-5 has been masked for the time being.
Comment 5 Miroslav Šulc gentoo-dev 2011-01-29 11:08:16 UTC
i guess this problem should be gone with 1.4 gone as all supported jdk versions now support annotations and generics
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-02-28 10:45:28 UTC
please retest since no more jdk 1.4s exit.
Comment 7 Bertrand Piétu 2011-03-01 09:46:41 UTC
Testing, umasking javacc-5.0 and emerge -1av =lucene-2.3.2-r1 fails with the same error above:


common.compile-core:
    [mkdir] Created dir: /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/build/classes/java
    [javac] Compiling 258 source files to /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/build/classes/java
    [javac] /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/src/java/org/apache/lucene/queryParser/CharStream.java:30: annotations are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable annotations)
    [javac]   @Deprecated
    [javac]    ^
    [javac] /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/src/java/org/apache/lucene/queryParser/QueryParser.java:1465: generics are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable generics)
    [javac]   private java.util.List<int[]> jj_expentries = new java.util.ArrayList<int[]>();
    [javac]                         ^
    [javac] 2 errors

BUILD FAILED
/var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/common-build.xml:176: The following error occurred while executing this line:
/var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/common-build.xml:399: Compile failed; see the compiler error output for details.

Total time: 1 second
 * ERROR: dev-java/lucene-2.3.2-r1 failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4421:  Called eant '-Dversion=2.3.2' 'jar-core' 'jar-demo'
 *   environment, line  950:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-java/lucene-2.3.2-r1',
 * the complete build log and the output of 'emerge -pqv =dev-java/lucene-2.3.2-r1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6  CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea6"
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/tmp/portage/dev-java/lucene-2.3.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/lucene-2.3.2-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2'
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2011-03-01 13:44:26 UTC
(In reply to comment #7)
> Testing, umasking javacc-5.0 and emerge -1av =lucene-2.3.2-r1 fails with the
> same error above:
> 

robbat2: you should make dependencies >=virtual/jdk-1.5 to fix this problem.
Comment 9 Ralph Sennhauser (RETIRED) gentoo-dev 2012-09-27 16:20:01 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Testing, umasking javacc-5.0 and emerge -1av =lucene-2.3.2-r1 fails with the
> > same error above:
> > 
> 
> robbat2: you should make dependencies >=virtual/jdk-1.5 to fix this problem.

To be able to proceed with unmasking javacc-5.0 I added:
  =dev-java/lucene-2.2.0-r1
  =dev-java/lucene-2.3.2-r2
  =dev-java/lucene-2.4.1-r1
which now depend on >=jdk-1.5.

Also removed =dev-java/lucene-2.1.0:2 which is the same as =dev-java/lucene-2.1.0-r2:2.1 apart from the slot. This removes the unused slot 2.

To stabilize javacc-5.0, the following need to be stabilized:
  =dev-java/lucene-2.1.0-r2
  =dev-java/lucene-2.2.0-r1
  =dev-java/lucene-2.3.2-r2
  =dev-java/lucene-2.4.1-r1
Comment 10 Ralph Sennhauser (RETIRED) gentoo-dev 2012-09-28 10:24:16 UTC
(In reply to comment #9)
> [...]
> To stabilize javacc-5.0, the following need to be stabilized:
>   =dev-java/lucene-2.1.0-r2
>   =dev-java/lucene-2.2.0-r1
>   =dev-java/lucene-2.3.2-r2
>   =dev-java/lucene-2.4.1-r1

javacc-5.0 is no longer masked. Will track stabilization of the above in the javacc-5.0 stabilization bug ( bug 315557 ) as there are other packages with the same issue but no open bugs.

Closing here, thanks for the report.