Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299679 - Failed to emerge dev-java/gnu-classpath-0.98-r1
Summary: Failed to emerge dev-java/gnu-classpath-0.98-r1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-04 23:14 UTC by Juri Em
Modified: 2010-04-28 19:53 UTC (History)
0 users

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 Juri Em 2010-01-04 23:14:34 UTC
When I try to emerge tomcat got error with emerge dev-java/gnu-classpath-0.98-r1. 

Reproducible: Always

Steps to Reproduce:
1. emerge tomcat

Actual Results:  
configure: WARNING: I have to compile Test.class from scratch
checking if /usr/bin/ecj-3.3 is a version of gcj... Could not create the Java virtual machine.

checking if /usr/bin/ecj-3.3 works... configure: error: The Java compiler /usr/bin/ecj-3.3 failed (see config.log, check the CLASSPATH?)
 * 
 * ERROR: dev-java/gnu-classpath-0.98-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_configure
 *             environment, line 4512:  Called die
 * The specific snippet of code:
 *       ANTLR= ./configure $(use_enable alsa) $(use_enable debug ) $(use_enable examples) $(use_enable gconf gconf-peer) $(use_enable gjdoc) $(use_enable gmp) $(use_enable gtk gtk-peer) $(use_enable gstreamer gstreamer-peer) $(use_enable nsplugin plugin) $(use_enable qt4 qt-peer) $(use_enable xml xmlj) $(use_enable dssi ) $(use_with doc gjdoc) --enable-jni --disable-dependency-tracking --host=${CHOST} --prefix=/usr/${PN}-${SLOT} --with-ecj-jar=$(java-pkg_getjar eclipse-ecj:3.3 ecj.jar) --disable-Werror ${myconf} || die "configure failed"
 *  The die message:
 *   configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r1/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.17"
JAVACFLAGS="-nowarn" COMPILER=""
and of course, the output of emerge --info

>>> Failed to emerge dev-java/gnu-classpath-0.98-r1, Log file:

>>>  '/var/tmp/portage/dev-java/gnu-classpath-0.98-r1/temp/build.log'

 * Messages for package dev-java/gnu-classpath-0.98-r1:

 * 
 * ERROR: dev-java/gnu-classpath-0.98-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_configure
 *             environment, line 4512:  Called die
 * The specific snippet of code:
 *       ANTLR= ./configure $(use_enable alsa) $(use_enable debug ) $(use_enable examples) $(use_enable gconf gconf-peer) $(use_enable gjdoc) $(use_enable gmp) $(use_enable gtk gtk-peer) $(use_enable gstreamer gstreamer-peer) $(use_enable nsplugin plugin) $(use_enable qt4 qt-peer) $(use_enable xml xmlj) $(use_enable dssi ) $(use_with doc gjdoc) --enable-jni --disable-dependency-tracking --host=${CHOST} --prefix=/usr/${PN}-${SLOT} --with-ecj-jar=$(java-pkg_getjar eclipse-ecj:3.3 ecj.jar) --disable-Werror ${myconf} || die "configure failed"
 *  The die message:
 *   configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r1/temp/environment'.
 * 


emerge --info

Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-AMD_Duron-tm-_Processor-with-gentoo-1.12.13
Timestamp of tree: Mon, 04 Jan 2010 20:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=i486 -pipe -fomit-frame-pointer"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i486 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apache2 berkdb bzip2 cli cracklib crypt cups cxx dri examples fortran gcj gd gdbm gpm gtk iconv ipv6 java java6 jce jpeg modules mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin odbc openmp pam pcre pdf perl php pic png pppd python rar readline reflection session spl ssl suhosin symlink sysfs tar tcpd threads truetype unicode vhosts x86 xml xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2010-01-09 13:54:41 UTC
What's the output of java-check-environment?
Comment 2 Juri Em 2010-01-09 14:47:30 UTC
(In reply to comment #1)
> What's the output of java-check-environment?

java-check-environment

dynoserver ~ # java-check-environment 
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many
 * respects.
 * Please refer to our upgrade guide for details:
 * http://www.gentoo.org/proj/en/java/java-upgrade.xml

 * Checking fastjar ...                                                                                                                                                    [ ok ]

 * Checking vm_environment_files ...                                                                                                                                       [ ok ]

 * Checking user_settings ...
 * Running as root. Don't need to check user settings.                                                                                                                     [ ok ]

 * Checking generation_1_system_vm ...                                                                                                                                     [ ok ]

 * Checking java_config_1 ...                                                                                                                                              [ ok ]

 * Checking global_classpath ...                                                                                                                                           [ ok ]

 * Checking virtual_provides ...                                                                                                                                           [ ok ]

 * Checking overlays_eclasses ...                                                                                                                                          [ ok ]

 * Checking package_env ...                                                                                                                                                [ ok ]

 * Checking proc_mounted ...                                                                                                                                          [ ok ]

 * Java environment is sane. Congratulations!

dynoserver ~ # java-config -L
The following VMs are available for generation-2:
1)      Sun JDK 1.5.0.22 [sun-jdk-1.5]
*)      Sun JDK 1.6.0.17 [sun-jdk-1.6]
3)      Sun JRE 1.5.0.22 [sun-jre-bin-1.5]
4)      Sun JRE 1.6.0.17 [sun-jre-bin-1.6] 
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2010-01-09 14:53:58 UTC
What do you get on the command line with ecj-3.3?
What's the output of emerge -uDpvt gnu-classpath?
Comment 4 Juri Em 2010-01-09 16:23:44 UTC
(In reply to comment #3)
> What do you get on the command line with ecj-3.3?

dynoserver linux # ecj-3.3 
Eclipse Java Compiler 0.771, 3.3.0
Copyright IBM Corp 2000, 2007. All rights reserved.
 
 Usage: <options> <source files | directories>
 If directories are specified, then their source contents are compiled.
 Possible options are listed below. Options enabled by default are prefixed
 with '+'.
 
 Classpath options:
    -cp -classpath <directories and zip/jar files separated by :>
                       specify location for application classes and sources.
                       Each directory or file can specify access rules for
                       types between '[' and ']' (e.g. [-X] to forbid
                       access to type X, [~X] to discourage access to type X,
                       [+p/X:-p/*] to forbid access to all types in package p
                       but allow access to p/X)
    -bootclasspath <directories and zip/jar files separated by :>
                       specify location for system classes. Each directory or
                       file can specify access rules for types between '['
                       and ']'
    -sourcepath <directories and zip/jar files separated by :>
                       specify location for application sources. Each directory
                       or file can specify access rules for types between '['
                       and ']'. Each directory can further specify a specific
                       destination directory using a '-d' option between '['
                       and ']'; this overrides the general '-d' option.
                       .class files created from source files contained in a
                       jar file are put in the user.dir folder in case no
                       general '-d' option is specified. zip/jar files cannot
                       override the general '-d' option
    -extdirs <directories separated by :>
                       specify location for extension zip/jar files
    -endorseddirs <directories separated by :>
                       specify location for endorsed zip/jar files
    -d <dir>           destination directory (if omitted, no directory is
                       created); this option can be overridden per source
                       directory
    -d none            generate no .class files
    -encoding <enc>    specify custom encoding for all sources. Each
                       file/directory can override it when suffixed with
                       '['<enc>']' (e.g. X.java[utf8])
 
 Compliance options:
    -1.3               use 1.3 compliance (-source 1.3 -target 1.1)
    -1.4             + use 1.4 compliance (-source 1.3 -target 1.2)
    -1.5 -5 -5.0       use 1.5 compliance (-source 1.5 -target 1.5)
    -1.6 -6 -6.0       use 1.6 compliance (-source 1.6 -target 1.6)
    -1.7 -7 -7.0       use 1.7 compliance (-source 1.7 -target 1.7)
    -source <version>  set source level: 1.3 to 1.7 (or 5, 5.0, etc)
    -target <version>  set classfile target: 1.1 to 1.7 (or 5, 5.0, etc)
 
 Warning options:
    -deprecation     + deprecation outside deprecated code (equivalent to
                       -warn:+deprecation)
    -nowarn -warn:none disable all warnings
    -?:warn -help:warn display advanced warning options
 
 Debug options:
    -g[:lines,vars,source] custom debug info
    -g:lines,source  + both lines table and source debug info
    -g                 all debug info
    -g:none            no debug info
    -preserveAllLocals preserve unused local vars for debug purpose
 
 Annotation processing options:
   These options are meaningful only in a 1.6 environment.
    -Akey[=value]        annotation processors options that are made to
                         annotation processors. key are identifiers separated
                         by '.'.
    -processorpath <directories and zip/jar files separated by :>
                         specify locations where to find annotation processors
                         If this option is not used, the classpath will be
                         searched for processors.
    -processor <class1[,class2,...]>
                         Qualified names of the annotation processors to run.
                         This bypasses the default annotation discovery process
    -proc:only           run annotation processors, but do not compile
    -proc:none           perform compilation but do not run annotation
                         processors
    -s <dir>             specify a directory where to put the generated source
                         files
    -XprintProcessorInfo print information about which annotations and which
                         elements a processor is asked to process
    -XprintRounds        print information about annotation processing rounds.
    -classNames <className1[,className2,...]>
                         Qualified names of the classes that need
                         to be processed
 
 Advanced options:
    @<file>            read command line arguments from file
    -maxProblems <n>   max number of problems per compilation unit (100 by
                       default)
    -log <file>        log to a file. If the file extension is '.xml', then
                       the log will be a xml file.
    -proceedOnError    do not stop at first error, dumping class files with
                       problem methods
    -verbose           enable verbose output
    -referenceInfo     compute reference info
    -progress          show progress (only in -log mode)
    -time              display speed information 
    -noExit            do not call System.exit(n) at end of compilation (n==0
                       if no error)
    -repeat <n>        repeat compilation process <n> times for perf analysis
    -inlineJSR         inline JSR bytecode (implicit if target >= 1.5)
    -enableJavadoc     consider references in javadoc
    -Xemacs            used to enable emacs-style output in the console.
                       It does not affect the xml log output
 
    -? -help           print this help message
    -v -version        print compiler version
    -showversion       print compiler version and continue
 
 Ignored options:
    -J<option>         pass option to virtual machine (ignored)
    -X<option>         specify non-standard option (ignored
                       except for listed -X options)
    -X                 print non-standard options and exit (ignored)
    -O                 optimize for execution time (ignored)

----------------------------

> What's the output of emerge -uDpvt gnu-classpath?

dynoserver linux # emerge -uDpvt gnu-classpath

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/gnu-classpath-0.98-r1  USE="xml -alsa -debug -doc -dssi -examples -gconf -gjdoc -gmp -gstreamer -gtk (-nsplugin) -qt4" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2010-01-09 17:02:08 UTC
And you can still repeat the original issue? The relevant line is

(In reply to comment #0)
> 
> Actual Results:  
> configure: WARNING: I have to compile Test.class from scratch
> checking if /usr/bin/ecj-3.3 is a version of gcj... Could not create the Java
> virtual machine.
> 

This says that for some reason java can't run itself. 
Comment 6 Juri Em 2010-01-09 17:19:55 UTC
(In reply to comment #5)
> And you can still repeat the original issue? The relevant line is
> (In reply to comment #0)
> > 
> > Actual Results:  
> > configure: WARNING: I have to compile Test.class from scratch
> > checking if /usr/bin/ecj-3.3 is a version of gcj... Could not create the Java
> > virtual machine.
> > 
> This says that for some reason java can't run itself. 

Maybe the problem is insufficient memory? I have 384512 bytes of RAM. I have try to install tomcat manualy and it works nicely. 

Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-21 21:25:43 UTC
Please post emerge --info eclipse-ecj:3.3

did you at some point use the java-overlay and installed eclipse-ecj from there with USE=gcj?
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-04-28 19:53:01 UTC
Please reopen with the info