Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506678 - dev-java/antlr:3 fails to build with dev-java/oracle-jdk-bin:1.8
Summary: dev-java/antlr:3 fails to build with dev-java/oracle-jdk-bin:1.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 554884 556984 (view as bug list)
Depends on:
Blocks: jdk8-tracker
  Show dependency tree
 
Reported: 2014-04-03 16:50 UTC by Viktor Yu. Kovalskii
Modified: 2015-08-08 01:56 UTC (History)
5 users (show)

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


Attachments
build.log of emerging dev-java/antlr:3 (build.log,12.59 KB, text/x-log)
2014-04-03 16:51 UTC, Viktor Yu. Kovalskii
Details
patch (antlr-3.1.3-java8.patch,1.06 KB, patch)
2014-08-06 22:05 UTC, Austin English (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Yu. Kovalskii 2014-04-03 16:50:18 UTC
After upgrading and switching to dev-java/oracle-jdk-bin:1.8 emerging dev-java/antlr:3 is failed.

Reproducible: Always

Steps to Reproduce:
1. emerge -1av dev-java/oracle-jdk-bin:1.8
2. eselect java-vm set system oracle-jdk-bin-1.8
3. emerge -1av dev-java/antlr:3



emerge --info dev-java/antlr:3
Portage 2.2.10 (default/linux/x86/13.0, gcc-4.8.2, glibc-2.19, 3.13.7-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.13.7-gentoo-i686-Intel-R-_Core-TM-_Duo_CPU_T2350_@_1.86GHz-with-gentoo-2.2
KiB Mem:     3099180 total,   1375892 free
KiB Swap:    2104508 total,   1770584 free
Timestamp of tree: Sun, 30 Mar 2014 08:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo overlays-oschtan science rion flying
Installed sets: @lxde-full, @system, @toolchain
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL skype-4.0.0.7-copyright dlj-1.1 AdobeFlash-11.x Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CPPFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr"
CXXFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr"
DISTDIR="/mnt/slag/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build --with-bdeps=y"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache collision-protect distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://linux.nsu.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/mnt/slag/gentoo-tree/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/slag"
PORTDIR="/mnt/slag/gentoo-tree"
PORTDIR_OVERLAY="/mnt/slag/layman/oschtan /mnt/slag/layman/science /mnt/slag/layman/rion /mnt/slag/layman/flying"
SYNC="rsync://rsync.gentoo.org/gentoo-portage/"
USE="7zip X a52 aac aalib acl acpi additions alsa amr apng archive aspell audiofile autotools bash-completion bazaar bdf bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cdrdao cdrom chardet cjk cli consolekit cracklib curl cvs cxx dbus dia divx djvu docbook dri drm dts dvd dvdnav dvi emf enca encode equalizer exceptions exif expat extensions fbcondecor fbsplash ffmpeg fftw flac fontconfig fortran ftp fuse gallium gd gecko gif gimp git gles glib glitz gmp gnutls gpm graphviz gstreamer gtk gtk3 gtkstyle harfbuzz hddtemp http iconv icu idn imagemagick imlib jabber jbig jemalloc jpeg jpeg2k lame lasi lastfm latex lcms libass libffi libnotify libsamplerate libyaml lm_sensors lqr lxde lzma lzo mad matroska mercurial mime mms mmx mmxext mng modules mp2 mp3 mp4 mpeg mplayer musepack natspec ncurses nls nptl ogg openexr opengl openmp opus orc osmesa pam pango pcre pdf plotutils png policykit postscript pulseaudio qt3support rar raw readline rtc rtf science sdl session shared-dricore shared-glapi smp sndfile speex spell sqlite sse sse2 ssl startup-notification stats subversion svg symlink syslog system-sqlite szip t1lib tcpd theora threads tiff truetype twolame udev unicode usb utils v4l vba vorbis vpx wav wavpack webdav webdav-neon webgl webp wifi wma wmf wps wxwidgets x264 x264-svn-encoder x86 xattr xcb xcomposite xml xmp xorg xpm xps xscreensaver xv xvid zip zlib" ABI_X86="32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel i915" 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:  CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-java/antlr-3.1.3-r3 was built with the following:
USE="-gunit -source"
Comment 1 Viktor Yu. Kovalskii 2014-04-03 16:51:02 UTC
Created attachment 374174 [details]
build.log of emerging dev-java/antlr:3
Comment 2 Austin English (RETIRED) gentoo-dev 2014-08-06 22:04:22 UTC
I'm seeing this issue as well. I'll attach a patch.
Comment 3 Austin English (RETIRED) gentoo-dev 2014-08-06 22:05:13 UTC
Created attachment 382412 [details, diff]
patch

This commit: https://github.com/antlr/antlr3/commit/e88907c259c43d42fa5e9f5ad0e486a2c1e004bb#diff-d41d8cd98f00b204e9800998ecf8427e

and:
import java.util.HashMap;

lets it compile.
Comment 4 William L. Thomson Jr. 2015-03-21 17:55:29 UTC
This package is not current, current version is 4.5. Thus the OLD version has problems with a NEW jdk. Not surprising at all. Update the the package, and it will likely fix the issue with jdk 1.8.
Comment 5 Viktor Yu. Kovalskii 2015-04-22 02:21:02 UTC
(In reply to William L. Thomson Jr. from comment #4)
> This package is not current, current version is 4.5. Thus the OLD version
> has problems with a NEW jdk. Not surprising at all. Update the the package,
> and it will likely fix the issue with jdk 1.8.

Maybe You're right but I don't need dev-java/antlr:4.
dev-java/antlr:3 is required for app-text/jabref, for example.

equery d dev-java/antlr
 * These packages depend on dev-java/antlr:
app-text/jabref-2.10-r2 (dev-java/antlr:3)
dev-java/antlr-3.1.3-r3 (>=dev-java/antlr-2.7.7:0[java])
dev-java/jaxme-0.5.2-r1 (dev-java/antlr:0[java])
dev-java/stringtemplate-3.2.1 (>=dev-java/antlr-2.7.7:0[java])
Comment 6 William L. Thomson Jr. 2015-04-22 19:31:42 UTC
Looks like antlr-3.x needs to be updated to current 3.5, presently 3.1.3 in tree. Though might be best if jabref is updated to use newer antlr, presently 4.5. Not sure how long 3.x will be support for, but for now still seems to be.

https://github.com/antlr/antlr3
Comment 7 Viktor Yu. Kovalskii 2015-04-27 18:48:36 UTC
(In reply to William L. Thomson Jr. from comment #6)
> Looks like antlr-3.x needs to be updated to current 3.5, presently 3.1.3 in
> tree. Though might be best if jabref is updated to use newer antlr,
> presently 4.5. Not sure how long 3.x will be support for, but for now still
> seems to be.
> 
> https://github.com/antlr/antlr3

Version bump for dev-java/antlr-3.5.2 is present in b.g.o (https://bugs.gentoo.org/show_bug.cgi?id=293305).
Comment 8 William L. Thomson Jr. 2015-04-27 20:34:43 UTC
Created a work around for jabref in bug 547934. Still have to see about updating antlr 3.x but this addresses the issue as far as jabref is concerned. Seems to compile and install fine.
Comment 9 James Le Cuirot gentoo-dev 2015-07-19 10:54:34 UTC
*** Bug 554884 has been marked as a duplicate of this bug. ***
Comment 10 Sebastian Pipping gentoo-dev 2015-08-08 01:55:52 UTC
+  08 Aug 2015; Sebastian Pipping <sping@gentoo.org> antlr-3.1.3-r3.ebuild,
+  +files/antlr-3.1.3-jdk-8.patch:
+  Fix compilation with oracle-jdk-bin-1.8 (bug #506678)
+

If I missed anything, please feel free to re-open.
Comment 11 Sebastian Pipping gentoo-dev 2015-08-08 01:56:33 UTC
*** Bug 556984 has been marked as a duplicate of this bug. ***