Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158168 - dev-java/antlr-2.7.7 fails to compile
Summary: dev-java/antlr-2.7.7 fails to compile
Status: RESOLVED DUPLICATE of bug 135688
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 158318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-14 13:38 UTC by Davide Pesavento
Modified: 2006-12-17 03:42 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 Davide Pesavento (RETIRED) gentoo-dev 2006-12-14 13:38:36 UTC
/usr/bin/fastjar cf /var/tmp/portage/dev-java/antlr-2.7.7/work/antlr-2.7.7/antlr/antlr.jar antlr
gcc-config error: /usr/bin/fastjar wrapper: Unable to determine executable.
        CTARGET=i686-pc-linux-gnu
        exec=fastjar


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                      >> E R R O R <<
============================================================

/usr/bin/fastjar cf /var/tmp/portage/dev-java/antlr-2.7.7/work/antlr-2.7.7/antlr/antlr.jar antlr

============================================================
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/dev-java/antlr-2.7.7/work/antlr-2.7.7/antlr/antlr.jar] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-java/antlr-2.7.7/work/antlr-2.7.7/antlr'
make: *** [all] Error 1

!!! ERROR: dev-java/antlr-2.7.7 failed.
Call stack:
  ebuild.sh, line 1576:   Called dyn_compile
  ebuild.sh, line 945:   Called src_compile
  antlr-2.7.7.ebuild, line 38:   Called die

!!! compile failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="+ -source 1.3 -target 1.3" COMPILER=""


emerge --info
Portage 2.1.2_rc3-r5 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r2 i686)
=================================================================
System uname: 2.6.19-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.7
Last Sync: Thu, 14 Dec 2006 15:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -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/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j2"
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/portage/local/layman/pro-audio /usr/portage/local/layman/xeffects /usr/portage/local/layman/xeffects-experimental /usr/portage/local/layman/armagetron /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa alsa_cards_intel8x0 arts audiofile avahi bash-completion bitmap-fonts bzip2 cairo caps cdinstall cdparanoia cdr cli cracklib crypt cups curl curlwrappers dbus dlloader dri dts dv dvd dvdr dvdread eds elibc_glibc emacs emboss encode expat fam fbcon ffmpeg fftw firefox flac fuse gd gdbm gif glut gnutls gpm gstreamer hal iconv icq ieee1394 imagemagick imlib innodb input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber jack java javascript jbig jpeg jpeg2k kde kdeenablefinal kdexdeltas kernel_linux libg++ linguas_it lua mad matroska mikmod mmx mng mp3 mpeg msn mule mysql mysqli ncurses nls nptl nptlonly nsplugin offensive ogg opengl oscar oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection ruby sasl sdl session slang spell spl sqlite sqlite3 sse sse2 ssl subversion svg svga symlink tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs wmf xcb xcomposite xine xml xorg xpm xscreensaver xv xvid yahoo zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-12-14 16:06:51 UTC
Looks like caused by eselect-compiler, did you ever had it installed?
can you post output of "equery belongs /usr/bin/fastjar" (need to emerge gentoolkit) or "qfile /usr/bin/fastjar" (need to emerge portage-utils)
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2006-12-15 08:49:16 UTC
I do not have eselect-compiler installed at the moment (it's masked), but I don't know if I had it installed in the past.
equery and qfile show no output...
paradox ~ # equery belongs /usr/bin/fastjar
[ Searching for file(s) /usr/bin/fastjar in *... ]
paradox ~ # qfile /usr/bin/fastjar
paradox ~ #

I noticed that I have dev-java/blackdown-jdk-1.4.2.03-r12 installed on my system (but no packages depend on it!) and emerge tries to compile antlr with blackdown-jdk. Isn't it a bit strange? Btw, my current Java VM is sun-jdk...
paradox ~ # eselect java-vm list
Available Java Virtual Machines:
  [1]   blackdown-jdk-1.4.2
  [2]   sun-jdk-1.5
  [3]   sun-jdk-1.6  system-vm
  [4]   sun-jre-bin-1.5
  [5]   sun-jre-bin-1.6
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2006-12-15 09:02:30 UTC
Ok, genlop is a nice tool... :)

paradox ~ # genlop -u app-admin/eselect-compiler
 * app-admin/eselect-compiler

     Fri Aug  4 19:44:24 2006 >>> app-admin/eselect-compiler-2.0.0_rc2-r1
     Mon Aug 28 18:51:17 2006 <<< app-admin/eselect-compiler-2.0.0_rc2-r1
Comment 4 Matthias Clauß 2006-12-15 14:08:28 UTC
I had the same Problem.
Quick-Fix for me (please dont bite me ;) ):

Deleted /usr/bin/fastjar ...
Could it be that this fastjar is a left-over from a gcc compiled with gcj-support? 
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2006-12-16 03:00:53 UTC
(In reply to comment #4)
> I had the same Problem.
> Quick-Fix for me (please dont bite me ;) ):
> 
> Deleted /usr/bin/fastjar ...
> Could it be that this fastjar is a left-over from a gcc compiled with
> gcj-support? 
> 

Yeah eselect-compiler was broken so that it left the wrappers around even if the new gcc you switched to did not have them. 


*** This bug has been marked as a duplicate of 135688 ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-12-16 14:17:09 UTC
*** Bug 158318 has been marked as a duplicate of this bug. ***
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2006-12-17 02:48:23 UTC
So the solution is `rm /usr/bin/fastjar`?
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-12-17 03:42:00 UTC
(In reply to comment #7)
> So the solution is `rm /usr/bin/fastjar`?
> 

Yes. It's fault of the buggy eselect compiler that it created this file and left it behind even after unmerging.