From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Fw7WQ-0004ri-PX for garchives@archives.gentoo.org; Fri, 30 Jun 2006 01:10:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k5U19S7J026863; Fri, 30 Jun 2006 01:09:28 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k5U19QbV016557 for ; Fri, 30 Jun 2006 01:09:27 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id AB66E646E2 for ; Fri, 30 Jun 2006 01:09:26 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13087-04 for ; Fri, 30 Jun 2006 01:09:23 +0000 (UTC) Received: from smtpauth04.mail.atl.earthlink.net (smtpauth04.mail.atl.earthlink.net [209.86.89.64]) by smtp.gentoo.org (Postfix) with ESMTP id 7A8B6646CE for ; Fri, 30 Jun 2006 01:09:23 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=jPJMrFqIV7ZGt6YdbL1gRr3te+B8ekYoZnLvjYYp7Jlme9ETxZdxpg8448vOaPyn; h=Received:Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [72.74.87.138] (helo=ocelot) by smtpauth04.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1Fw7Va-0001BP-UJ for gentoo-java@gentoo.org; Thu, 29 Jun 2006 21:09:23 -0400 Date: Thu, 29 Jun 2006 21:09:15 -0400 From: Patrick Callahan To: gentoo-java@lists.gentoo.org Subject: [gentoo-java] error building ant Message-ID: <20060629210915.20fbbf0f@ocelot> In-Reply-To: <1151623290-1444bead-mlmmj-6a073483@4f080295.plonk> References: <1151623290-1444bead-mlmmj-6a073483@4f080295.plonk> X-Mailer: Sylpheed-Claws 2.3.0 (GTK+ 2.8.12; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ELNK-Trace: c6131ff2a06ee4471a20f0542242c2dc4d2b10475b57112042b4d16c7ddf7aaec3fe8815b271c81099f37241381ec17c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 72.74.87.138 X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-1.137 required=5.5 tests=[AWL=0.800, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, TW_BW=0.077, TW_GG=0.077, TW_GT=0.077, TW_KD=0.077, TW_SF=0.077, TW_WX=0.077] X-Spam-Score: -1.137 X-Spam-Level: X-Archives-Salt: f50e549b-480d-41b6-82de-66f17e494eec X-Archives-Hash: 1e035a34ba0e225a9d2cbc9898cdd7c2 Emerge of dev-java/ant fails. 1. error message from e-build java-config not found error message Error: JAVA_HOME is not defined correctly.We cannot execute java 2. value of JAVA_HOME still points to blackdown-jdk-1.4.2 3. /etc/env.d/java points to blackdown-jdk-1.4.2 3. java-check-environment does not report any problem Questions: Should i re-emerge java-config? will that bring bak the java-config executable Should I do something to /etc/env.d/java? -Pat Callahan Database QA Specialist Here's the supporting materials: -- emerge log -- Some things from my java environment $JAVA_HOME output of java-config-2 -L output of java-config-1 -L output of java-check-environment contents of /etc/env.d/java -- output of # /usr/bin/java-check-environment -- and of course, the output of emerge --info ---------------------------------------------------- -- emerge log Calculating dependencies... done! >>> Emerging (1 of 3) dev-java/ant-core-1.6.5-r13 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking apache-ant-1.6.5-src.tar.bz2 ;-) /usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1675: java-config: command not found * Using: >>> Unpacking source... >>> Unpacking apache-ant-1.6.5-src.tar.bz2 to /var/tmp/portage/ant-core-1.6.5-r13/work * Applying build.sh-exit-fix.patch ... [ ok ] Rewriting ./src/etc/testcases/core/include/included_file_parse_error/build.xml Rewriting ./src/etc/testcases/core/include/including_file_parse_error/build.xml Rewriting ./src/etc/testcases/core/include/including_file_task_error/build.xml Rewriting ./src/etc/testcases/core/include/included_file_task_error/build.xml Rewriting ./src/etc/testcases/filters/build.xml Rewriting ./src/etc/testcases/taskdefs/style/build.xml Rewriting ./src/etc/testcases/taskdefs/fixcrlf/build.xml Rewriting ./build.xml >>> Source unpacked. /usr/portage/eclass/java-utils-2.eclass: line 1656: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1604: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1663: java-config: command not found /usr/portage/eclass/java-utils-2.eclass: line 1667: java-config: command not found >>> Compiling source in /var/tmp/portage/ant-core-1.6.5-r13/work/apache-ant-1.6.5 ... Warning: JAVA_HOME environment variable not set. If build fails because sun.* classes could not be found you will need to set the JAVA_HOME environment variable to the installation directory of java. Error: JAVA_HOME is not defined correctly. We cannot execute java Bootstrap FAILED !!! ERROR: dev-java/ant-core-1.6.5-r13 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile ant-core-1.6.5-r13.ebuild, line 42: Called die !!! failed to build !!! 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="" JAVACFLAGS="-target 1.4" COMPILER="" and of course, the output of emerge --info -- Some things from my java environment # echo $JAVA_HOME /opt/blackdown-jdk-1.4.2.03 # java-config-2 -L 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2) 2) WebLogic JRockit 1.5.0.06 [jrockit-jdk-bin-1.5] (/usr/share/java-config-2/vm/jrockit-jdk-bin-1.5) *) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) 4) Sun JRE 1.5.0.07 [sun-jre-bin-1.5] (/usr/share/java-config-2/vm/sun-jre-bin-1.5) ocelot java # java-config-1 -L [blackdown-jdk-1.4.2.03] "Blackdown JDK 1.4.2.03" (/etc/env.d/java/20blackdown-jdk-1.4.2.03) * ocelot java -- output of # /usr/bin/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 http://www.gentoo.org/proj/en/java/java-upgrade.xml for details * 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 ] * Java environment is sane. Congratulations! # ls /etc/env.d/java 20blackdown-jdk-1.4.2.03 # cat /etc/env.d/java/* # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/files/blackdown-jdk-1.4.2.env,v 1.1 2006/06/25 16:47:40 nichoj Exp $ VERSION="Blackdown JDK 1.4.2.03" JAVA_HOME=/opt/blackdown-jdk-1.4.2.03 JDK_HOME=/opt/blackdown-jdk-1.4.2.03 JAVAC=${JAVA_HOME}/bin/javac PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin" ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin" LDPATH="${JAVA_HOME}/jre/lib/i386/:${JAVA_HOME}/jre/lib/i386/native_threads/:${JAVA_HOME}/jre/lib/i386/classic/:${JAVA_HOME}/jre/lib/i386/server/" MANPATH=/opt/blackdown-jdk-1.4.2.03/man ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" GENERATION="2" VMHANDLE="blackdown-jdk-1.4.2" --and of course, the output of emerge --info Portage 2.1.1_pre1-r5 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.6-r4, 2.6.16-rc6 i686) ================================================================= System uname: 2.6.16-rc6 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.15 dev-lang/python: 2.3.5, 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.17 sys-devel/autoconf: 2.13, 2.59-r7 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.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/" MAKEOPTS="-j 2" 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="x86 X alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts cdr cli crypt cups dba dri dvd eds emboss encode foomaticdb fortran gb gdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imlib innodb ipv6 isdnlog jpeg kde libg++ libwww lirc mad mikmod mmx motif mozilla mp3 mpeg mysql mythtv ncurses neon nls ogg oggvorbis opengl oss pam pcre pdflib perl php png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl subversion tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb v4l video_cards_i810 vorbis vorbix wxwindows xine xml2 xmms xorg xv xvid zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS -- gentoo-java@gentoo.org mailing list