Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596362 - dev-java/netbeans-ide-8.2 fails to build due to antlr-runtime.jar
Summary: dev-java/netbeans-ide-8.2 fails to build due to antlr-runtime.jar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 17:51 UTC by Hubert Kowalski
Modified: 2016-10-07 20:56 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,3.48 KB, text/plain)
2016-10-06 17:51 UTC, Hubert Kowalski
Details
eclass-debug (eclass-debug.log,7.14 KB, text/plain)
2016-10-06 17:54 UTC, Hubert Kowalski
Details
java-pkg-build-depend (java-pkg-build-depend,37 bytes, text/plain)
2016-10-06 17:55 UTC, Hubert Kowalski
Details
java-pkg-depend (java-pkg-depend,153 bytes, text/plain)
2016-10-06 17:56 UTC, Hubert Kowalski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Kowalski 2016-10-06 17:51:51 UTC
Created attachment 449350 [details]
Build log

* ERROR: dev-java/netbeans-ide-8.2::gentoo failed (prepare phase):
 *   Failed to find antlr-runtime.jar in antlr-4
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_prepare
 *   environment, line 4247:  Called java-pkg_jar-from '--into' 'libs.antlr4.runtime/external' 'antlr-4' 'antlr-runtime.jar' 'antlr-runtime-4.5.3.jar'
 *   environment, line 3073:  Called die
 * The specific snippet of code:
 *           die "Failed to find ${target_jar:-jar} in ${target_pkg}";
 * 

emerge --info:
# emerge --info '=dev-java/netbeans-ide-8.2::gentoo'
Portage 2.3.0 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.22-r4, 4.1.15-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.15-gentoo-r1-x86_64-Intel-R-_Xeon-R-_CPU_W3550_@_3.07GHz-with-gentoo-2.2
KiB Mem:    12298944 total,   2913124 free
KiB Swap:   12000516 total,  11057792 free
Timestamp of repository gentoo: Thu, 06 Oct 2016 17:00:01 +0000
sh bash 4.3_p46-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p46-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

PreciosaT3500
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 -msse4.1 -mfxsr --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/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 -pipe -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 -msse4.1 -mfxsr --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l8 -s"
PKGDIR="/usr/portage/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apache2 berkdb bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdr clang cli colord cracklib crypt cups curl cxx dbus dri dts dvd dvdr eds emboss encode evo exif faad fam fat ffmpeg firefox flac flickr fontconfig fortran ftp games gconf gd gdbm gif gimp glamor gnome gnome-keyring gnome-online-accounts google gphoto2 gpm gsettings gstreamer gtk gtk2 gtk3 http2 iconv icu imagemagick imap introspection ipv6 java jpeg jpeg2k lcms ldap libass libnotify libsecret lm_sensors lua mad mhash minizip mmx mmxext mng modules mp3 mp4 mpeg mtp multilib mysql mysqli mysqlnd nautilus ncurses networkmanager nfs nls nptl ntfs ogg opengl openmp opus pam pango pcre pdf php png policykit popcnt ppds pulseaudio python qt3support qt4 qt5 raw rdp readline reiserfs samba scanner sdl seccomp session sftp skins snmp sound spell sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification svc svg systemd tcpd theora tiff tracker truetype udev udisks unicode upower usb vaapi vdpau vorbis vpx wacom wxwidgets x264 x265 xattr xcb xft xml xmlreader xmlwriter xmp xv xvid zip zlib" ABI_X86="64 32" 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" 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" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="pl en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="pl en" NETBEANS_MODULES="apisupport harness ide java nb websvccommon cnd groovy gsf identity j2ee php profiler soa visualweb webcommon xml dlight enterprise ruby ergonomics" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7 php7-0" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="genesys canon pixma" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

# emerge -pqv '=dev-java/netbeans-ide-8.2::gentoo'
[ebuild  NS   ] dev-java/netbeans-ide-8.2 [8.1-r2]
Comment 1 Hubert Kowalski 2016-10-06 17:54:15 UTC
Created attachment 449352 [details]
eclass-debug
Comment 2 Hubert Kowalski 2016-10-06 17:55:17 UTC
Created attachment 449354 [details]
java-pkg-build-depend
Comment 3 Hubert Kowalski 2016-10-06 17:56:27 UTC
Created attachment 449356 [details]
java-pkg-depend
Comment 4 Hubert Kowalski 2016-10-06 18:03:40 UTC
It seems that it tries to use antlr-4.4 with antlr-runtime... but:

# equery f dev-java/antlr-4.4
 * Searching for antlr4.4 in dev-java ...
 * Contents of dev-java/antlr-4.4:
/usr
/usr/bin
/usr/bin/antlr4
/usr/share
/usr/share/antlr-4
/usr/share/antlr-4/lib
/usr/share/antlr-4/lib/antlr.jar
/usr/share/antlr-4/package.env

# equery f dev-java/antlr-3.2
 * Searching for antlr3.2 in dev-java ...
 * Contents of dev-java/antlr-3.2:
/usr
/usr/bin
/usr/bin/antlr3
/usr/share
/usr/share/antlr-3
/usr/share/antlr-3/lib
/usr/share/antlr-3/lib/antlr-runtime.jar
/usr/share/antlr-3/lib/antlr-tool.jar
/usr/share/antlr-3/package.env
Comment 5 Nick 2016-10-07 04:29:19 UTC
It works for me after keywording and installing =dev-java/antlr-4.5.1
Comment 6 Hubert Kowalski 2016-10-07 12:46:27 UTC
Confirmed then :)

dev-java/netbeans-ide-8.2 requires >=dev-java/antlr-4.5 :)

Please, add requirement to ebuild then?
Comment 7 James Le Cuirot gentoo-dev 2016-10-07 15:06:35 UTC
I'll stabilise 4.5.1 later, it's been there for ages now. 4.4's build process was all wrong but the end result is fine. It's just that the jar names don't match.
Comment 8 Miroslav Šulc gentoo-dev 2016-10-07 17:34:29 UTC
i fixed the ebuild with following patch:

diff --git a/dev-java/netbeans-ide/netbeans-ide-8.2.ebuild b/dev-java/netbeans-ide/netbeans-ide-8.2.ebuild
index bd42cc2..8c51a8f 100644
--- a/dev-java/netbeans-ide/netbeans-ide-8.2.ebuild
+++ b/dev-java/netbeans-ide/netbeans-ide-8.2.ebuild
@@ -89,7 +89,7 @@ S="${WORKDIR}"
 
 CDEPEND="~dev-java/netbeans-harness-${PV}
        ~dev-java/netbeans-platform-${PV}
-       dev-java/antlr:4
+       >=dev-java/antlr-4.5:4
        dev-java/commons-compress:0
        dev-java/commons-httpclient:3
        dev-java/commons-logging:0

it'll take some time till the fix reaches the rsync mirrors.

also, there is no need for antlr stabilization because of netbeans atm as netbeans:8.2 is still far from going stable. but if antlr can go stable then let it go stable :-)

thanks for reporting.
Comment 9 James Le Cuirot gentoo-dev 2016-10-07 20:56:29 UTC
Just stabilised antlr-4.5.1 anyway and added 4.5.3 while I was at it.