Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138976 - ERROR: dev-java/antlr-2.7.5-r2 failed
Summary: ERROR: dev-java/antlr-2.7.5-r2 failed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-03 02:54 UTC by Lee
Modified: 2006-07-14 09:52 UTC (History)
1 user (show)

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


Attachments
dev-java/antlr-2.7.5-r2 complete emerge error (antlr-2.7.5-r2.error,47.19 KB, text/plain)
2006-07-03 02:57 UTC, Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lee 2006-07-03 02:54:46 UTC
###################### emerge --info #########################

Portage 2.1.1_pre2-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r1 i686)
=================================================================
System uname: 2.6.17-gentoo-r1 i686 AMD Athlon(TM) XP 2800+
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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 aalib akode alsa amr apache2 apm arts asf audiofile automount avi berkdb bidi binfilter bitmap-fonts bl bri bzip2 cairo cddb cdparanoia cdr chroot cli crypt css cups curl dga directfb divx4linux dlloader doc dri dts dv dvb dvd dvdr dvdread eds emboss encode esd examples exscalibar fame fbcon ffmpeg firefox foomaticdb fortran fpx gdbm ggi gif gimp gimpprint glade glut gnutls gphoto2 gpm graphviz gs gtk gtk2 gtkhtml h323 hal hpn httpd ieee1394 imagemagick imlib insecure-savers ipv6 isdnlog jack java javascript jbig joystick jpeg jpeg2k kde kdehiddenvisibility kdgraphics libcaca libg++ libwww live logitech-mouse lzo mad matroska mikmod mjpeg mmx mmxext mng mod modplug mono motif mozilla mp3 mp4 mpeg mplayer musicbrainz nas ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg openal openexr opengl osp oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime rar readline real reflection rtc rtsp samba scanner screen sdl server session shout skins sndfile spell spl sse ssl stream subtitles swat syslog tcpd teamarena tga theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd via vidix visualization vlm vorbis wifi win32codecs winbind wmf wxwindows x264 x509 x86 xanim xine xml xml2 xmms xorg xosd xscreensaver xv xvid xvmc zapnet zapras zaptel zeroconf zlib elibc_glibc input_devices_joystick input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


###################### emerge error ##########################

rk/antlr-2.7.5/antlr/../antlr/debug/TraceListener.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/debug/Tracer.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/debug/misc/ASTFrame.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/Grammar.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/GrammarFile.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/Hierarchy.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/Option.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/Preprocessor.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/PreprocessorLexer.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/PreprocessorTokenTypes.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/Rule.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/preprocessor/Tool.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/debug/misc/JTreeASTModel.java /var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/../antlr/debug/misc/JTreeASTPanel.java

============================================================
Got an error while trying to execute  command  above.  Error
messages (if any) must have shown before. The exit code was:
exit(1)
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
make[1]: *** [/var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr/antlr.jar] Error 1
make[1]: Leaving directory `/var/tmp/portage/antlr-2.7.5-r2/work/antlr-2.7.5/antlr'
make: *** [all] Error 1

!!! ERROR: dev-java/antlr-2.7.5-r2 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  antlr-2.7.5-r2.ebuild, line 50:   Called die

!!! compile failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Lee 2006-07-03 02:57:49 UTC
Created attachment 90756 [details]
dev-java/antlr-2.7.5-r2 complete emerge error
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2006-07-04 22:21:42 UTC
Looks like you're using a 1.4 JRE for the generation-1 system vm. Don't do that :-D Otherwise, you won't be able to build packages. Use a 1.4 JDK instead, ie blackdown-jdk.

Please verify that switching to a JDK fixes the problem.
Comment 3 giovanni.bobbio 2006-07-05 09:45:40 UTC
(In reply to comment #2)
> Looks like you're using a 1.4 JRE for the generation-1 system vm. Don't do that
> :-D Otherwise, you won't be able to build packages. Use a 1.4 JDK instead, ie
> blackdown-jdk.
> 
> Please verify that switching to a JDK fixes the problem.

To me it looks like this ebuild tries to use the JRE despite the JDK being selected:

kien ~ # java-config -L
*) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2)
2) Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2] (/usr/share/java-config-2/vm/blackdown-jre-1.4.2)

This is what the ebuild says right at the beginning:

kien ~ # emerge antlr
Calculating dependencies... done!

>>> Emerging (1 of 237) dev-java/antlr-2.7.5-r2 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking antlr-2.7.5.tar.gz ;-)
 * Enabling generation-2 compatibility ...
 * Using blackdown-jre-1.4.2

and later:

Tried to execute /usr/lib/jvm/blackdown-jre-1.4.2//bin/javac and /usr/lib/jvm/blackdown-jre-1.4.2//jre/bin/javac, but neither exist.
Perhaps there is something wrong with the install of blackdown-jre-1.4.2?
Comment 4 Josh Nichols (RETIRED) gentoo-dev 2006-07-05 10:09:41 UTC
You want to use java-config-1 to set your generation-1 system VM.

java-config is a wrapper, which will call java-config-1 or java-config-2. By default, it uses java-config-2, so blackdown-jdk-1.4.2 is your generation-2 system vm.
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-07-14 09:52:23 UTC
Like I previously said, you want to use java-config-1 to set your generation-1 system VM. This _must_ be a 1.4 JDK.

If you have further problems, please contact us in #gentoo-java on irc.freenode.net, or on the gentoo-java mailing list.